com php-src: Fixed a bug that causes crash when environment variable is access while parsing php.ini: sapi/litespeed/lsapi_main.c

From: Date: Mon, 03 Nov 2014 17:31:02 +0000
Subject: com php-src: Fixed a bug that causes crash when environment variable is access while parsing php.ini: sapi/litespeed/lsapi_main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-83197@lists.php.net to get a copy of this message
Commit: c6237f554fc4229615666953b6d2f615c7c217fb Author: George Wang <gwang@php.net> Fri, 3 Oct 2014 16:41:32 -0400 Parents: 01ef77d000efc2b56a1cf3e7d6ef191be5601ac5 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c6237f554fc4229615666953b6d2f615c7c217fb Log: Fixed a bug that causes crash when environment variable is access while parsing php.ini Changed paths: M sapi/litespeed/lsapi_main.c Diff: diff --git a/sapi/litespeed/lsapi_main.c b/sapi/litespeed/lsapi_main.c index 3da98b1..ae01893 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();

« previous php.cvs (#83197) next »