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

index 1fbd56fbf9b8b5366101b5a5e667f60ca50de50e..9092a1d650fca9b6ddae221cc5176aa2b8ec7122 100644 (file)
@@ -916,6 +916,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();