mirror of
https://github.com/php/php-src.git
synced 2025-01-08 20:17:28 +08:00
4a946a91e5
- Fixed usage of zend_multibyte_get_internal_encoding (its return cannot be cast to char*). - Change tests to reflect that charset detection now relies on internal_encoding, not on current_internal_encoding. NOTE: This fixes the changes in rev 306077, but it remains that that change introduced a BC break. I assumed it was intentional
19 lines
489 B
PHP
19 lines
489 B
PHP
--TEST--
|
|
htmlentities() test 5 (mbstring / cp1252)
|
|
--INI--
|
|
output_handler=
|
|
mbstring.internal_encoding=cp1252
|
|
--SKIPIF--
|
|
<?php
|
|
extension_loaded("mbstring") or die("skip mbstring not available\n");
|
|
--FILE--
|
|
<?php
|
|
print mb_internal_encoding()."\n";
|
|
var_dump(htmlentities("\x82\x86\x99\x9f", ENT_QUOTES, ''));
|
|
var_dump(htmlentities("\x80\xa2\xa3\xa4\xa5", ENT_QUOTES, ''));
|
|
?>
|
|
--EXPECT--
|
|
Windows-1252
|
|
string(28) "‚†™Ÿ"
|
|
string(32) "€¢£¤¥"
|