php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52983 htmlspecialchars returns empty string
Submitted: 2010-10-04 12:13 UTC Modified: 2010-10-04 13:47 UTC
From: max at bitrix dot ru Assigned:
Status: Wont fix Package: Unknown/Other Function
PHP Version: trunk-SVN-2010-10-04 (SVN) OS: Linux slamp 2.6.32-24-generic-pa
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: max at bitrix dot ru
New email:
PHP Version: OS:

 

 [2010-10-04 12:13 UTC] max at bitrix dot ru
Description:
------------
ext/standard/html.c has svn commit with revision #296685.
This changed default character set.
So now htmlspecialchars returns an empty result with any (non utf) cyrillic input.


Test script:
---------------
echo htmlspecialchars("папа");

Expected result:
----------------
папа

Actual result:
--------------
an empty string

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-04 13:47 UTC] cataphract@php.net
-Status: Open +Status: Wont fix
 [2010-10-04 13:47 UTC] cataphract@php.net
The change was intentional and, precisely because of its breaking nature, it was made only in trunk.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 17:01:29 2024 UTC