mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Fix a bug in call_user_func_ex()
This commit is contained in:
parent
6393ab1486
commit
0487650536
@ -343,6 +343,7 @@ int call_user_function_ex(HashTable *function_table, zval *object, zval *functio
|
||||
}
|
||||
new_zval = (zval *) emalloc(sizeof(zval));
|
||||
*new_zval = **params[i];
|
||||
zval_copy_ctor(new_zval);
|
||||
new_zval->refcount = 1;
|
||||
new_zval->EA.locks = 0;
|
||||
(*params[i])->refcount--;
|
||||
|
Loading…
Reference in New Issue
Block a user