summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-12-28 16:27:08 +0100
committerAnatol Belski <ab@php.net>2014-12-28 16:29:07 +0100
commit67c47e7861a612634bc56525163b6c781aada8db (patch)
treea34144529adc011cba3345091132bfe1f0a21c54
parentef89ab2f99fbd9b7b714556d4f1f50644eb54191 (diff)
downloadphp-git-67c47e7861a612634bc56525163b6c781aada8db.tar.gz
added test for bug #68665
-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===