We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63072e9 commit d36230fCopy full SHA for d36230f
Zend/zend_opcode.c
@@ -546,6 +546,10 @@ ZEND_API int pass_two(zend_op_array *op_array)
546
CG(context).literals_size = op_array->last_literal;
547
#endif
548
549
+ /* Needs to be set directly after the opcode/literal reallocation, to ensure destruction
550
+ * happens correctly if any of the following fixups generate a fatal error. */
551
+ op_array->fn_flags |= ZEND_ACC_DONE_PASS_TWO;
552
+
553
opline = op_array->opcodes;
554
end = opline + op_array->last;
555
while (opline < end) {
@@ -674,7 +678,6 @@ ZEND_API int pass_two(zend_op_array *op_array)
674
678
}
675
679
676
680
677
- op_array->fn_flags |= ZEND_ACC_DONE_PASS_TWO;
681
return 0;
682
683
0 commit comments