Doc #69762 [Csd]: Filter name of "FILTER_DEFAULT" is not "string".

From: Date: Sat, 06 Jun 2015 04:39:26 +0000
Subject: Doc #69762 [Csd]: Filter name of "FILTER_DEFAULT" is not "string".
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12389@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 User updated by: takashi dot muramatsu at gmail dot com Reported by: takashi dot muramatsu at gmail dot com Summary: Filter name of "FILTER_DEFAULT" is not "string". Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Assigned To: salathe Block user comment: N Private report: N New Comment: Thanks Peter! Previous Comments: ------------------------------------------------------------------------ [2015-06-05 21:04:22] salathe@php.net This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. ------------------------------------------------------------------------ [2015-06-05 21:04:05] salathe@php.net Automatic comment from SVN on behalf of salathe Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=336878 Log: default filter is unsafe_raw (doc bug #69762) ------------------------------------------------------------------------ [2015-06-05 19:44:53] cmb@php.net Confirmed: <http://3v4l.org/DB7Mh>. ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#12389) next »