mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
9d7e03c325
As of PHP 5.4.0, `detect_unicode` is always available, so this check cannot fail.
20 lines
352 B
PHP
20 lines
352 B
PHP
--TEST--
|
|
Zend Multibyte and ShiftJIS
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded("mbstring")) {
|
|
die("skip Requires mbstring extension");
|
|
}
|
|
?>
|
|
--INI--
|
|
zend.multibyte=1
|
|
internal_encoding=SJIS
|
|
--FILE--
|
|
<?php
|
|
declare(encoding='Shift_JIS');
|
|
$s = "•\"; // 0x95+0x5c in script, not somewhere else "
|
|
printf("%x:%x\n", ord($s[0]), ord($s[1]));
|
|
?>
|
|
--EXPECT--
|
|
95:5c
|