]> 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:42 +0000 (16:42 -0400)
sapi/litespeed/lsapi_main.c

index 3da98b16bc964c902610e6dca9bb580295e664f3..ae01893a7a076cc1b0c90644ee19ed9a2b413290 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();