Patch for Bug #51344: FILTER_NULL_ON_FAILURE flag automatically set in filter_input() functions.
| From: | Mats Lindh | Date: | Mon, 19 Apr 2010 16:18:03 +0000 |
| Subject: | Patch for Bug #51344: FILTER_NULL_ON_FAILURE flag automatically set in filter_input() functions. | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-48010@lists.php.net to get a copy of this message | ||
Hi,
The filter_input function has an errornous check for the
FILTER_NULL_ON_FAILURE flag, where it returns NULL if it is NOT set,
and not if it is set.
I added the patch to the bug tracker over a week ago, but it seems
like it has gone unnoticed:
http://bugs.php.net/bug.php?id=51344
Would be great if someone could take a quick look and apply the patch
if it looks good. Test is also included in the patch.
--mats