cvs: ZendEngine2(PHP_5_3) / zend_exceptions.c

"Antony Dovgal" <[email protected]>
Newsgroups gmane.comp.php.cvs.zend
Message-ID <cvstony20011215941566@cvsserver>
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. */



-- 
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.