Bug #52209 [Com]: INPUT_ENV returns NULL for set variables (CLI)
Edit report at https://bugs.php.net/bug.php?id=52209&edit=1
ID: 52209
Comment by: sksimpson at securemissionsolutions dot com
Reported by: ch@php.net
Summary: INPUT_ENV returns NULL for set variables (CLI)
Status: Closed
Type: Bug
Package: Filter related
Operating System: Linux
PHP Version: 5.3.2
Assigned To: iliaa
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2010-12-22 17:19:21] iliaa@php.net
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.
------------------------------------------------------------------------
[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 https://bugs.php.net/bug.php?id=52209&edit=1
Thread (3 messages)