Skip to content

Commit 1a5a6d7

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: zend_timeout() may access EX(opline)
2 parents a1eaaa6 + b2376be commit 1a5a6d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Zend/zend_vm_def.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9202,10 +9202,10 @@ ZEND_VM_DEFINE_OP(137, ZEND_OP_DATA);
92029202
ZEND_VM_HELPER(zend_interrupt_helper, ANY, ANY)
92039203
{
92049204
EG(vm_interrupt) = 0;
9205+
SAVE_OPLINE();
92059206
if (EG(timed_out)) {
92069207
zend_timeout(0);
92079208
} else if (zend_interrupt_function) {
9208-
SAVE_OPLINE();
92099209
zend_interrupt_function(execute_data);
92109210
ZEND_VM_ENTER();
92119211
}

Zend/zend_vm_execute.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2836,10 +2836,10 @@ static ZEND_VM_HOT ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_JMP_FORWARD_SPEC_H
28362836
static zend_never_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_interrupt_helper_SPEC(ZEND_OPCODE_HANDLER_ARGS)
28372837
{
28382838
EG(vm_interrupt) = 0;
2839+
SAVE_OPLINE();
28392840
if (EG(timed_out)) {
28402841
zend_timeout(0);
28412842
} else if (zend_interrupt_function) {
2842-
SAVE_OPLINE();
28432843
zend_interrupt_function(execute_data);
28442844
ZEND_VM_ENTER();
28452845
}

0 commit comments

Comments
 (0)