com php-src: added test for bug #68665: Zend/tests/multibyte/bug68665.phpt
| From: | Anatol Belski | Date: | Sun, 28 Dec 2014 15:29:07 +0000 |
| Subject: | com php-src: added test for bug #68665: Zend/tests/multibyte/bug68665.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-83903@lists.php.net to get a copy of this message | ||
Commit: 67c47e7861a612634bc56525163b6c781aada8db
Author: Anatol Belski <ab@php.net> Sun, 28 Dec 2014 16:27:08 +0100
Parents: ef89ab2f99fbd9b7b714556d4f1f50644eb54191
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=67c47e7861a612634bc56525163b6c781aada8db
Log:
added test for bug #68665
Bugs:
https://bugs.php.net/68665
Changed paths:
A Zend/tests/multibyte/bug68665.phpt
Diff:
diff --git a/Zend/tests/multibyte/bug68665.phpt b/Zend/tests/multibyte/bug68665.phpt
new file mode 100644
index 0000000..74ff01d
--- /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===