From: Harald Radi Date: Wed, 19 Feb 2003 16:17:15 +0000 (+0000) Subject: prevent xdebug from crashing X-Git-Tag: RELEASE_0_5~866 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53d70b2c14cf693957d959573a1e17136433ba0d;p=php prevent xdebug from crashing --- diff --git a/main/main.c b/main/main.c index d5d8d15623..cc61d9486f 100644 --- a/main/main.c +++ b/main/main.c @@ -1065,6 +1065,10 @@ void php_request_shutdown(void *dummy) { TSRMLS_FETCH(); + /* EG(opline_ptr) points into nirvana and therefore cannot be safely accessed + inside zend_executor callback functions. */ + EG(opline_ptr) = NULL; + zend_try { php_end_ob_buffers((zend_bool)(SG(request_info).headers_only?0:1) TSRMLS_CC); } zend_end_try();