|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
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: Assigned: iliaa (profile)
Status: Closed Package: Filter related
PHP Version: 5.3.2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2010-06-30 13:05 UTC]
This is almost the same as #49184 just that I tried INPUT_ENV instead of INPUT_SERVER.

Test script:
$ cat foo.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:
  string(15) "/srv/home/james"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-22 17:19 UTC]
Automatic comment from SVN on behalf of iliaa
Log: Fixed bug #52209 (INPUT_ENV returns NULL for set variables (CLI)).
 [2010-12-22 17:19 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: iliaa
 [2010-12-22 17:19 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

 [2011-07-19 11:42 UTC] sksimpson at securemissionsolutions dot com
This issue is still open. I built 5.3.6 on RHEL 6. The code change was applied but my test result is still NULL.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Sep 22 15:01:24 2023 UTC