@- In CGI mode, $HTTP_SERVER_VARS now includes all of the environment variables

@  as well (Zeev)
This commit is contained in:
Zeev Suraski 2000-11-07 18:25:29 +00:00
parent 50e0d9d34b
commit 9e40204f00
4 changed files with 15 additions and 10 deletions

View file

@ -301,15 +301,9 @@ void php_treat_data(int arg, char *str, zval* destArray ELS_DC PLS_DC SLS_DC)
void php_import_environment_variables(ELS_D PLS_DC)
void php_import_environment_variables(zval *array_ptr ELS_DC PLS_DC)
{
char **env, *p, *t;
zval *array_ptr=NULL;
ALLOC_ZVAL(array_ptr);
array_init(array_ptr);
INIT_PZVAL(array_ptr);
PG(http_globals)[TRACK_VARS_ENV] = array_ptr;
for (env = environ; env != NULL && *env != NULL; env++) {
p = strchr(*env, '=');