|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57005 Filter type not reset when walking input_get_args() array
Submitted: 2006-05-08 21:40 UTC Modified: 2006-05-09 07:15 UTC
From: Assigned: pajoye (profile)
Status: Closed Package: filter (PECL)
PHP Version: HEAD CVS-2006-05-08 OS:
Private report: No CVE-ID: None
 [2006-05-08 21:40 UTC]
The filter variable is not reset properly (filter_flags is, however). This results in the possibility of a variable using the filter type of the previous variable.

Reproduce code:
Using, and removing 'component's filter type:

$args = array(
    'product_id'    => FILTER_SANITIZE_ENCODED,
    'component'     => array('flags'    => FILTER_FLAG_ARRAY, 
                             'options'    => array("min_range"=>1, "max_range"=>10)

Will result in the FILTER_SANITIZE_ENCODED filter being applied to 'component' instead of FILTER_DEFAULT.


Add filter = FILTER_DEFAULT; above filter_flags = 0;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-09 02:06 UTC]
One for you Pierre (you broke it, you fix it ;-) )
 [2006-05-09 07:15 UTC] pierre dot php at gmail dot com
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 23:01:31 2024 UTC