From: Dmitry Stogov Date: Tue, 7 Dec 2004 07:46:12 +0000 (+0000) Subject: Fixed bug #30904 (segfault when recording soapclient into session). X-Git-Tag: RELEASE_0_2~558 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b18b931d07c57ca59a45c28ed2f305dda23619f;p=php Fixed bug #30904 (segfault when recording soapclient into session). --- diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index 5d3c005637..a270d2b27c 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -51,7 +51,8 @@ void zend_throw_exception_internal(zval *exception TSRMLS_DC) zend_throw_exception_hook(exception TSRMLS_CC); } - if ((EG(current_execute_data)->opline+1)->opcode == ZEND_HANDLE_EXCEPTION) { + if (EG(current_execute_data)->opline == NULL || + (EG(current_execute_data)->opline+1)->opcode == ZEND_HANDLE_EXCEPTION) { /* no need to rethrow the exception */ return; }