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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-04 13:47 UTC]
-Status: Open +Status: Wont fix
 [2010-10-04 13:47 UTC]
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 Jul 25 16:01:28 2024 UTC