Browse Source

Check if PHP is in execution state.

pull/2180/head
Dmitry Stogov 10 years ago
parent
commit
3c8c347fa7
  1. 4
      Zend/zend_exceptions.c

4
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

Loading…
Cancel
Save