]> granicus.if.org Git - php/commitdiff
- Fixed crash in fastcgi (related to zend signals changes)
authorFelipe Pena <felipe@php.net>
Sun, 5 Jun 2011 17:02:46 +0000 (17:02 +0000)
committerFelipe Pena <felipe@php.net>
Sun, 5 Jun 2011 17:02:46 +0000 (17:02 +0000)
sapi/cgi/cgi_main.c

index a26d009c90aa9f35b71b4ed36ba13e12ce51db9d..01c417bef267ff93c45e4bfe388a93beb360de2e 100644 (file)
@@ -1744,7 +1744,7 @@ int main(int argc, char *argv[])
 
        int max_requests = 500;
        int requests = 0;
-       int fastcgi = fcgi_is_fastcgi();
+       int fastcgi;
        char *bindpath = NULL;
        int fcgi_fd = 0;
        fcgi_request *request = NULL;
@@ -1786,6 +1786,7 @@ int main(int argc, char *argv[])
 #endif
 
        sapi_startup(&cgi_sapi_module);
+       fastcgi = fcgi_is_fastcgi();
        cgi_sapi_module.php_ini_path_override = NULL;
 
 #ifdef PHP_WIN32