]> granicus.if.org Git - php/commitdiff
added test for bug #68665
authorAnatol Belski <ab@php.net>
Sun, 28 Dec 2014 15:27:08 +0000 (16:27 +0100)
committerAnatol Belski <ab@php.net>
Sun, 28 Dec 2014 15:29:07 +0000 (16:29 +0100)
Zend/tests/multibyte/bug68665.phpt [new file with mode: 0644]

diff --git a/Zend/tests/multibyte/bug68665.phpt b/Zend/tests/multibyte/bug68665.phpt
new file mode 100644 (file)
index 0000000..74ff01d
--- /dev/null
@@ -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===