summaryrefslogtreecommitdiff
path: root/Zend/tests/multibyte/multibyte_encoding_001.phpt
blob: 3b26dcb9895abf3c755fb860631c2c983e918d72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--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