diff options
Diffstat (limited to 'ext/mbstring/tests/zend_multibyte-12.phpt')
-rw-r--r-- | ext/mbstring/tests/zend_multibyte-12.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/mbstring/tests/zend_multibyte-12.phpt b/ext/mbstring/tests/zend_multibyte-12.phpt new file mode 100644 index 0000000..e1c8ce5 --- /dev/null +++ b/ext/mbstring/tests/zend_multibyte-12.phpt @@ -0,0 +1,17 @@ +--TEST-- +zend multibyte (12) +--SKIPIF-- +<?php +ini_set("mbstring.script_encoding","SJIS"); +if (ini_set("mbstring.script_encoding","SJIS") != "SJIS") { + die("skip zend-multibyte is not available"); +} +?> +--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 |