ID:               44779
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Filter related
 Operating System: Mac
 PHP Version:      5.3CVS-2008-04-18 (snap)
 New Comment:

This bug has been fixed in CVS.

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:
------------------------------------------------------------------------

[2008-04-18 17:45:29] [EMAIL PROTECTED]

Description:
------------
The filter extension appears to have issues with CLI. I have not fully
tested it but will provide examples below to demonstrate the problem.

These tests use INPUT_SERVER, but others may be affected. Note: The
same code is working correctly for me in mod_php.

Reproduce code:
---------------
philip$ cat > foo.php
<?php
var_dump( filter_input(INPUT_SERVER, 'PHP_SELF') );
var_dump( $_SERVER['PHP_SELF'] );
^C
philip$ php foo.php 
NULL
string(7) "foo.php"

philip$ php -r 'var_dump($_SERVER["PHP_SELF"]);'
string(1) "-"
philip$ php -r 'var_dump( filter_input(INPUT_SERVER, "PHP_SELF"));'
NULL




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=44779&edit=1

Reply via email to