felipe                                   Thu, 23 Jun 2011 02:28:04 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=312393

Log:
- Fix crash on cgi

Changed paths:
    U   php/php-src/branches/PHP_5_4/sapi/cgi/cgi_main.c

Modified: php/php-src/branches/PHP_5_4/sapi/cgi/cgi_main.c
===================================================================
--- php/php-src/branches/PHP_5_4/sapi/cgi/cgi_main.c    2011-06-23 02:23:12 UTC 
(rev 312392)
+++ php/php-src/branches/PHP_5_4/sapi/cgi/cgi_main.c    2011-06-23 02:28:04 UTC 
(rev 312393)
@@ -1744,7 +1744,7 @@

        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 @@
 #endif

        sapi_startup(&cgi_sapi_module);
+       fastcgi = fcgi_is_fastcgi();
        cgi_sapi_module.php_ini_path_override = NULL;

 #ifdef PHP_WIN32

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to