cvs: ZendEngine2(PHP_5_2) / zend_vm_def.h zend_vm_execute.h /tests bug43175.phpt php-src NEWS
| From: | Dmitry Stogov | Date: | Fri, 09 Nov 2007 09:16:46 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_2) / zend_vm_def.h zend_vm_execute.h /tests bug43175.phpt php-src NEWS | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-6136@lists.php.net to get a copy of this message | ||
dmitry Fri Nov 9 09:16:46 2007 UTC
Added files: (Branch: PHP_5_2)
/ZendEngine2/tests bug43175.phpt
Modified files:
/php-src NEWS
/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/php-src/NEWS?r1=1.2027.2.547.2.1000&r2=1.2027.2.547.2.1001&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.1000 php-src/NEWS:1.2027.2.547.2.1001
--- php-src/NEWS:1.2027.2.547.2.1000 Thu Nov 8 13:53:13 2007
+++ php-src/NEWS Fri Nov 9 09:16:44 2007
@@ -1,6 +1,8 @@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2008, PHP 5.2.6
+- Fixed bug #43175 (__destruct() throwing an exception with __call() causes
+ segfault). (Dmitry)
08 Nov 2007, PHP 5.2.5
- Upgraded PCRE to version 7.3 (Nuno)
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_vm_def.h?r1=1.59.2.29.2.51&r2=1.59.2.29.2.52&diff_format=u
Index: ZendEngine2/zend_vm_def.h
diff -u ZendEngine2/zend_vm_def.h:1.59.2.29.2.51 ZendEngine2/zend_vm_def.h:1.59.2.29.2.52
--- ZendEngine2/zend_vm_def.h:1.59.2.29.2.51 Thu Oct 4 23:23:41 2007
+++ ZendEngine2/zend_vm_def.h Fri Nov 9 09:16:44 2007
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_vm_def.h,v 1.59.2.29.2.51 2007/10/04 23:23:41 iliaa Exp $ */
+/* $Id: zend_vm_def.h,v 1.59.2.29.2.52 2007/11/09 09:16:44 dmitry Exp $ */
/* If you change this file, please regenerate the zend_vm_execute.h and
* zend_vm_opcodes.h files by running:
@@ -1995,6 +1995,8 @@
}
}
+ EX(function_state).function = (zend_function *) EX(op_array);
+ EG(function_state_ptr) = &EX(function_state);
ctor_opline = (zend_op*)zend_ptr_stack_pop(&EG(arg_types_stack));
if (EG(This)) {
@@ -2017,8 +2019,6 @@
}
zend_ptr_stack_2_pop(&EG(arg_types_stack), (void**)&EX(object), (void**)&EX(fbc));
- 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.52&r2=1.62.2.30.2.53&diff_format=u
Index: ZendEngine2/zend_vm_execute.h
diff -u ZendEngine2/zend_vm_execute.h:1.62.2.30.2.52 ZendEngine2/zend_vm_execute.h:1.62.2.30.2.53
--- ZendEngine2/zend_vm_execute.h:1.62.2.30.2.52 Thu Oct 4 23:23:41 2007
+++ ZendEngine2/zend_vm_execute.h Fri Nov 9 09:16:44 2007
@@ -280,6 +280,8 @@
}
}
+ EX(function_state).function = (zend_function *) EX(op_array);
+ EG(function_state_ptr) = &EX(function_state);
ctor_opline = (zend_op*)zend_ptr_stack_pop(&EG(arg_types_stack));
if (EG(This)) {
@@ -302,8 +304,6 @@
}
zend_ptr_stack_2_pop(&EG(arg_types_stack), (void**)&EX(object), (void**)&EX(fbc));
- 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