1
0
mirror of https://github.com/php/php-src.git synced 2026-04-17 13:01:02 +02:00

We don't want any hard errors in PHP scripts unless absolutely necessary.

This commit is contained in:
Andrei Zmievski
2000-12-07 14:54:52 +00:00
parent f5abd4c50b
commit 9b46346a23

View File

@@ -1567,10 +1567,10 @@ PHP_FUNCTION(call_user_func_array)
WRONG_PARAM_COUNT;
}
convert_to_string_ex(func_name);
convert_to_array_ex(params);
params_ar = HASH_OF(*params);
if (!params_ar)
php_error(E_ERROR, "Second argument is empty or not an array.");
num_elems = zend_hash_num_elements(params_ar);
func_args = (zval ***)emalloc(sizeof(zval **) * num_elems);