added test for bug #68665

This commit is contained in:
Anatol Belski 2014-12-28 16:27:08 +01:00
parent ef89ab2f99
commit 67c47e7861

View File

@ -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===