zend_call_function(&fci, NULL TSRMLS_CC);
if (Z_TYPE_P(trace) != IS_STRING) {
+ zval_ptr_dtor(&trace);
trace = NULL;
}
zval_dtor(&line);
exception = zend_read_property(default_exception_ce, exception, "previous", sizeof("previous")-1, 0 TSRMLS_CC);
+
+ if (trace) {
+ zval_ptr_dtor(&trace);
+ }
}
zval_dtor(&fname);
* the result in uncaught exception handlers without memleaks. */
zend_update_property_string(default_exception_ce, getThis(), "string", sizeof("string")-1, str TSRMLS_CC);
- if (trace) {
- zval_ptr_dtor(&trace);
- }
-
RETURN_STRINGL(str, len, 0);
}
/* }}} */