summaryrefslogtreecommitdiff
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:42:42 -0400
commita7d2747890846ed68cc86c6e8d3fd005525ff0cc (patch)
treedb17d1f17a8950b125c3fbd771cdcc88d8117476
parent2470e01ab6d30e5ed3d890f0aaf1321215edb4cd (diff)
downloadphp-git-a7d2747890846ed68cc86c6e8d3fd005525ff0cc.tar.gz
Fixed a bug that causes crash when environment variable is access while parsing php.ini
-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 3da98b16bc..ae01893a7a 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();