Edit report at https://bugs.php.net/bug.php?id=61713&edit=1

 ID:                 61713
 Comment by:         a...@php.net
 Reported by:        a...@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] a...@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] a...@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

Reply via email to