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
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: 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

Pull Requests

Pull requests:

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 23:01:28 2024 UTC