com php-src: Check if PHP is in execution state.: Zend/zend_e xceptions.c

From: Date: Wed, 07 Dec 2016 12:12:18 +0000
Subject: com php-src: Check if PHP is in execution state.: Zend/zend_e xceptions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-96241@lists.php.net to get a copy of this message
Commit: 3c8c347fa7c420035509324b764c0b38c2b71913 Author: Dmitry Stogov <dmitry@zend.com> Wed, 7 Dec 2016 15:10:59 +0300 Parents: 991ca7f7d7965ed217c981941c23531dc75f735f Branches: PHP-7.0 PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3c8c347fa7c420035509324b764c0b38c2b71913 Log: Check if PHP is in execution state. Changed paths: M Zend/zend_exceptions.c Diff: diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index e0aa370..bac9d34 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -186,7 +186,9 @@ ZEND_API void zend_clear_exception(void) /* {{{ */ } OBJ_RELEASE(EG(exception)); EG(exception) = NULL; - EG(current_execute_data)->opline = EG(opline_before_exception); + if (EG(current_execute_data)) { + EG(current_execute_data)->opline = EG(opline_before_exception); + } #if ZEND_DEBUG EG(opline_before_exception) = NULL; #endif

« previous php.cvs (#96241) next »