|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40075 FILTER_CALLBACK generates strange results
Submitted: 2007-01-09 13:43 UTC Modified: 2007-01-09 14:20 UTC
From: crocodile2u at yandex dot ru Assigned:
Status: Closed Package: Filter related
PHP Version: 5.2.0 OS: Kubuntu linux 6.06
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
45 - 24 = ?
Subscribe to this entry?

 [2007-01-09 13:43 UTC] crocodile2u at yandex dot ru
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) {
  string(1) "s"

Actual result:
array(1) {
  string(1) "("


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-09 14:13 UTC]
Please try using this CVS snapshot:
For Windows:

 [2007-01-09 14:20 UTC] crocodile2u at yandex dot ru
Just installed the latest snapshot. Everything works like a charm. Thanks a lot.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Nov 29 19:05:53 2022 UTC