|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-01-09 14:13 UTC] pajoye@php.net
[2007-01-09 14:20 UTC] crocodile2u at yandex dot ru
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 11:00:01 2025 UTC |
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) "(" }