note 104741 deleted from function.getenv by thiago
| From: | thiago@php.net | Date: | Mon, 04 Jul 2011 23:58:09 +0000 |
| Subject: | note 104741 deleted from function.getenv by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-181231@lists.php.net to get a copy of this message | ||
Note Submitter: speller at yandex dot ru
----
When running PHP as FastCGI, getenv() returns different results for 'path' and
'PATH' params (under Windows at least). For example:
- The _SERVER["PATH"] variable equals "to
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Rational\common;etc",
i.e. the Apache server environment.
- The system *environment* variable PATH of the PHP process itself equals to
"E:\usr\local\fcgi-bin;E:\usr\local\common-bin;E:\usr\local\imagick" (for example, set by
mod_fcgid config).
getenv('PATH') return the first case - the server environment variable, but
getenv('path') return the secod case - the PHP environment variable (as of PHP 5.3.6).
Do not know is it a bug or is it a feature?