]> granicus.if.org Git - php/commitdiff
- MFH add new tests
authorMarcus Boerger <helly@php.net>
Sun, 6 Apr 2008 17:53:31 +0000 (17:53 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 6 Apr 2008 17:53:31 +0000 (17:53 +0000)
Zend/tests/multibyte/multibyte_encoding_002.phpt [new file with mode: 0755]
Zend/tests/multibyte/multibyte_encoding_003.phpt [new file with mode: 0755]

diff --git a/Zend/tests/multibyte/multibyte_encoding_002.phpt b/Zend/tests/multibyte/multibyte_encoding_002.phpt
new file mode 100755 (executable)
index 0000000..813222d
--- /dev/null
@@ -0,0 +1,21 @@
+--TEST--
+Zend Multibyte and UTF-8 BOM
+--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=iso-8859-1
+--FILE--
+<?php
+print "Hello World\n";
+?>
+===DONE===
+--EXPECT--
+Hello World
+===DONE===
diff --git a/Zend/tests/multibyte/multibyte_encoding_003.phpt b/Zend/tests/multibyte/multibyte_encoding_003.phpt
new file mode 100755 (executable)
index 0000000..19b29f2
Binary files /dev/null and b/Zend/tests/multibyte/multibyte_encoding_003.phpt differ