Bug #18037 Updated: SetEnv directive gets reported in _SERVER superglobals, not _ENV or environment
| From: | sniper@php.net | Date: | Fri, 28 Jun 2002 06:15:35 +0000 |
| Subject: | Bug #18037 Updated: SetEnv directive gets reported in _SERVER superglobals, not _ENV or environment | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12319@lists.php.net to get a copy of this message | ||
ID: 18037
Updated by: sniper@php.net
Reported By: robert@ud.com
-Status: Open
+Status: Bogus
Bug Type: Apache2 related
Operating System: Linux RH 7.2
PHP Version: 4.2.1
New Comment:
It goes into the Apache environment which is found via $_SERVER. Not
bug.
Previous Comments:
------------------------------------------------------------------------
[2002-06-28 02:07:22] robert@ud.com
For example:
In my httpd.conf:
SetEnv TESTPATH /usr/local
...gets reported in phpinfo() as:
_SERVER["TESTPATH"] = /usr/local
It does not show up in the _ENV array, and definitely not in the
Environment list.
------------------------------------------------------------------------
[2002-06-28 02:02:29] robert@ud.com
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 this bug report at http://bugs.php.net/?id=18037&edit=1