Bug #52209 [Opn->Csd]: INPUT_ENV returns NULL for set variables (CLI)
| From: | iliaa@php.net | Date: | Wed, 22 Dec 2010 16:19:23 +0000 |
| Subject: | Bug #52209 [Opn->Csd]: INPUT_ENV returns NULL for set variables (CLI) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157270@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52209&edit=1
ID: 52209
Updated by: iliaa@php.net
Reported by: ch@php.net
Summary: INPUT_ENV returns NULL for set variables (CLI)
-Status: Open
+Status: Closed
Type: Bug
Package: Filter related
Operating System: Linux
PHP Version: 5.3.2
-Assigned To:
+Assigned To: iliaa
Block user comment: N
Private report: N
New Comment:
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
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2010-12-22 17:19:00] iliaa@php.net
Automatic comment from SVN on behalf of iliaa
Revision: http://svn.php.net/viewvc/?view=revision&revision=306575
Log: Fixed bug #52209 (INPUT_ENV returns NULL for set variables (CLI)).
------------------------------------------------------------------------
[2010-06-30 13:05:43] 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"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52209&edit=1