php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #69762 Filter name of "FILTER_DEFAULT" is not "string".
Submitted: 2015-06-05 19:32 UTC Modified: 2015-06-06 04:39 UTC
From: takashi dot muramatsu at gmail dot com Assigned: salathe (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: takashi dot muramatsu at gmail dot com
New email:
PHP Version: OS:

 

 [2015-06-05 19:32 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-06-05 19:44 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2015-06-05 19:44 UTC] cmb@php.net
Confirmed: <http://3v4l.org/DB7Mh>.
 [2015-06-05 21:04 UTC] 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 21:04 UTC] salathe@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: salathe
 [2015-06-05 21:04 UTC] 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-06 04:39 UTC] takashi dot muramatsu at gmail dot com
Thanks Peter!
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 21:00:02 2026 UTC