mirror of
https://github.com/php/php-src.git
synced 2025-01-10 21:14:37 +08:00
Fugbix in call_user_func_array() if second argument is empty.
This commit is contained in:
parent
0ddb725f91
commit
f5abd4c50b
@ -1569,6 +1569,8 @@ PHP_FUNCTION(call_user_func_array)
|
|||||||
convert_to_string_ex(func_name);
|
convert_to_string_ex(func_name);
|
||||||
|
|
||||||
params_ar = HASH_OF(*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);
|
num_elems = zend_hash_num_elements(params_ar);
|
||||||
|
|
||||||
func_args = (zval ***)emalloc(sizeof(zval **) * num_elems);
|
func_args = (zval ***)emalloc(sizeof(zval **) * num_elems);
|
||||||
|
Loading…
Reference in New Issue
Block a user