cvs: ZendEngine2(PHP_5_3) / zend_vm_def.h zend_vm_execute.h /tests bug43175.phpt
| From: | Dmitry Stogov | Date: | Tue, 06 Nov 2007 14:56:16 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_3) / zend_vm_def.h zend_vm_execute.h /tests bug43175.phpt | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-6133@lists.php.net to get a copy of this message | ||
dmitry Tue Nov 6 14:56:16 2007 UTC
Added files: (Branch: PHP_5_3)
/ZendEngine2/tests bug43175.phpt
Modified files:
/ZendEngine2 zend_vm_def.h zend_vm_execute.h
Log:
Fixed bug #43175 (__destruct() throwing an exception with __call() causes segfault)
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_vm_def.h?r1=1.59.2.29.2.48.2.17&r2=1.59.2.29.2.48.2.18&diff_format=u
Index: ZendEngine2/zend_vm_def.h
diff -u ZendEngine2/zend_vm_def.h:1.59.2.29.2.48.2.17 ZendEngine2/zend_vm_def.h:1.59.2.29.2.48.2.18
--- ZendEngine2/zend_vm_def.h:1.59.2.29.2.48.2.17 Tue Nov 6 14:11:57 2007
+++ ZendEngine2/zend_vm_def.h Tue Nov 6 14:56:13 2007
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_vm_def.h,v 1.59.2.29.2.48.2.17 2007/11/06 14:11:57 dmitry Exp $ */
+/* $Id: zend_vm_def.h,v 1.59.2.29.2.48.2.18 2007/11/06 14:56:13 dmitry Exp $ */
/* If you change this file, please regenerate the zend_vm_execute.h and
* zend_vm_opcodes.h files by running:
@@ -2092,6 +2092,9 @@
}
}
+ EX(function_state).function = (zend_function *) EX(op_array);
+ EG(function_state_ptr) = &EX(function_state);
+
if (EG(This)) {
if (EG(exception) && IS_CTOR_CALL(EX(called_scope))) {
if (IS_CTOR_USED(EX(called_scope))) {
@@ -2115,8 +2118,6 @@
EG(called_scope) = current_called_scope;
}
- EX(function_state).function = (zend_function *) EX(op_array);
- EG(function_state_ptr) = &EX(function_state);
zend_ptr_stack_clear_multiple(TSRMLS_C);
if (EG(exception)) {
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_vm_execute.h?r1=1.62.2.30.2.49.2.16&r2=1.62.2.30.2.49.2.17&diff_format=u
Index: ZendEngine2/zend_vm_execute.h
diff -u ZendEngine2/zend_vm_execute.h:1.62.2.30.2.49.2.16
ZendEngine2/zend_vm_execute.h:1.62.2.30.2.49.2.17
--- ZendEngine2/zend_vm_execute.h:1.62.2.30.2.49.2.16 Tue Nov 6 14:11:57 2007
+++ ZendEngine2/zend_vm_execute.h Tue Nov 6 14:56:13 2007
@@ -275,6 +275,9 @@
}
}
+ EX(function_state).function = (zend_function *) EX(op_array);
+ EG(function_state_ptr) = &EX(function_state);
+
if (EG(This)) {
if (EG(exception) && IS_CTOR_CALL(EX(called_scope))) {
if (IS_CTOR_USED(EX(called_scope))) {
@@ -298,8 +301,6 @@
EG(called_scope) = current_called_scope;
}
- EX(function_state).function = (zend_function *) EX(op_array);
- EG(function_state_ptr) = &EX(function_state);
zend_ptr_stack_clear_multiple(TSRMLS_C);
if (EG(exception)) {
http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/bug43175.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/bug43175.phpt
+++ ZendEngine2/tests/bug43175.phpt