]> granicus.if.org Git - php/commitdiff
Fixed a bug that causes crash when environment variable is access while parsing php.ini
authorGeorge Wang <gwang@php.net>
Fri, 3 Oct 2014 20:41:32 +0000 (16:41 -0400)
committerGeorge Wang <gwang@php.net>
Fri, 3 Oct 2014 20:42:15 +0000 (16:42 -0400)
sapi/litespeed/lsapi_main.c

index 789ebf24607ea5a7206a938c949c847597d8baa1..425d638f9ef233d09e9cf26f6c43e3bd5ce9e626 100644 (file)
@@ -69,7 +69,7 @@
 
 #define SAPI_LSAPI_MAX_HEADER_LENGTH 2048
 
-static int  lsapi_mode       = 1;
+static int  lsapi_mode       = 0;
 static char *php_self        = "";
 static char *script_filename = "";
 static int  source_highlight = 0;
@@ -1053,6 +1053,7 @@ int main( int argc, char * argv[] )
     LSAPI_Init();
    
     LSAPI_Init_Env_Parameters( NULL );
+    lsapi_mode = 1; 
 
     slow_script_msec = LSAPI_Get_Slow_Req_Msecs();