Skip to content

Commit

Permalink
- MFH Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
helly25 committed Mar 23, 2008
1 parent 27ca45f commit e8ef82b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Zend/tests/multibyte/multibyte_encoding_001.phpt
Original file line number Diff line number Diff line change
@@ -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===

0 comments on commit e8ef82b

Please sign in to comment.