1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

tsrm environment lock

This commit is contained in:
Joe Watkins
2019-03-29 08:01:31 +01:00
parent 61ad294f26
commit 072eb6dd77
7 changed files with 61 additions and 3 deletions

View File

@@ -548,6 +548,8 @@ void _php_import_environment_variables(zval *array_ptr)
zval val;
zend_ulong idx;
tsrm_env_lock();
for (env = environ; env != NULL && *env != NULL; env++) {
p = strchr(*env, '=');
if (!p
@@ -572,6 +574,8 @@ void _php_import_environment_variables(zval *array_ptr)
php_register_variable_quick(*env, name_len, &val, Z_ARRVAL_P(array_ptr));
}
}
tsrm_env_unlock();
}
zend_bool php_std_auto_global_callback(char *name, uint32_t name_len)