]> granicus.if.org Git - php/commitdiff
prevent xdebug from crashing
authorHarald Radi <phanto@php.net>
Wed, 19 Feb 2003 16:17:15 +0000 (16:17 +0000)
committerHarald Radi <phanto@php.net>
Wed, 19 Feb 2003 16:17:15 +0000 (16:17 +0000)
main/main.c

index d5d8d15623dd3761d1be7a6b90e121953a939df9..cc61d9486f90eb9eb86060d500b0da068e6b8cf9 100644 (file)
@@ -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();