mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00: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;
|
return FAILURE;
|
||||||
} else {
|
} else {
|
||||||
(*new_function->op_array.refcount)++;
|
(*function->op_array.refcount)++;
|
||||||
new_function->op_array.static_variables = NULL; /* NULL out the unbound function */
|
function->op_array.static_variables = NULL; /* NULL out the unbound function */
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user