diff options
author | Rui Hirokawa <hirokawa@php.net> | 2012-01-14 09:07:10 +0000 |
---|---|---|
committer | Rui Hirokawa <hirokawa@php.net> | 2012-01-14 09:07:10 +0000 |
commit | 7ba37f79211552a9db2ed4ee3f9cd24587432e42 (patch) | |
tree | fe68d4ceb83fe71af116c37d0299f5d12486116d | |
parent | 61088ce7296f2a3b4b53e60bdf413455b870664d (diff) | |
download | php-git-7ba37f79211552a9db2ed4ee3f9cd24587432e42.tar.gz |
fixed failed tests (backport from PHP_5_4/trunk).
-rwxr-xr-x | Zend/tests/multibyte/multibyte_encoding_003.phpt | bin | 469 -> 449 bytes | |||
-rw-r--r-- | ext/mbstring/tests/mb_ereg_search_pos.phpt | 2 | ||||
-rw-r--r-- | ext/mbstring/tests/zend_multibyte-10.phpt | 4 | ||||
-rw-r--r-- | ext/mbstring/tests/zend_multibyte-11.phpt | 3 |
4 files changed, 6 insertions, 3 deletions
diff --git a/Zend/tests/multibyte/multibyte_encoding_003.phpt b/Zend/tests/multibyte/multibyte_encoding_003.phpt Binary files differindex 19b29f209b..badfcc5a63 100755 --- a/Zend/tests/multibyte/multibyte_encoding_003.phpt +++ b/Zend/tests/multibyte/multibyte_encoding_003.phpt diff --git a/ext/mbstring/tests/mb_ereg_search_pos.phpt b/ext/mbstring/tests/mb_ereg_search_pos.phpt index fcd98e16c6..08fcd7f87b 100644 --- a/ext/mbstring/tests/mb_ereg_search_pos.phpt +++ b/ext/mbstring/tests/mb_ereg_search_pos.phpt @@ -6,7 +6,7 @@ if (!extension_loaded('mbstring')) die('skip mbstring not enabled'); ?> --FILE-- <?php - +mb_regex_encoding('iso-8859-1'); $test_str = 'Iñtërnâtiônàlizætiøn'; if(mb_ereg_search_init($test_str)) diff --git a/ext/mbstring/tests/zend_multibyte-10.phpt b/ext/mbstring/tests/zend_multibyte-10.phpt index c3543c937a..89c7c1c26c 100644 --- a/ext/mbstring/tests/zend_multibyte-10.phpt +++ b/ext/mbstring/tests/zend_multibyte-10.phpt @@ -11,6 +11,8 @@ if (ini_set("mbstring.script_encoding","SJIS") != "SJIS") { <?php declare(encoding="ISO-8859-15"); declare(encoding="ISO-8859-1"); +echo "ok\n"; ?> --EXPECTF-- -Fatal error: Encoding declaration pragma must be the very first statement in the script in %s on line 3 +ok + diff --git a/ext/mbstring/tests/zend_multibyte-11.phpt b/ext/mbstring/tests/zend_multibyte-11.phpt index 84e16ae467..b79e4339ba 100644 --- a/ext/mbstring/tests/zend_multibyte-11.phpt +++ b/ext/mbstring/tests/zend_multibyte-11.phpt @@ -11,7 +11,8 @@ if (ini_set("mbstring.script_encoding","SJIS") != "SJIS") { <?php declare(encoding="ISO-8859-15") { declare(encoding="ISO-8859-1"); + echo "ok\n"; } ?> --EXPECTF-- -Fatal error: Encoding declaration pragma must be the very first statement in the script in %s on line 3 +ok |