summaryrefslogtreecommitdiff
path: root/ext/mbstring/tests/zend_multibyte-12.phpt
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2008-07-24 22:21:41 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2008-07-24 22:21:41 +0000
commit4f42ed39c0c955b724051c2b27d69cd8c3ceacdd (patch)
tree7e654c45e5c7e39a24983f81954d8ef6b67a50e6 /ext/mbstring/tests/zend_multibyte-12.phpt
parent1f845199f79d4fd87074e1dfd4e236207e1bc1c2 (diff)
downloadphp-git-4f42ed39c0c955b724051c2b27d69cd8c3ceacdd.tar.gz
- Revived zend multibyte
Diffstat (limited to 'ext/mbstring/tests/zend_multibyte-12.phpt')
-rw-r--r--ext/mbstring/tests/zend_multibyte-12.phpt16
1 files changed, 16 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 0000000000..4af5284003
--- /dev/null
+++ b/ext/mbstring/tests/zend_multibyte-12.phpt
@@ -0,0 +1,16 @@
+--TEST--
+zend multibyte (12)
+--SKIP--
+<?php
+ini_set("mbstring.script_encoding", "SJIS");
+ini_set("mbstring.script_encoding", "***") != "SJIS" or
+ 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