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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Apr 18 11:01:28 2024 UTC