Skip to content

Commit ab6d564

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Fixed uninitialized EX(opline) access (possible Zend/tests/gh12073.phpt crash)
2 parents 6850a04 + f1f608b commit ab6d564

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Zend/zend_vm_def.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8064,6 +8064,7 @@ ZEND_VM_HANDLER(142, ZEND_DECLARE_LAMBDA_FUNCTION, CONST, NUM)
80648064
called_scope = Z_CE(EX(This));
80658065
object = NULL;
80668066
}
8067+
SAVE_OPLINE();
80678068
zend_create_closure(EX_VAR(opline->result.var), func,
80688069
EX(func)->op_array.scope, called_scope, object);
80698070

Zend/zend_vm_execute.h

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)