summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2008-07-13 09:32:46 +0000
committerAntony Dovgal <tony2001@php.net>2008-07-13 09:32:46 +0000
commit205ba532cf54dbd4dfd47cefa480430357e6652a (patch)
tree111f5847f3a9f55ed6fdcec3ed0dd3ec2566c003 /Zend/zend_exceptions.c
parent68a61e9981a726cb6b297b0ebfb79d7e90bfbb57 (diff)
downloadphp-git-205ba532cf54dbd4dfd47cefa480430357e6652a.tar.gz
apply correct fix
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r--Zend/zend_exceptions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index a1979ffc09..3c5f9c67e2 100644
--- a/Zend/zend_exceptions.c
+++ b/Zend/zend_exceptions.c
@@ -484,7 +484,7 @@ ZEND_METHOD(exception, __toString)
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 @@ 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. */