mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Keep original value of "prototype"
This commit is contained in:
parent
2fefa8c61e
commit
bf38e6c10a
1 changed files with 2 additions and 0 deletions
|
@ -1561,9 +1561,11 @@ int zend_optimize_script(zend_script *script, zend_long optimization_level, zend
|
|||
|
||||
ZEND_ASSERT(orig_op_array != NULL);
|
||||
if (orig_op_array != op_array) {
|
||||
zend_function *prototype = op_array->prototype;
|
||||
HashTable *ht = op_array->static_variables;
|
||||
|
||||
*op_array = *orig_op_array;
|
||||
op_array->prototype = prototype;
|
||||
op_array->static_variables = ht;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue