]> granicus.if.org Git - php/commitdiff
Fix a crash in CGI mode, in case no file is provided
authorZeev Suraski <zeev@php.net>
Tue, 17 Oct 2000 18:12:31 +0000 (18:12 +0000)
committerZeev Suraski <zeev@php.net>
Tue, 17 Oct 2000 18:12:31 +0000 (18:12 +0000)
NEWS
main/main.c

diff --git a/NEWS b/NEWS
index c4e251fdaec3719b9b5db99dd165e15483989e29..2c4dae4fc5a7cce14e6b16802fdab223dc093b76 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,8 @@ PHP 4.0                                                                    NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 
 ?? ??? 2000, Version 4.0.4
+- Fixed a crash in CGI mode, in case no file was provided (Daniel Beulshausen
+  & Zeev)
 - Fixed possible crash bug in imap_fetchstructure() (Jani)
 - Fixed possible crash bug in imap_open() (Jani & Mark Musone)
 - Added url_rewriter.tags configuration directive (Sascha)
index d2e18fcffdbbb4e85aa59522f834e3f075055398..dd5a02ddccf36795860fc4be6df2eb199d855528 100644 (file)
@@ -67,6 +67,7 @@
 #include "zend_execute.h"
 #include "zend_highlight.h"
 #include "zend_indent.h"
+#include "zend_extensions.h"
 
 #include "php_content_types.h"
 #include "php_ticks.h"
@@ -657,7 +658,7 @@ void php_request_shutdown(void *dummy)
                php_end_ob_buffers(SG(request_info).headers_only?0:1);
        }
 
-       if (setjmp(EG(bailout))==0) {
+       if (PG(modules_activated) && setjmp(EG(bailout))==0) {
                php_call_shutdown_functions();
        }