Bug #18037: SetEnv directive gets reported in _SERVER superglobals, not _ENV or environment

From: Date: Fri, 28 Jun 2002 06:02:29 +0000
Subject: Bug #18037: SetEnv directive gets reported in _SERVER superglobals, not _ENV or environment
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12313@lists.php.net to get a copy of this message
From: robert@ud.com Operating system: Linux RH 7.2 PHP version: 4.2.1 PHP Bug Type: Apache2 related Bug description: SetEnv directive gets reported in _SERVER superglobals, not _ENV or environment When using the SetEnv directive in the Apache2 httpd.conf file to set (and pass) an environment variable to PHP, the variable name/value pair is showing up in the _SERVER superglobals array, not the _ENV array or even the Environment list on a phpinfo() output page. This is Apache 2.0.36 and PHP 4.2.1 The only way I can get real environment variables into PHP is set/export them in my shell prior to running the Apache2 binary. Doing it from the Apache2 httpd.conf file via the SetEnv is not working. -- Edit bug report at http://bugs.php.net/?id=18037&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18037&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18037&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18037&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18037&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18037&r=support Expected behavior: http://bugs.php.net/fix.php?id=18037&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18037&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18037&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18037&r=globals

« previous php.bugs (#12313) next »