mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
@- In CGI mode, $HTTP_SERVER_VARS now includes all of the environment variables
@ as well (Zeev)
This commit is contained in:
parent
50e0d9d34b
commit
9e40204f00
4 changed files with 15 additions and 10 deletions
|
@ -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, '=');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue