PHP 4.0 Bug #7650: called uninitialized function pointer
| From: | i at fano dot com dot ua | Date: | Mon, 06 Nov 2000 00:34:47 +0000 |
| Subject: | PHP 4.0 Bug #7650: called uninitialized function pointer | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-37212@lists.php.net to get a copy of this message | ||
From: i@fano.com.ua
Operating system: Any
PHP version: 4.0.3pl1
PHP Bug Type: Reproduceable crash
Bug description: called uninitialized function pointer
--- 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);
--
Edit Bug report at: http://bugs.php.net/?id=7650&edit=1