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: Fri, 03 Oct 2014 20:42:42 +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-82089@lists.php.net to get a copy of this message
Commit: a7d2747890846ed68cc86c6e8d3fd005525ff0cc Author: George Wang <gwang@php.net> Fri, 3 Oct 2014 16:41:32 -0400 Parents: 2470e01ab6d30e5ed3d890f0aaf1321215edb4cd Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a7d2747890846ed68cc86c6e8d3fd005525ff0cc 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 (#82089) next »