mirror of
https://github.com/php/php-src.git
synced 2024-10-18 15:02:38 +00:00
26 lines
503 B
PHP
26 lines
503 B
PHP
--TEST--
|
||
test for mbstring script_encoding for flex unsafe encoding (Shift_JIS)
|
||
--SKIPIF--
|
||
<?php
|
||
if (!in_array("detect_unicode", array_keys(ini_get_all()))) {
|
||
die("skip Requires configure --enable-zend-multibyte option");
|
||
}
|
||
if (!extension_loaded("mbstring")) {
|
||
die("skip Requires mbstring extension");
|
||
}
|
||
?>
|
||
--INI--
|
||
mbstring.script_encoding=Shift_JIS
|
||
mbstring.internal_encoding=Shift_JIS
|
||
--FILE--
|
||
<?php
|
||
function —\Ž\”\($ˆø<CB86>”)
|
||
{
|
||
echo $ˆø<CB86>”;
|
||
}
|
||
|
||
—\Ž\”\("ƒhƒŒƒ~ƒtƒ@ƒ\");
|
||
?>
|
||
--EXPECT--
|
||
ƒhƒŒƒ~ƒtƒ@ƒ\
|