From: Marcus Boerger Date: Fri, 3 Mar 2006 21:58:56 +0000 (+0000) Subject: - Fix issue with uncaught exceptions in unicode mode X-Git-Tag: RELEASE_1_2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9ea7e81c6e098b4549611bbe3b52bba9b90e81a;p=php - Fix issue with uncaught exceptions in unicode mode --- diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index 7016f9fdb6..fed71cfac4 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -311,10 +311,11 @@ ZEND_METHOD(error_exception, getSeverity) { \ zval tmp, copy; \ int use_copy; \ - ZVAL_UNICODEL(&tmp, val, vallen, 0); \ + ZVAL_UNICODEL(&tmp, val, vallen, 1); \ zend_make_printable_zval(&tmp, ©, &use_copy); \ TRACE_APPEND_STRL(Z_STRVAL(copy), Z_STRLEN(copy)); \ zval_dtor(©); \ + zval_dtor(&tmp); \ } #define TRACE_APPEND_ZVAL(zv) \