com php-src: Fixed user error handler invocation (temporary disabled symbol table passing): Zend/zend.c

From: Date: Tue, 25 Feb 2014 09:35:39 +0000
Subject: com php-src: Fixed user error handler invocation (temporary disabled symbol table passing): Zend/zend.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77945@lists.php.net to get a copy of this message
Commit: 6b8253af270aab91321d05a2ed20c3bfbbe2db79 Author: Dmitry Stogov <dmitry@zend.com> Tue, 25 Feb 2014 13:35:39 +0400 Parents: 820184dd00a9997426522ce70026f7ef5f556e41 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6b8253af270aab91321d05a2ed20c3bfbbe2db79 Log: Fixed user error handler invocation (temporary disabled symbol table passing) Changed paths: M Zend/zend.c Diff: diff --git a/Zend/zend.c b/Zend/zend.c index fbb5c07..f771310 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -1176,8 +1176,13 @@ ZEND_API void zend_error(int type, const char *format, ...) /* {{{ */ if (!EG(active_symbol_table)) { ZVAL_NULL(&params[4]); } else { -//??? ZVAL_ARR(&params[4], EG(active_symbol_table)); +//??? +#if 1 + ZVAL_NULL(&params[4]); +#else + ZVAL_ARR(&params[4], EG(active_symbol_table)); zval_copy_ctor(&params[4]); +#endif } ZVAL_COPY_VALUE(&orig_user_error_handler, &EG(user_error_handler)); @@ -1229,10 +1234,15 @@ ZEND_API void zend_error(int type, const char *format, ...) /* {{{ */ CG(in_compilation) = 1; } + zval_ptr_dtor(&params[4]); + zval_ptr_dtor(&params[3]); + zval_ptr_dtor(&params[2]); + zval_ptr_dtor(&params[1]); + zval_ptr_dtor(&params[0]); + if (Z_TYPE(EG(user_error_handler)) == IS_UNDEF) { ZVAL_COPY_VALUE(&EG(user_error_handler), &orig_user_error_handler); - } - else { + } else { zval_ptr_dtor(&orig_user_error_handler); } break;

« previous php.cvs (#77945) next »