Edit report at http://bugs.php.net/bug.php?id=52983&edit=1
ID: 52983 Updated by: [email protected] 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
