php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7650 called uninitialized function pointer
Submitted: 2000-11-05 19:34 UTC Modified: 2001-03-04 20:29 UTC
From: i at fano dot com dot ua Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.3pl1 OS: Any
Private report: No CVE-ID: None
 [2000-11-05 19:34 UTC] i at fano dot com dot ua
--- php-4.0.3pl1/sapi/cgi/cgi_main.c.old        Wed Oct 11 20:48:44 2000
+++ php-4.0.3pl1/sapi/cgi/cgi_main.c    Mon Nov  6 02:19:44 2000
@@ -419,6 +419,9 @@
        setmode(_fileno(stderr), O_BINARY);             /* make the stdio mode be binary */
 #endif
 
+       if (php_module_startup(&sapi_module)==FAILURE) {
+               return FAILURE;
+       }
 
        /* Make sure we detect we are a cgi - a bit redundancy here,
           but the default case is that we have to check only the first one. */
@@ -475,9 +478,6 @@
                ap_php_optarg = orig_optarg;
        }
 
-       if (php_module_startup(&sapi_module)==FAILURE) {
-               return FAILURE;
-       }
 #ifdef ZTS
        compiler_globals = ts_resource(compiler_globals_id);
        executor_globals = ts_resource(executor_globals_id);

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-07 03:51 UTC] sniper@php.net
What is this path supposed to fix? And have you tried PHP 4.0.4 to check
whether it needs this or not?

--Jani
 [2001-01-07 03:51 UTC] sniper@php.net
What is this patch supposed to fix? And have you tried PHP 4.0.4 to check
whether it needs this or not?

--Jani
 [2001-03-04 20:29 UTC] sniper@php.net
Fixed in CVS now. Thanks!

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 21:01:29 2024 UTC