From: George Wang Date: Fri, 3 Oct 2014 20:41:32 +0000 (-0400) Subject: Fixed a bug that causes crash when environment variable is access while parsing php.ini X-Git-Tag: php-5.5.19RC1~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0cc2600ec64d882df7f44390bfd5411750f86947;p=php Fixed a bug that causes crash when environment variable is access while parsing php.ini --- diff --git a/sapi/litespeed/lsapi_main.c b/sapi/litespeed/lsapi_main.c index 789ebf2460..425d638f9e 100644 --- a/sapi/litespeed/lsapi_main.c +++ b/sapi/litespeed/lsapi_main.c @@ -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();