From: Felipe Pena Date: Tue, 7 Jun 2011 22:58:38 +0000 (+0000) Subject: - Fixed bug #55007 (compiler fail after previous fail) X-Git-Tag: php-5.3.7RC1~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f75714650b2a0a5132891dcc8c0dca58f14dde87;p=php - Fixed bug #55007 (compiler fail after previous fail) --- diff --git a/NEWS b/NEWS index c7d8e522de..0c721342c5 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,7 @@ PHP NEWS - Increased the backtrack limit from 100000 to 1000000 (Rasmus) - Zend Engine: + . Fixed bug #55007 (compiler fail after previous fail). (Felipe) . Fixed bug #54910 (Crash when calling call_user_func with unknown function name). (Dmitry) . Fixed bug #54804 (__halt_compiler and imported namespaces). diff --git a/Zend/tests/bug55007.phpt b/Zend/tests/bug55007.phpt new file mode 100644 index 0000000000..12fbf120a8 --- /dev/null +++ b/Zend/tests/bug55007.phpt @@ -0,0 +1,23 @@ +--TEST-- +Bug #55007 (compiler fail after previous fail) +--FILE-- + +--EXPECTF-- +Fatal error: Cannot use [] for reading in %s(%d) : eval()'d code on line %d +My error handler runs. diff --git a/Zend/zend.c b/Zend/zend.c index fac824074d..6861f618bc 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -808,6 +808,7 @@ ZEND_API void _zend_bailout(char *filename, uint lineno) /* {{{ */ exit(-1); } CG(unclean_shutdown) = 1; + CG(active_class_entry) = NULL; CG(in_compilation) = EG(in_execution) = 0; EG(current_execute_data) = NULL; LONGJMP(*EG(bailout), FAILURE);