Skip to content

Commit bf38e6c

Browse files
committed
Keep original value of "prototype"
1 parent 2fefa8c commit bf38e6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/opcache/Optimizer/zend_optimizer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,9 +1561,11 @@ int zend_optimize_script(zend_script *script, zend_long optimization_level, zend
15611561

15621562
ZEND_ASSERT(orig_op_array != NULL);
15631563
if (orig_op_array != op_array) {
1564+
zend_function *prototype = op_array->prototype;
15641565
HashTable *ht = op_array->static_variables;
15651566

15661567
*op_array = *orig_op_array;
1568+
op_array->prototype = prototype;
15671569
op_array->static_variables = ht;
15681570
}
15691571
}

0 commit comments

Comments
 (0)