]> granicus.if.org Git - php/commitdiff
Added a test for zend-multibyte extension
authorMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 14 Nov 2002 22:38:43 +0000 (22:38 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 14 Nov 2002 22:38:43 +0000 (22:38 +0000)
ext/mbstring/tests/zend-multibyte.phpt [new file with mode: 0644]

diff --git a/ext/mbstring/tests/zend-multibyte.phpt b/ext/mbstring/tests/zend-multibyte.phpt
new file mode 100644 (file)
index 0000000..92e4d29
--- /dev/null
@@ -0,0 +1,22 @@
+--TEST--
+zend multibyte
+--SKIPIF--
+<?php
+ini_set("mbstring.script_encoding","SJIS");
+if (ini_set("mbstring.script_encoding","SJIS") != "SJIS") {
+       die("skip zend-multibyte is not available");
+}
+?>
+--INI--
+mbstring.script_encoding=Shift_JIS
+--FILE--
+<?php
+       function \97\\8e\\94\($\88ø\90\94)
+       {
+               echo $\88ø\90\94;
+       }
+
+       \97\\8e\\94\("\83h\83\8c\83~\83t\83@\83\");
+?>
+--EXPECT--
+\83h\83\8c\83~\83t\83@\83\