TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
500 B
21 lines
500 B
--TEST--
|
|
htmlentities() test 5 (mbstring / cp1252)
|
|
--SKIPIF--
|
|
<?php
|
|
echo 'skip Test output differs under AOT compilation';
|
|
?>
|
|
--INI--
|
|
output_handler=
|
|
internal_encoding=cp1252
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--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) "€¢£¤¥"
|
|
|