mirror of
https://github.com/php/php-src.git
synced 2025-01-09 04:24:06 +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
416 B
PHP
19 lines
416 B
PHP
--TEST--
|
|
htmlentities() test 8 (mbstring / EUC-JP)
|
|
--INI--
|
|
output_handler=
|
|
error_reporting=~E_STRICT
|
|
mbstring.internal_encoding=EUC-JP
|
|
--SKIPIF--
|
|
<?php
|
|
extension_loaded("mbstring") or die("skip mbstring not available\n");
|
|
--FILE--
|
|
<?php
|
|
mb_internal_encoding('EUC-JP');
|
|
print mb_internal_encoding()."\n";
|
|
var_dump(htmlentities("\xa1\xa2\xa1\xa3\xa1\xa4", ENT_QUOTES, ''));
|
|
?>
|
|
--EXPECT--
|
|
EUC-JP
|
|
string(6) "¡¢¡£¡¤"
|