summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2008-04-06 17:53:31 +0000
committerMarcus Boerger <helly@php.net>2008-04-06 17:53:31 +0000
commit8f670912a3100b376c545924bc4e18f01a2755dd (patch)
tree059253415d9d20631b2711337accbab5fa9d1eb8
parent8d8e9d273b40eeb48fbbc62bc974834c2c070b4d (diff)
downloadphp-git-8f670912a3100b376c545924bc4e18f01a2755dd.tar.gz
- MFH add new tests
-rwxr-xr-xZend/tests/multibyte/multibyte_encoding_002.phpt21
-rwxr-xr-xZend/tests/multibyte/multibyte_encoding_003.phptbin0 -> 469 bytes
2 files changed, 21 insertions, 0 deletions
diff --git a/Zend/tests/multibyte/multibyte_encoding_002.phpt b/Zend/tests/multibyte/multibyte_encoding_002.phpt
new file mode 100755
index 0000000000..813222d82d
--- /dev/null
+++ b/Zend/tests/multibyte/multibyte_encoding_002.phpt
@@ -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
index 0000000000..19b29f209b
--- /dev/null
+++ b/Zend/tests/multibyte/multibyte_encoding_003.phpt
Binary files differ