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:15 +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-82087@lists.php.net to get a copy of this message
Commit: 0cc2600ec64d882df7f44390bfd5411750f86947 Author: George Wang <gwang@php.net> Fri, 3 Oct 2014 16:41:32 -0400 Parents: bdac08bcdd61181cdda43edad414fe9e205401ca Branches: PHP-5.5 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0cc2600ec64d882df7f44390bfd5411750f86947 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 789ebf2..425d638 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 (#82087) next »