diff options
-rw-r--r-- | Zend/zend_exceptions.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index 8f41e1ce71..7561e8ca45 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -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 |