mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fixed uninitialized EX(opline) access (possible Zend/tests/gh12073.phpt crash)
This commit is contained in:
@@ -8174,6 +8174,7 @@ ZEND_VM_HANDLER(142, ZEND_DECLARE_LAMBDA_FUNCTION, CONST, NUM)
|
||||
called_scope = Z_CE(EX(This));
|
||||
object = NULL;
|
||||
}
|
||||
SAVE_OPLINE();
|
||||
zend_create_closure(EX_VAR(opline->result.var), func,
|
||||
EX(func)->op_array.scope, called_scope, object);
|
||||
|
||||
|
||||
1
Zend/zend_vm_execute.h
generated
1
Zend/zend_vm_execute.h
generated
@@ -5488,6 +5488,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_DECLARE_LAMBDA_FUNCTION_SPEC_C
|
||||
called_scope = Z_CE(EX(This));
|
||||
object = NULL;
|
||||
}
|
||||
SAVE_OPLINE();
|
||||
zend_create_closure(EX_VAR(opline->result.var), func,
|
||||
EX(func)->op_array.scope, called_scope, object);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user