php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #57104 make input_get support FILTER_FLAG_ARRAY
Submitted: 2006-06-22 07:14 UTC Modified: 2006-08-31 20:24 UTC
From: pecl at benjamin dot schulz dot name Assigned: pajoye (profile)
Status: Closed Package: filter (PECL)
PHP Version: Irrelevant OS:
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:
MUST BE VALID
Solve the problem:
36 - 30 = ?
Subscribe to this entry?

 
 [2006-06-22 07:14 UTC] pecl at benjamin dot schulz dot name
Description:
------------
i need to access variables from array somehow, a possible (and hopefully self-explaining) solution would be:
input_get(INPUT_GET, 'foo[bar]', FILTER_SANITIZE_STRING, FILTER_FLAG_ARRAY)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-22 07:18 UTC] pierre dot php at gmail dot com
Related to the allow_array option, patch already done.
 [2006-08-31 20:24 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 pecl.php.net.

In case this was a pecl.php.net 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.

Fixed in cvs. But it does not support this exact syntax. You can choose whether or not you accept array. Use array_key_exists or isset to check a specific key.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 10:01:29 2024 UTC