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
Hi Mats,
The filter_input function has an errornous check for the
FILTER_NULL_ON_FAILURE
flag, where it returnsNULL
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.
Sorry about that: I do remember seeing the patch last weekend and
completely forgot about it by the time I was in front of a development
box. I'll have a look at it today.
Thanks for the heads up!
Adam