]> granicus.if.org Git - php/commitdiff
fix segfault in Exception::__toString()
authorAntony Dovgal <tony2001@php.net>
Sun, 13 Jul 2008 09:29:44 +0000 (09:29 +0000)
committerAntony Dovgal <tony2001@php.net>
Sun, 13 Jul 2008 09:29:44 +0000 (09:29 +0000)
Zend/zend_exceptions.c

index 2ffca65082082b87c6eb246d0c01a7d4c38f7fcd..a1979ffc090fc24338269eb7524385a47f400e15 100644 (file)
@@ -530,7 +530,6 @@ ZEND_METHOD(exception, __toString)
 
                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. */