mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
Fixed a bug that causes crash when environment variable is access while parsing php.ini
This commit is contained in:
parent
4bdd9aabdd
commit
5b08e56eca
@ -69,7 +69,7 @@
|
|||||||
|
|
||||||
#define SAPI_LSAPI_MAX_HEADER_LENGTH 2048
|
#define SAPI_LSAPI_MAX_HEADER_LENGTH 2048
|
||||||
|
|
||||||
static int lsapi_mode = 1;
|
static int lsapi_mode = 0;
|
||||||
static char *php_self = "";
|
static char *php_self = "";
|
||||||
static char *script_filename = "";
|
static char *script_filename = "";
|
||||||
static int source_highlight = 0;
|
static int source_highlight = 0;
|
||||||
@ -1053,6 +1053,7 @@ int main( int argc, char * argv[] )
|
|||||||
LSAPI_Init();
|
LSAPI_Init();
|
||||||
|
|
||||||
LSAPI_Init_Env_Parameters( NULL );
|
LSAPI_Init_Env_Parameters( NULL );
|
||||||
|
lsapi_mode = 1;
|
||||||
|
|
||||||
slow_script_msec = LSAPI_Get_Slow_Req_Msecs();
|
slow_script_msec = LSAPI_Get_Slow_Req_Msecs();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user