note 108381 added to filter.filters.validate
| From: | robertvandell at comcast dot net | Date: | Sat, 21 Apr 2012 02:53:30 +0000 |
| Subject: | note 108381 added to filter.filters.validate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187268@lists.php.net to get a copy of this message | ||
@Tom If you read the notes correctly for the first row in the table above, you can see that the
documentation reads 'If FILTER_NULL_ON_FAILURE is set, FALSE is returned only for
"0", "false", "off", "no", and "", and NULL is
returned for all non-boolean values.'
In your example, the last piece of that sentence is relevant because you are not passing a variable
at all you are passing a value. Therefore there is no variable passed and as such the non-existent
variable is not a valid boolean value. This is the correct behavior. Variables are references to
values in memory.
----
Server IP: 64.71.164.2
Probable Submitter: 67.169.118.253
----
Manual Page -- http://www.php.net/manual/en/filter.filters.validate.php
Edit -- https://master.php.net/note/edit/108381
Del: integrated -- https://master.php.net/note/delete/108381/integrated
Del: useless -- https://master.php.net/note/delete/108381/useless
Del: bad code -- https://master.php.net/note/delete/108381/bad+code
Del: spam -- https://master.php.net/note/delete/108381/spam
Del: non-english -- https://master.php.net/note/delete/108381/non-english
Del: in docs -- https://master.php.net/note/delete/108381/in+docs
Del: other reasons-- https://master.php.net/note/delete/108381
Reject -- https://master.php.net/note/reject/108381
Search -- https://master.php.net/manage/user-notes.php