Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Check if PHP is in execution state.
This commit is contained in:
Dmitry Stogov 2016-12-07 15:12:48 +03:00
commit ee15891c35

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