com php-src: Added ability to make non-local control transfer through interrupt function: Zend/zend_vm_def.h Zend/zend_vm _execute.h
| From: | Dmitry Stogov | Date: | Fri, 24 Jun 2016 09:20:41 +0000 |
| Subject: | com php-src: Added ability to make non-local control transfer through interrupt function: Zend/zend_vm_def.h Zend/zend_vm _execute.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92637@lists.php.net to get a copy of this message | ||
Commit: a6387c0aa5e5475d9a028697d4aa99bee9445e6d
Author: Dmitry Stogov <dmitry@zend.com> Fri, 24 Jun 2016 12:20:41 +0300
Parents: 700ba3fc1e288ddc8e58c9d7d293669a7712074d
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a6387c0aa5e5475d9a028697d4aa99bee9445e6d
Log:
Added ability to make non-local control transfer through interrupt function
Changed paths:
M Zend/zend_vm_def.h
M Zend/zend_vm_execute.h
Diff:
diff --git a/Zend/zend_vm_def.h b/Zend/zend_vm_def.h
index feded0a..dcfaf97 100644
--- a/Zend/zend_vm_def.h
+++ b/Zend/zend_vm_def.h
@@ -8613,7 +8613,7 @@ ZEND_VM_HELPER(zend_interrupt_helper, ANY, ANY)
} else if (zend_interrupt_function) {
SAVE_OPLINE();
zend_interrupt_function(execute_data);
- LOAD_OPLINE();
+ ZEND_VM_ENTER();
}
ZEND_VM_CONTINUE();
}
diff --git a/Zend/zend_vm_execute.h b/Zend/zend_vm_execute.h
index 1943dc5..e68f8e4 100644
--- a/Zend/zend_vm_execute.h
+++ b/Zend/zend_vm_execute.h
@@ -2081,7 +2081,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL
zend_interrupt_helper_SPEC(ZEND_OPC
} else if (zend_interrupt_function) {
SAVE_OPLINE();
zend_interrupt_function(execute_data);
- LOAD_OPLINE();
+ ZEND_VM_ENTER();
}
ZEND_VM_CONTINUE();
}