Merge branch 'PHP-7.1'

* PHP-7.1:
  Check if PHP is in execution state.
This commit is contained in:
Dmitry Stogov 2016-12-07 15:13:00 +03:00
commit 000d4a1a1b

View File

@ -190,7 +190,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