diff options
author | Rui Hirokawa <hirokawa@php.net> | 2008-07-06 02:01:39 +0000 |
---|---|---|
committer | Rui Hirokawa <hirokawa@php.net> | 2008-07-06 02:01:39 +0000 |
commit | 07ce850026a27a3ed5af83af1c5d3df98ae7135b (patch) | |
tree | 266e84279b28a554297f50bab7d4e4b98b3676d9 /Zend/tests | |
parent | 73d93df417967d8b939558e7828ec1648d97c5f9 (diff) | |
download | php-git-07ce850026a27a3ed5af83af1c5d3df98ae7135b.tar.gz |
added test script for zend-multibyte
(moved/modified from ext/mbstring/tests/)
Diffstat (limited to 'Zend/tests')
-rw-r--r-- | Zend/tests/multibyte/multibyte_encoding_004.phpt | 23 | ||||
-rw-r--r-- | Zend/tests/multibyte/multibyte_encoding_005.phpt | 24 |
2 files changed, 47 insertions, 0 deletions
diff --git a/Zend/tests/multibyte/multibyte_encoding_004.phpt b/Zend/tests/multibyte/multibyte_encoding_004.phpt new file mode 100644 index 0000000000..31d9309bd5 --- /dev/null +++ b/Zend/tests/multibyte/multibyte_encoding_004.phpt @@ -0,0 +1,23 @@ +--TEST-- +test for mbstring script_encoding for flex unsafe encoding (Shift_JIS) +--SKIPIF-- +<?php +ini_set("mbstring.script_encoding","SJIS"); +if (ini_set("mbstring.script_encoding","SJIS") != "SJIS") { + die("skip zend-multibyte is not available"); +} +?> +--INI-- +mbstring.script_encoding=Shift_JIS +mbstring.internal_encoding=Shift_JIS +--FILE-- +<?php + function \\\($๘) + { + echo $๘; + } + + \\\("h~t@\"); +?> +--EXPECT-- +h~t@\ diff --git a/Zend/tests/multibyte/multibyte_encoding_005.phpt b/Zend/tests/multibyte/multibyte_encoding_005.phpt new file mode 100644 index 0000000000..e75b58e0ac --- /dev/null +++ b/Zend/tests/multibyte/multibyte_encoding_005.phpt @@ -0,0 +1,24 @@ +--TEST-- +encoding conversion from script encoding into internal encoding +--SKIPIF-- +<?php +ini_set("mbstring.script_encoding","SJIS"); +if (ini_set("mbstring.script_encoding","SJIS") != "SJIS") { + die("skip zend-multibyte is not available"); +} +?> +--INI-- +mbstring.encoding_translation = On +mbstring.script_encoding=Shift_JIS +mbstring.internal_encoding=UTF-8 +--FILE-- +<?php + function \\\($๘) + { + echo $๘; + } + + \\\("h~t@\"); +?> +--EXPECT-- +ใใฌใใใกใฝ |