summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorGeorge Wang <gwang@php.net>2014-10-03 16:41:32 -0400
committerGeorge Wang <gwang@php.net>2014-10-03 16:41:32 -0400
commit26ff3a4c1e8b809558ba8fd9238693fac0a39041 (patch)
tree201563c2643b89b837d89da2a000be0e0e612181 /sapi
parent4e7b31a0dbe47d9218ff6a30f50121ddb612ce19 (diff)
downloadphp-git-26ff3a4c1e8b809558ba8fd9238693fac0a39041.tar.gz
Fixed a bug that causes crash when environment variable is access while parsing php.ini
Diffstat (limited to 'sapi')
-rw-r--r--sapi/litespeed/lsapi_main.c3
1 files changed, 2 insertions, 1 deletions
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();