cvs: ZendEngine2(PHP_5_3) / zend_exceptions.c
| From: | Antony Dovgal | Date: | Sun, 13 Jul 2008 09:32:46 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_3) / zend_exceptions.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-6880@lists.php.net to get a copy of this message | ||
tony2001 Sun Jul 13 09:32:46 2008 UTC
Modified files: (Branch: PHP_5_3)
/ZendEngine2 zend_exceptions.c
Log:
apply correct fix
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_exceptions.c?r1=1.79.2.6.2.9.2.9&r2=1.79.2.6.2.9.2.10&diff_format=u
Index: ZendEngine2/zend_exceptions.c
diff -u ZendEngine2/zend_exceptions.c:1.79.2.6.2.9.2.9
ZendEngine2/zend_exceptions.c:1.79.2.6.2.9.2.10
--- ZendEngine2/zend_exceptions.c:1.79.2.6.2.9.2.9 Sun Jul 13 09:29:44 2008
+++ ZendEngine2/zend_exceptions.c Sun Jul 13 09:32:46 2008
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_exceptions.c,v 1.79.2.6.2.9.2.9 2008/07/13 09:29:44 tony2001 Exp $ */
+/* $Id: zend_exceptions.c,v 1.79.2.6.2.9.2.10 2008/07/13 09:32:46 tony2001 Exp $ */
#include "zend.h"
#include "zend_API.h"
@@ -484,7 +484,7 @@
zval fname;
exception = getThis();
- ZVAL_STRINGL(&fname, "gettraceasstring", sizeof("gettraceasstring")-1, 0);
+ ZVAL_STRINGL(&fname, "gettraceasstring", sizeof("gettraceasstring")-1, 1);
while (exception && Z_TYPE_P(exception) == IS_OBJECT) {
prev_str = str;
@@ -530,6 +530,7 @@
exception = zend_read_property(default_exception_ce, exception, "previous",
sizeof("previous")-1, 0 TSRMLS_CC);
}
+ zval_dtor(&fname);
/* We store the result in the private property string so we can access
* the result in uncaught exception handlers without memleaks. */