Bug #61713 [Com]: ext\standard\tests\strings\htmlentities10.phpt fails

From: Date: Fri, 13 Apr 2012 17:25:06 +0000
Subject: Bug #61713 [Com]: ext\standard\tests\strings\htmlentities10.phpt fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-169547@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61713&edit=1 ID: 61713 Comment by: ab@php.net Reported by: ab@php.net Summary: ext\standard\tests\strings\htmlentities10.phpt fails Status: Open Type: Bug Package: *General Issues Operating System: windows PHP Version: 5.3.10 Block user comment: N Private report: N New Comment: no, the previous was wrong ... default_charset gets read ... hm, looking next ) Previous Comments: ------------------------------------------------------------------------ [2012-04-13 16:29:16] ab@php.net Currently the php manual says some wrong things in http://de2.php.net/htmlentities about charset: An empty string activates detection from script encoding (Zend multibyte), default_charset and current locale (see nl_langinfo() and setlocale()), in this order. I can see only the following in the code of htmlentities: * detection of the passed charset * detection of the mbstring.internal_encoding * detection of the current locales The test relies on the default_charset value, which never affects htmlentities. This is the reason for bug 61714 and bug 61715 as well. ------------------------------------------------------------------------ [2012-04-13 09:01:16] ab@php.net Description: ------------ Test diff: 002+ string(4) ",+TY" 003+ string(27) "?¢£¤¥" 002- string(28) "‚†™Ÿ" 003- string(32) "€¢£¤¥" Expected result: ---------------- test pass Actual result: -------------- test fail ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61713&edit=1

« previous php.bugs (#169547) next »