summaryrefslogtreecommitdiff
path: root/main/php_variables.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-11-07 18:25:29 +0000
committerZeev Suraski <zeev@php.net>2000-11-07 18:25:29 +0000
commit9e40204f0004a84f45621f1790c29dc52f2784d2 (patch)
tree50a7f719f7a9ae9300cebba6d7cb71f9ac5431c8 /main/php_variables.c
parent50e0d9d34b9b9669d0fa2682d060ff60ffc7a9e6 (diff)
downloadphp-git-9e40204f0004a84f45621f1790c29dc52f2784d2.tar.gz
@- In CGI mode, $HTTP_SERVER_VARS now includes all of the environment variables
@ as well (Zeev)
Diffstat (limited to 'main/php_variables.c')
-rw-r--r--main/php_variables.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/main/php_variables.c b/main/php_variables.c
index bff78e4a79..08a201e874 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -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, '=');