mirror of
https://github.com/php/php-src.git
synced 2026-03-26 09:12:14 +01:00
Keep original value of "prototype"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user