ID: 39917 User updated by: vojtech at x dot cz Reported By: vojtech at x dot cz -Status: Feedback +Status: Open Bug Type: Filter related Operating System: Linux PHP Version: 5.2.0 New Comment:
>From phpinfo: Apache/2.2.3 (Debian) PHP/5.2.0-7, Server API Apache 2.0 Handler I've just found at http://devzone.zend.com/node/view/id/1113: server and env support may not work in all sapi, for filter 0.11.0 or php 5.2.0 It seems it isn't bug but I think it should be mentioned in PHP documentation at least. Previous Comments: ------------------------------------------------------------------------ [2006-12-21 01:19:37] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip It was not supported with all SAPI in 5.2.0. Please try with a snapshot and tell us which SAPI/server you use) ------------------------------------------------------------------------ [2006-12-21 01:09:12] vojtech at x dot cz Description: ------------ Filter related functions don't detect any variables when I use INPUT_SERVER input type although they are set in $_SERVER array. Reproduce code: --------------- <?php $var = 'SERVER_NAME'; var_dump(filter_input(INPUT_SERVER, $var)); var_dump($_SERVER[$var]); var_dump(array_key_exists($var, $_SERVER) == filter_has_var(INPUT_SERVER, $var)); Expected result: ---------------- string(9) "localhost" string(9) "localhost" bool(true) Actual result: -------------- NULL string(9) "localhost" bool(false) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39917&edit=1