mirror of
https://github.com/php/php-src.git
synced 2025-01-23 20:23:31 +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
21 lines
461 B
PHP
21 lines
461 B
PHP
--TEST--
|
|
htmlentities() test 9 (mbstring / Shift_JIS)
|
|
--INI--
|
|
output_handler=
|
|
error_reporting=~E_STRICT
|
|
mbstring.internal_encoding=Shift_JIS
|
|
--SKIPIF--
|
|
<?php
|
|
extension_loaded("mbstring") or die("skip mbstring not available\n");
|
|
--FILE--
|
|
<?php
|
|
mb_internal_encoding('Shift_JIS');
|
|
print mb_internal_encoding()."\n";
|
|
var_dump(bin2hex(htmlentities("\x81\x41\x81\x42\x81\x43", ENT_QUOTES, '')));
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
SJIS
|
|
string(12) "814181428143"
|
|
===DONE===
|