diff options
Diffstat (limited to 'ext/mbstring/tests/zend_multibyte-11.phpt')
| -rw-r--r-- | ext/mbstring/tests/zend_multibyte-11.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/mbstring/tests/zend_multibyte-11.phpt b/ext/mbstring/tests/zend_multibyte-11.phpt new file mode 100644 index 000000000..d525c01e2 --- /dev/null +++ b/ext/mbstring/tests/zend_multibyte-11.phpt @@ -0,0 +1,16 @@ +--TEST-- +zend multibyte (11) +--SKIPIF-- +<?php +ini_set("mbstring.script_encoding", "SJIS"); +ini_set("mbstring.script_encoding", "***") != "SJIS" and + die("skip zend-multibyte is not available"); +?> +--FILE-- +<?php +declare(encoding="ISO-8859-15") { + declare(encoding="ISO-8859-1"); +} +?> +--EXPECTF-- +Fatal error: Encoding declaration pragma must be the very first statement in the script in %s on line 3 |
