mirror of
https://github.com/php/php-src.git
synced 2024-12-19 06:50:17 +08:00
Fixed handling of "static" variables
This commit is contained in:
parent
329a576f39
commit
e4b5848859
@ -4594,8 +4594,8 @@ ZEND_API int do_bind_function(const zend_op_array *op_array, zend_op *opline, Ha
|
||||
}
|
||||
return FAILURE;
|
||||
} else {
|
||||
(*new_function->op_array.refcount)++;
|
||||
new_function->op_array.static_variables = NULL; /* NULL out the unbound function */
|
||||
(*function->op_array.refcount)++;
|
||||
function->op_array.static_variables = NULL; /* NULL out the unbound function */
|
||||
return SUCCESS;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user