diff options
author | Marcus Boerger <helly@php.net> | 2008-03-23 13:38:41 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2008-03-23 13:38:41 +0000 |
commit | 3a74a6bec443da4b062a58ebaf836be877aa4ed4 (patch) | |
tree | 1cb10e4d4edc7b1054cec2538da51313f6e80e98 /Zend/tests/multibyte | |
parent | ab8ddf1b788451d7dd1277a925cce0ee5005a8fe (diff) | |
download | php-git-3a74a6bec443da4b062a58ebaf836be877aa4ed4.tar.gz |
- MFH Add tests
Diffstat (limited to 'Zend/tests/multibyte')
-rwxr-xr-x | Zend/tests/multibyte/multibyte_encoding_001.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/tests/multibyte/multibyte_encoding_001.phpt b/Zend/tests/multibyte/multibyte_encoding_001.phpt new file mode 100755 index 0000000000..19b6064cfa --- /dev/null +++ b/Zend/tests/multibyte/multibyte_encoding_001.phpt @@ -0,0 +1,23 @@ +--TEST-- +Zend Multibyte and ShiftJIS +--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.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])); +?> +===DONE=== +--EXPECT-- +95:5c +===DONE=== |