Edit report at http://bugs.php.net/bug.php?id=52209&edit=1
ID: 52209 Updated by: [email protected] Reported by: [email protected] 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] [email protected] 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] [email protected] 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
