mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix a bug in call_user_func_ex()
This commit is contained in:
parent
6393ab1486
commit
0487650536
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue