php-src/ext/mbstring/tests/zend_multibyte-12.phpt

18 lines
408 B
Plaintext
Raw Normal View History

2008-07-24 22:21:41 +00:00
--TEST--
zend multibyte (12)
2008-07-25 10:48:20 +00:00
--SKIPIF--
2008-07-24 22:21:41 +00:00
<?php
ini_set("mbstring.script_encoding","SJIS");
if (ini_set("mbstring.script_encoding","SJIS") != "SJIS") {
2008-07-24 22:21:41 +00:00
die("skip zend-multibyte is not available");
}
2008-07-24 22:21:41 +00:00
?>
--FILE--
<?php
declare(encoding="ISO-8859-15");
echo 1;
declare(encoding="ISO-8859-1");
?>
--EXPECTF--
Fatal error: Encoding declaration pragma must be the very first statement in the script in %s on line 4