Doc #69762 [Opn->Ver]: Filter name of "FILTER_DEFAULT" is not "string".
| From: | cmb@php.net | Date: | Fri, 05 Jun 2015 19:44:53 +0000 |
| Subject: | Doc #69762 [Opn->Ver]: Filter name of "FILTER_DEFAULT" is not "string". | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12387@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69762&edit=1
ID: 69762
Updated by: cmb@php.net
Reported by: takashi dot muramatsu at gmail dot com
Summary: Filter name of "FILTER_DEFAULT" is not "string".
-Status: Open
+Status: Verified
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Confirmed: <http://3v4l.org/DB7Mh>.
Previous Comments:
------------------------------------------------------------------------
[2015-06-05 19:32:19] takashi dot muramatsu at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/filter.constants
---
Now "FILTER_DEFAULT" section is below.
> ID of default ("string") filter. This is equivalent to FILTER_UNSAFE_RAW.
This means
ID: FILTER_DEFAULT (0x0204)
Name: string
But, name of "FILTER_UNSAFE_RAW" constant is "unsafe_raw" and "string"
is name of "FILTER_SANITIZE_STRING"
on http://php.net/manual/en/filter.filters.sanitize.php
FILTER_DEFAULT is equivalent to FILTER_UNSAFE_RAW.
And are these names "unsafe_raw"? (Not"string")
Expected result:
----------------
FILTER_DEFAULT (integer)
ID of default ("unsafe_raw") filter. This is equivalent to FILTER_UNSAFE_RAW.
Actual result:
--------------
FILTER_DEFAULT (integer)
ID of default ("string") filter. This is equivalent to FILTER_UNSAFE_RAW.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69762&edit=1