mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
- Better stability during premature shutdown of request startup
This commit is contained in:
parent
41b639fffe
commit
e5cfb1d05c
12 changed files with 75 additions and 46 deletions
|
@ -694,9 +694,12 @@ static zend_bool php_auto_globals_create_server(char *name, uint name_len TSRMLS
|
|||
|
||||
static zend_bool php_auto_globals_create_env(char *name, uint name_len TSRMLS_DC)
|
||||
{
|
||||
ALLOC_ZVAL(PG(http_globals)[TRACK_VARS_ENV]);
|
||||
array_init(PG(http_globals)[TRACK_VARS_ENV]);
|
||||
INIT_PZVAL(PG(http_globals)[TRACK_VARS_ENV]);
|
||||
zval *env_vars=NULL;
|
||||
ALLOC_ZVAL(env_vars);
|
||||
array_init(env_vars);
|
||||
INIT_PZVAL(env_vars);
|
||||
PG(http_globals)[TRACK_VARS_ENV] = env_vars;
|
||||
|
||||
php_import_environment_variables(PG(http_globals)[TRACK_VARS_ENV] TSRMLS_CC);
|
||||
|
||||
zend_hash_update(&EG(symbol_table), name, name_len+1, &PG(http_globals)[TRACK_VARS_ENV], sizeof(zval *), NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue