summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/tests/multibyte/bug68665.phpt23
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/tests/multibyte/bug68665.phpt b/Zend/tests/multibyte/bug68665.phpt
new file mode 100644
index 0000000000..74ff01da33
--- /dev/null
+++ b/Zend/tests/multibyte/bug68665.phpt
@@ -0,0 +1,23 @@
+--TEST--
+Crash with Big5
+--SKIPIF--
+<?php
+if (!in_array("zend.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--
+zend.multibyte=1
+mbstring.internal_encoding=big5
+--FILE--
+<?php
+echo '\'hello';
+?>
+
+===DONE===
+--EXPECT--
+'hello
+===DONE===