ID: 40075 Updated by: [EMAIL PROTECTED] Reported By: crocodile2u at yandex dot ru -Status: Open +Status: Feedback Bug Type: Filter related Operating System: Kubuntu linux 6.06 PHP Version: 5.2.0 New Comment:
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 Previous Comments: ------------------------------------------------------------------------ [2007-01-09 13:43:39] crocodile2u at yandex dot ru Description: ------------ Specifying a simple callback for the filter_var_array function leads to invalid results. Reproduce code: --------------- function t($v){return $v;} var_dump(filter_var_array(array("x"=>"s"), array("x"=>array("filter"=>FILTER_CALLBACK, "options"=>"t")))); Expected result: ---------------- array(1) { ["x"]=> string(1) "s" } Actual result: -------------- array(1) { ["x"]=> string(1) "(" } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40075&edit=1