php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65282 Wrong value for FILTER_SANITIZE_FULL_SPECIAL_CHARS
Submitted: 2013-07-17 22:15 UTC Modified: 2013-07-23 09:05 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: avp200681 at gmail dot com Assigned: arpad (profile)
Status: Closed Package: Filter related
PHP Version: 5.5.0 OS: Windows/Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: avp200681 at gmail dot com
New email:
PHP Version: OS:

 

 [2013-07-17 22:15 UTC] avp200681 at gmail dot com
Description:
------------
Reproduced also in 5.4.17 and 5.3.27

Test script:
---------------
var_dump(FILTER_SANITIZE_SPECIAL_CHARS == FILTER_SANITIZE_FULL_SPECIAL_CHARS); 
echo filter_var('&', FILTER_SANITIZE_SPECIAL_CHARS), "\n";
echo filter_var('&', FILTER_SANITIZE_FULL_SPECIAL_CHARS), "\n";
echo filter_var('&', filter_id('full_special_chars'));

Expected result:
----------------
bool(false)
&
&
&

Actual result:
--------------
bool(true)
&
&
&

Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-23 09:05 UTC] arpad@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: arpad
 [2013-07-23 09:05 UTC] arpad@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Jan 27 18:03:33 2022 UTC