]> granicus.if.org Git - php/commitdiff
Fixed bug #30904 (segfault when recording soapclient into session).
authorDmitry Stogov <dmitry@php.net>
Tue, 7 Dec 2004 07:46:12 +0000 (07:46 +0000)
committerDmitry Stogov <dmitry@php.net>
Tue, 7 Dec 2004 07:46:12 +0000 (07:46 +0000)
Zend/zend_exceptions.c

index 5d3c005637aa73be311c0a3b38a9ad5b9d211da1..a270d2b27cabe08f0dc7c248e8dcc6c7a191a37d 100644 (file)
@@ -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;
        }