INPUT_ENV returns NULL for set variables (CLI)
| Bug #52209 | INPUT_ENV returns NULL for set variables (CLI) | ||||
|---|---|---|---|---|---|
| Submitted: | 2010-06-30 13:05 UTC | Modified: | 2010-12-22 17:19 UTC | ||
| From: | ch@php.net | Assigned: | iliaa (profile) | ||
| Status: | Closed | Package: | Filter related | ||
| PHP Version: | 5.3.2 | OS: | Linux | ||
| Private report: | No | CVE-ID: | None | ||
[2010-06-30 13:05 UTC] ch@php.net
Description: ------------ This is almost the same as #49184 just that I tried INPUT_ENV instead of INPUT_SERVER. Test script: --------------- $ cat foo.php <?php var_dump( filter_input(INPUT_SERVER, 'PWD') ); var_dump( $_ENV['PWD'] ); Expected result: ---------------- string(15) "/srv/home/james" string(15) "/srv/home/james" Actual result: -------------- NULL string(15) "/srv/home/james"
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2010-12-22 17:19 UTC] iliaa@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: iliaa
[2010-12-22 17:19 UTC] iliaa@php.net
[2011-07-19 11:42 UTC] sksimpson at securemissionsolutions dot com