Bug #52983 [Opn->Wfx]: htmlspecialchars returns empty string
| From: | cataphract@php.net | Date: | Mon, 04 Oct 2010 11:47:31 +0000 |
| Subject: | Bug #52983 [Opn->Wfx]: htmlspecialchars returns empty string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-154893@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52983&edit=1
ID: 52983
Updated by: cataphract@php.net
Reported by: max at bitrix dot ru
Summary: htmlspecialchars returns empty string
-Status: Open
+Status: Wont fix
Type: Bug
Package: Unknown/Other Function
Operating System: Linux slamp 2.6.32-24-generic-pa
PHP Version: trunk-SVN-2010-10-04 (SVN)
Block user comment: N
New Comment:
The change was intentional and, precisely because of its breaking
nature, it was made only in trunk.
Previous Comments:
------------------------------------------------------------------------
[2010-10-04 12:13:14] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52983&edit=1