File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / multibyte / multibyte_encoding_006.phpt
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:34:36 2012 UTC (12 years, 1 month ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, HEAD
php 5.4.3+patches

--TEST--
Scripts with flex-incompatible encoding without suitable conversion strategy
--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 The mbstring extension cannot be present for this test");
}
?>
--INI--
zend.multibyte=1
--FILE--
ÿþ<?php
echo "hello world";

--EXPECT--

Fatal error: Could not convert the script from the detected encoding "UTF-32LE" to a compatible encoding in Unknown on line 0

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>