cvs: ZendEngine2(PHP_5_2) / zend_builtin_functions.c /tests bug39445.phpt php-src NEWS
| From: | Dmitry Stogov | Date: | Wed, 15 Nov 2006 16:05:12 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_2) / zend_builtin_functions.c /tests bug39445.phpt php-src NEWS | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-5408@lists.php.net to get a copy of this message | ||
dmitry Wed Nov 15 16:05:12 2006 UTC
Added files: (Branch: PHP_5_2)
/ZendEngine2/tests bug39445.phpt
Modified files:
/php-src NEWS
/ZendEngine2 zend_builtin_functions.c
Log:
Fixed bug #39445 (Calling debug_backtrace() in the __toString() function produces a crash)
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.363&r2=1.2027.2.547.2.364&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.363 php-src/NEWS:1.2027.2.547.2.364
--- php-src/NEWS:1.2027.2.547.2.363 Wed Nov 15 00:20:40 2006
+++ php-src/NEWS Wed Nov 15 16:05:11 2006
@@ -41,6 +41,8 @@
- Fixed wrong signature initialization in imagepng (Takeshi Abe)
- Added optimization for imageline with horizontal and vertial lines (Pierre)
- Fixed bug #39454 (Returning a SOAP array segfaults PHP). (Dmitry)
+- Fixed bug #39445 (Calling debug_backtrace() in the __toString() function
+ produces a crash). (Dmitry)
- Fixed bug #39414 (Syntax error while compiling with Sun Workshop Complier).
(Johannes)
- Fixed bug #39398 (Booleans are not automatically translated to integers).
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_builtin_functions.c?r1=1.277.2.12.2.8&r2=1.277.2.12.2.9&diff_format=u
Index: ZendEngine2/zend_builtin_functions.c
diff -u ZendEngine2/zend_builtin_functions.c:1.277.2.12.2.8
ZendEngine2/zend_builtin_functions.c:1.277.2.12.2.9
--- ZendEngine2/zend_builtin_functions.c:1.277.2.12.2.8 Tue Sep 26 07:55:09 2006
+++ ZendEngine2/zend_builtin_functions.c Wed Nov 15 16:05:11 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_builtin_functions.c,v 1.277.2.12.2.8 2006/09/26 07:55:09 dmitry Exp $ */
+/* $Id: zend_builtin_functions.c,v 1.277.2.12.2.9 2006/11/15 16:05:11 dmitry Exp $ */
#include "zend.h"
#include "zend_API.h"
@@ -1661,7 +1661,9 @@
while (--arg_count >= 0) {
arg = (zval **) p++;
if (*arg) {
- SEPARATE_ZVAL_TO_MAKE_IS_REF(arg);
+ if ((*arg)->type != IS_OBJECT) {
+ SEPARATE_ZVAL_TO_MAKE_IS_REF(arg);
+ }
(*arg)->refcount++;
add_next_index_zval(arg_array, *arg);
} else {
http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/bug39445.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/bug39445.phpt
+++ ZendEngine2/tests/bug39445.phpt