diff options
author | Steph Fox <sfox@php.net> | 2008-05-27 10:50:48 +0000 |
---|---|---|
committer | Steph Fox <sfox@php.net> | 2008-05-27 10:50:48 +0000 |
commit | 87fac43ac01481282a848a3a82aa8d7a1802d232 (patch) | |
tree | 1d08fe3aed90fc0014eda499151fd5abd19dc644 | |
parent | 9c37df900ce10995c3ca804ac017dbb75ad5ad6b (diff) | |
download | php-git-87fac43ac01481282a848a3a82aa8d7a1802d232.tar.gz |
- killed off UEXPECT
- html_translation_table and setlocale tests are no longer relevant
- there are a number of ANSI-encoded files. Is this deliberate?
516 files changed, 317 insertions, 55658 deletions
diff --git a/ext/standard/tests/strings/005.phpt b/ext/standard/tests/strings/005.phpt index a69ff49425..8595bbfaac 100644 --- a/ext/standard/tests/strings/005.phpt +++ b/ext/standard/tests/strings/005.phpt @@ -16,7 +16,7 @@ var_dump(error_reporting()); echo "Done\n"; ?> ---EXPECTF-- +--EXPECT-- hello int(8192) bool(false) diff --git a/ext/standard/tests/strings/006.phpt b/ext/standard/tests/strings/006.phpt index 91c05a7ca1..22016e56ef 100644 --- a/ext/standard/tests/strings/006.phpt +++ b/ext/standard/tests/strings/006.phpt @@ -12,7 +12,7 @@ var_dump(ob_get_contents()); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: highlight_file(AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA): failed to open stream: File name too long in %s006.php on line %d Warning: highlight_file(): Failed opening 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' for highlighting in %s006.php on line %d diff --git a/ext/standard/tests/strings/007.phpt b/ext/standard/tests/strings/007.phpt index 999bf4a900..d323e83a73 100644 --- a/ext/standard/tests/strings/007.phpt +++ b/ext/standard/tests/strings/007.phpt @@ -12,7 +12,7 @@ var_dump(ob_get_contents()); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: php_strip_whitespace(AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA): failed to open stream: File name too long in %s007.php on line %d string(0) "" bool(false) diff --git a/ext/standard/tests/strings/add-and-stripcslashes.phpt b/ext/standard/tests/strings/add-and-stripcslashes.phpt index a91021e7b1..d74b7d5014 100644 --- a/ext/standard/tests/strings/add-and-stripcslashes.phpt +++ b/ext/standard/tests/strings/add-and-stripcslashes.phpt @@ -23,4 +23,3 @@ foo\b\a\r\b\az \abcd\e\f\g\h\i\j\k\l\m\n\o\pqrstuvwxy\z 1 5d - diff --git a/ext/standard/tests/strings/addcslashes_003.phpt b/ext/standard/tests/strings/addcslashes_003.phpt Binary files differindex 7ca33e11ec..712c035713 100644 --- a/ext/standard/tests/strings/addcslashes_003.phpt +++ b/ext/standard/tests/strings/addcslashes_003.phpt diff --git a/ext/standard/tests/strings/addcslashes_004.phpt b/ext/standard/tests/strings/addcslashes_004.phpt index ba553a2688..0108b2fb85 100644 --- a/ext/standard/tests/strings/addcslashes_004.phpt +++ b/ext/standard/tests/strings/addcslashes_004.phpt @@ -25,19 +25,6 @@ NULL Warning: addcslashes() expects exactly 2 parameters, 1 given in %s on line %d NULL -string(6) "\f\o\o" - -Warning: addcslashes() expects exactly 2 parameters, 3 given in %s on line %d -NULL -Done ---UEXPECTF-- -*** Testing error conditions *** - -Warning: addcslashes() expects exactly 2 parameters, 0 given in %s on line %d -NULL - -Warning: addcslashes() expects exactly 2 parameters, 1 given in %s on line %d -NULL Warning: addcslashes() expects parameter 1 to be strictly a binary string, Unicode string given in %s on line %d NULL diff --git a/ext/standard/tests/strings/addslashes_basic.phpt b/ext/standard/tests/strings/addslashes_basic.phpt index dac4c4b2cb..a918d744f4 100644 --- a/ext/standard/tests/strings/addslashes_basic.phpt +++ b/ext/standard/tests/strings/addslashes_basic.phpt @@ -30,15 +30,7 @@ foreach( $str_array as $str ) { echo "Done\n"; ?> ---EXPECTF-- -*** Testing addslashes() : basic functionality *** -string(16) "How\'s everybody" -string(17) "Are you \"JOHN\"?" -string(19) "c:\\php\\addslashes" -string(12) "hello\0world" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing addslashes() : basic functionality *** unicode(16) "How\'s everybody" unicode(17) "Are you \"JOHN\"?" diff --git a/ext/standard/tests/strings/addslashes_error.phpt b/ext/standard/tests/strings/addslashes_error.phpt index 309a4b72f8..a515cd0a69 100644 --- a/ext/standard/tests/strings/addslashes_error.phpt +++ b/ext/standard/tests/strings/addslashes_error.phpt @@ -40,20 +40,5 @@ NULL Warning: Wrong parameter count for addslashes() in %s on line %d NULL -string(15) ""hello"\"world"" -Done - ---UEXPECTF-- -*** Testing addslashes() : error conditions *** - --- Testing addslashes() function with Zero arguments -- - -Warning: Wrong parameter count for addslashes() in %s on line %d -NULL - --- Testing addslashes() function with more than expected no. of arguments -- - -Warning: Wrong parameter count for addslashes() in %s on line %d -NULL unicode(15) ""hello"\"world"" Done diff --git a/ext/standard/tests/strings/addslashes_variation1.phpt b/ext/standard/tests/strings/addslashes_variation1.phpt index 0b25e3fb10..433f4aadfc 100644 --- a/ext/standard/tests/strings/addslashes_variation1.phpt +++ b/ext/standard/tests/strings/addslashes_variation1.phpt @@ -106,78 +106,6 @@ Notice: Undefined variable: unset_var in %s on line %d --- Testing addslashes() by supplying different values for 'str' argument --- -- Iteration 1 -- -string(1) "0" --- Iteration 2 -- -string(1) "1" --- Iteration 3 -- -string(5) "12345" --- Iteration 4 -- -string(5) "-2345" --- Iteration 5 -- -string(4) "10.5" --- Iteration 6 -- -string(5) "-10.5" --- Iteration 7 -- -string(12) "105000000000" --- Iteration 8 -- -string(7) "1.06E-9" --- Iteration 9 -- -string(3) "0.5" --- Iteration 10 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" --- Iteration 11 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" --- Iteration 12 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" --- Iteration 13 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" --- Iteration 14 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" --- Iteration 15 -- -string(1) "1" --- Iteration 16 -- -string(0) "" --- Iteration 17 -- -string(1) "1" --- Iteration 18 -- -string(0) "" --- Iteration 19 -- -string(0) "" --- Iteration 20 -- -string(0) "" --- Iteration 21 -- -string(0) "" --- Iteration 22 -- -string(0) "" --- Iteration 23 -- -string(7) "obj\'ct" --- Iteration 24 -- -string(%d) "Resource id #%d" --- Iteration 25 -- -string(0) "" --- Iteration 26 -- -string(0) "" -Done - ---UEXPECTF-- -*** Testing addslashes() : with non-string type argument *** - -Notice: Undefined variable: undefined_var in %s on line %d - -Notice: Undefined variable: unset_var in %s on line %d - ---- Testing addslashes() by supplying different values for 'str' argument --- --- Iteration 1 -- unicode(1) "0" -- Iteration 2 -- unicode(1) "1" diff --git a/ext/standard/tests/strings/addslashes_variation2.phpt b/ext/standard/tests/strings/addslashes_variation2.phpt index 13a4bf637c..7df5bf4d92 100644 --- a/ext/standard/tests/strings/addslashes_variation2.phpt +++ b/ext/standard/tests/strings/addslashes_variation2.phpt @@ -87,114 +87,7 @@ foreach( $str_array as $str ) { echo "Done\n"; ?> ---EXPECTF-- -*** Testing addslashes() : with various strings containing characters to be backslashed *** - --- Iteration 1 -- -string(11) "Hello world" - --- Iteration 2 -- -string(18) "how\'re you doing?" - --- Iteration 3 -- -string(30) "don\'t disturb u\'r neighbours" - --- Iteration 4 -- -string(34) "don\'t disturb u\'r neighbours\'\'" - --- Iteration 5 -- -string(0) "" - --- Iteration 6 -- -string(2) "\'" - --- Iteration 7 -- -string(2) "\'" - --- Iteration 8 -- -string(32) "he said, \"he will be on leave\"" - --- Iteration 9 -- -string(34) "he said, \"\"he will be on leave\"" - --- Iteration 10 -- -string(15) "\"\"\"PHP\"\"\"" - --- Iteration 11 -- -string(0) "" - --- Iteration 12 -- -string(2) "\"" - --- Iteration 13 -- -string(2) "\"" - --- Iteration 14 -- -string(7) "hello\"" - --- Iteration 15 -- -string(26) "Is your name Ram\\Krishna?" - --- Iteration 16 -- -string(9) "\\0.0.0.0" - --- Iteration 17 -- -string(29) "c:\\php\\testcase\\addslashes" - --- Iteration 18 -- -string(2) "\\" - --- Iteration 19 -- -string(12) "hello\0world" - --- Iteration 20 -- -string(9) "\0hello\0" - --- Iteration 21 -- -string(9) "\0\0hello" - --- Iteration 22 -- -string(2) "\0" - --- Iteration 23 -- -string(13) "\'\\0.0.0.0\'" - --- Iteration 24 -- -string(15) "\'\\0.0.0.0\'\0" - --- Iteration 25 -- -string(15) "\0\'c:\\php\\\'" - --- Iteration 26 -- -string(13) "\"\\0.0.0.0\"" - --- Iteration 27 -- -string(17) "\"c:\\php\\\"\0\'" - --- Iteration 28 -- -string(22) "\"hello\"\'world\'\0//" - --- Iteration 29 -- -string(18) "0xABCDEF0123456789" - --- Iteration 30 -- -string(2) "\0" - --- Iteration 31 -- -string(18) "!@#$%&*@$%#&/;:,<>" - --- Iteration 32 -- -string(12) "hello\0world" - --- Iteration 33 -- -string(73) "This is line 1 of \'heredoc\' string -This is line 2 of \"heredoc\" string" - --- Iteration 34 -- -string(0) "" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing addslashes() : with various strings containing characters to be backslashed *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/basename.phpt b/ext/standard/tests/strings/basename.phpt Binary files differindex 8fe0fad704..1744ebea1f 100644 --- a/ext/standard/tests/strings/basename.phpt +++ b/ext/standard/tests/strings/basename.phpt diff --git a/ext/standard/tests/strings/basename_basic.phpt b/ext/standard/tests/strings/basename_basic.phpt index 4a0159f08b..47127ce050 100644 --- a/ext/standard/tests/strings/basename_basic.phpt +++ b/ext/standard/tests/strings/basename_basic.phpt @@ -72,106 +72,7 @@ check_basename( $file_paths ); echo "Done\n"; ?> ---EXPECTF-- -*** Testing basic operations *** - ---Iteration 1-- -string(3) "bar" - ---Iteration 2-- -string(3) "bar" - ---Iteration 3-- -string(3) "bar" - ---Iteration 4-- -string(3) "bar" - ---Iteration 5-- -string(3) "bar" - ---Iteration 6-- -string(3) "bar" - ---Iteration 7-- -string(3) "bar" - ---Iteration 8-- -string(3) "bar" - ---Iteration 9-- -string(3) "bar" - ---Iteration 10-- -string(3) "bar" - ---Iteration 11-- -string(6) "bar.gz" - ---Iteration 12-- -string(3) "bar" - ---Iteration 13-- -string(3) "bar" - ---Iteration 14-- -string(3) "bar" - ---Iteration 15-- -string(3) "bar" - ---Iteration 16-- -string(3) "bar" - ---Iteration 17-- -string(3) "bar" - ---Iteration 18-- -string(3) "bar" - ---Iteration 19-- -string(3) "bar" - ---Iteration 20-- -string(3) ".gz" - ---Iteration 21-- -string(3) ".gz" - ---Iteration 22-- -string(3) ".gz" - ---Iteration 23-- -string(3) ".gz" - ---Iteration 24-- -string(3) ".gz" - ---Iteration 25-- -string(3) ".gz" - ---Iteration 26-- -string(3) "bar" - ---Iteration 27-- -string(3) "bar" - ---Iteration 28-- -string(3) "bar" - ---Iteration 29-- -string(3) "bar" - ---Iteration 30-- -string(3) "bar" - ---Iteration 31-- -string(3) "bar" - ---Iteration 32-- -string(6) "bar.gz" -Done ---UEXPECT-- +--EXPECT-- *** Testing basic operations *** --Iteration 1-- @@ -269,4 +170,4 @@ string(3) "bar" --Iteration 32-- string(6) "bar.gz" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/basename_error.phpt b/ext/standard/tests/strings/basename_error.phpt index ba4d6ebd8b..13966147fd 100644 --- a/ext/standard/tests/strings/basename_error.phpt +++ b/ext/standard/tests/strings/basename_error.phpt @@ -56,33 +56,3 @@ NULL Warning: basename() expects parameter 2 to be string (Unicode or binary), object given in %s on line %d NULL Done ---UEXPECTF-- -*** Testing error conditions *** - -Warning: basename() expects at least 1 parameter, 0 given in %s on line %d -NULL - -Warning: basename() expects at most 2 parameters, 3 given in %s on line %d -NULL - -Warning: basename() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: basename() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: basename() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: basename() expects parameter 1 to be string (Unicode or binary), object given in %s on line %d -NULL - -Warning: basename() expects parameter 1 to be string (Unicode or binary), object given in %s on line %d -NULL - -Warning: basename() expects parameter 1 to be string (Unicode or binary), object given in %s on line %d -NULL - -Warning: basename() expects parameter 2 to be string (Unicode or binary), object given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/basename_variation.phpt b/ext/standard/tests/strings/basename_variation.phpt index b957bb9f83..06eff43831 100644 --- a/ext/standard/tests/strings/basename_variation.phpt +++ b/ext/standard/tests/strings/basename_variation.phpt @@ -86,154 +86,7 @@ check_basename( $file_path_variations ); echo "Done\n"; ---EXPECTF-- -*** Testing possible variations in path and suffix *** - ---Iteration 1-- -string(3) "bar" - ---Iteration 2-- -string(3) "bar" - ---Iteration 3-- -string(3) "bar" - ---Iteration 4-- -string(3) "bar" - ---Iteration 5-- -string(3) "bar" - ---Iteration 6-- -string(7) "bar.tar" - ---Iteration 7-- -string(7) "bar.tar" - ---Iteration 8-- -string(7) "bar.tar" - ---Iteration 9-- -string(7) "bar.tar" - ---Iteration 10-- -string(7) "bar.tar" - ---Iteration 11-- -string(7) "bar.tar" - ---Iteration 12-- -string(7) "bar.tar" - ---Iteration 13-- -string(7) "bar.tar" - ---Iteration 14-- -string(1) "t" - ---Iteration 15-- -string(7) "tbar.gz" - ---Iteration 16-- -string(7) "tbar.gz" - ---Iteration 17-- -string(7) "tbar.gz" - ---Iteration 18-- -string(7) "tbar.gz" - ---Iteration 19-- -string(10) "My Pics.gz" - ---Iteration 20-- -string(10) "My Pics.gz" - ---Iteration 21-- -string(3) "My " - ---Iteration 22-- -string(7) "My Pics" - ---Iteration 23-- -string(10) "My Pics.gz" - ---Iteration 24-- -string(10) "My Pics.gz" - ---Iteration 25-- -string(10) "My Pics.gz" - ---Iteration 26-- -string(10) "My Pics.gz" - ---Iteration 27-- -string(10) "My Pics.gz" - ---Iteration 28-- -string(4) "10.5" - ---Iteration 29-- -string(2) "10" - ---Iteration 30-- -string(4) "10.5" - ---Iteration 31-- -string(2) "10" - ---Iteration 32-- -string(2) "10" - ---Iteration 33-- -string(4) "10.5" - ---Iteration 34-- -string(4) "10.5" - ---Iteration 35-- -string(5) "10.gz" - ---Iteration 36-- -string(1) "0" - ---Iteration 37-- -string(1) "0" - ---Iteration 38-- -string(6) "bar.gz" - ---Iteration 39-- -string(6) "bar.gz" - ---Iteration 40-- -string(6) "bar.gz" - ---Iteration 41-- -string(1) " " - ---Iteration 42-- -string(1) " " - ---Iteration 43-- -string(0) "" - ---Iteration 44-- -string(1) " " - ---Iteration 45-- -string(1) " " - ---Iteration 46-- -string(0) "" - ---Iteration 47-- -string(0) "" - ---Iteration 48-- -string(0) "" -Done ---UEXPECT-- +--EXPECT-- *** Testing possible variations in path and suffix *** --Iteration 1-- diff --git a/ext/standard/tests/strings/bug20108.phpt b/ext/standard/tests/strings/bug20108.phpt index 150d9f3da0..d8f2c38aa4 100644 --- a/ext/standard/tests/strings/bug20108.phpt +++ b/ext/standard/tests/strings/bug20108.phpt @@ -7,8 +7,5 @@ Bug #20108 (Segfault on printf statement) var_dump($z); ?> --EXPECT-- -string(581) " boo -" ---UEXPECT-- unicode(581) " boo " diff --git a/ext/standard/tests/strings/bug20261.phpt b/ext/standard/tests/strings/bug20261.phpt index 163e905a4a..3c03afb43d 100644 --- a/ext/standard/tests/strings/bug20261.phpt +++ b/ext/standard/tests/strings/bug20261.phpt @@ -23,4 +23,3 @@ Bug #20261 (str_rot13() changes too much) 1: boo 2: boo 3: obb - diff --git a/ext/standard/tests/strings/bug20934.phpt b/ext/standard/tests/strings/bug20934.phpt index 8e4486cc7a..a02eb0baca 100644 --- a/ext/standard/tests/strings/bug20934.phpt +++ b/ext/standard/tests/strings/bug20934.phpt @@ -13,8 +13,5 @@ var_dump(bin2hex((binary)utf8_decode($str))); var_dump(bin2hex((binary)utf8_decode(htmlspecialchars($str, ENT_COMPAT, "UTF-8")))); ?> --EXPECT-- -string(4) "e0e1" -string(4) "e0e1" ---UEXPECT-- unicode(4) "e0e1" unicode(4) "e0e1" diff --git a/ext/standard/tests/strings/bug21338.phpt b/ext/standard/tests/strings/bug21338.phpt index 3eb7608421..3b7a538443 100644 --- a/ext/standard/tests/strings/bug21338.phpt +++ b/ext/standard/tests/strings/bug21338.phpt @@ -6,8 +6,5 @@ Bug #20934 (html_entity_decode() crash when "" is passed) var_dump(html_entity_decode("")); ?> --EXPECT-- -string(0) "" -string(0) "" ---UEXPECT-- unicode(0) "" unicode(0) "" diff --git a/ext/standard/tests/strings/bug21453.phpt b/ext/standard/tests/strings/bug21453.phpt index cc14573432..440aefc8f8 100644 --- a/ext/standard/tests/strings/bug21453.phpt +++ b/ext/standard/tests/strings/bug21453.phpt @@ -11,12 +11,6 @@ $test = " var_dump(strip_tags($test)); ?> --EXPECT-- -string(80) " - - first cell before < first cell after - second cell before < second cell after -" ---UEXPECT-- unicode(80) " first cell before < first cell after diff --git a/ext/standard/tests/strings/bug21730.phpt b/ext/standard/tests/strings/bug21730.phpt index 406f8c6eb4..a1b2ede1b0 100644 --- a/ext/standard/tests/strings/bug21730.phpt +++ b/ext/standard/tests/strings/bug21730.phpt @@ -19,23 +19,6 @@ var_dump($res_b); --EXPECT-- array(3) { [0]=> - string(3) "ABC" - [1]=> - string(3) "DEF" - [2]=> - int(9) -} -array(3) { - [0]=> - string(3) "ABC" - [1]=> - string(3) "DEF" - [2]=> - int(9) -} ---UEXPECT-- -array(3) { - [0]=> unicode(3) "ABC" [1]=> unicode(3) "DEF" diff --git a/ext/standard/tests/strings/bug22187.phpt b/ext/standard/tests/strings/bug22187.phpt index 2e00043eeb..a28d8b8c5c 100644 --- a/ext/standard/tests/strings/bug22187.phpt +++ b/ext/standard/tests/strings/bug22187.phpt @@ -6,8 +6,5 @@ Bug #22187 (possible crash in number_format() function) var_dump(number_format(0.0001, 0)); ?> --EXPECT-- -string(3) "0.0" -string(1) "0" ---UEXPECT-- unicode(3) "0.0" unicode(1) "0" diff --git a/ext/standard/tests/strings/bug22207.phpt b/ext/standard/tests/strings/bug22207.phpt index c0ec4fdbc1..431819b059 100644 --- a/ext/standard/tests/strings/bug22207.phpt +++ b/ext/standard/tests/strings/bug22207.phpt @@ -7,9 +7,5 @@ Bug #22207 (missing 0 when using the e notation in *printf functions) ?> --EXPECT-- 1.10000e+0 -string(11) "1.10000e+0 -" ---UEXPECT-- -1.10000e+0 unicode(11) "1.10000e+0 " diff --git a/ext/standard/tests/strings/bug22224.phpt b/ext/standard/tests/strings/bug22224.phpt index 0546c68384..d8356a7c4f 100644 --- a/ext/standard/tests/strings/bug22224.phpt +++ b/ext/standard/tests/strings/bug22224.phpt @@ -20,16 +20,6 @@ var_dump(implode(",",$arr)); var_dump($arr) ?> --EXPECTF-- -string(13) "Object,Object" -array(2) { - [0]=> - &object(foo)#%d (0) { - } - [1]=> - &object(foo)#%d (0) { - } -} ---UEXPECTF-- unicode(13) "Object,Object" array(2) { [0]=> diff --git a/ext/standard/tests/strings/bug23650.phpt b/ext/standard/tests/strings/bug23650.phpt index 01dc88843d..7950231462 100644 --- a/ext/standard/tests/strings/bug23650.phpt +++ b/ext/standard/tests/strings/bug23650.phpt @@ -28,4 +28,3 @@ echo strip_tags($str, '<abc>'); 4:<abc - def> 5:abc - def 6:</abc> - diff --git a/ext/standard/tests/strings/bug23894.phpt b/ext/standard/tests/strings/bug23894.phpt index 070304b589..f11c4798e1 100644 --- a/ext/standard/tests/strings/bug23894.phpt +++ b/ext/standard/tests/strings/bug23894.phpt @@ -9,11 +9,6 @@ $test = sprintf("% 13u", $a); var_dump($test, bin2hex((binary)$test)); ?> --EXPECTREGEX-- -string\(4\) \"-012\" -string\(8\) \"2d303132\" -(string\(13\) \" 4294967284\"|string\(20\) \"18446744073709551604\") -(string\(26\) \"20202034323934393637323834\"|string\(40\) \"3138343436373434303733373039353531363034\") ---UEXPECTREGEX-- unicode\(4\) \"-012\" unicode\(8\) \"2d303132\" (unicode\(13\) \" 4294967284\"|unicode\(20\) \"18446744073709551604\") diff --git a/ext/standard/tests/strings/bug24098.phpt b/ext/standard/tests/strings/bug24098.phpt index ff00a7f6d5..f65be2a2ba 100644 --- a/ext/standard/tests/strings/bug24098.phpt +++ b/ext/standard/tests/strings/bug24098.phpt @@ -8,17 +8,6 @@ Bug #24098 (pathinfo() crash) ?> --EXPECT-- array(4) { - ["dirname"]=> - string(1) "/" - ["basename"]=> - string(8) "dsds.asa" - ["extension"]=> - string(3) "asa" - ["filename"]=> - string(4) "dsds" -} ---UEXPECT-- -array(4) { [u"dirname"]=> unicode(1) "/" [u"basename"]=> diff --git a/ext/standard/tests/strings/bug24208.phpt b/ext/standard/tests/strings/bug24208.phpt index f3226e4fd3..382d277e70 100644 --- a/ext/standard/tests/strings/bug24208.phpt +++ b/ext/standard/tests/strings/bug24208.phpt @@ -7,10 +7,6 @@ parse_str("a=1&b=2&c=3"); var_dump($a, $b, $c); ?> --EXPECT-- -string(1) "1" -string(1) "2" -string(1) "3" ---UEXPECT-- unicode(1) "1" unicode(1) "2" unicode(1) "3" diff --git a/ext/standard/tests/strings/bug25671.phpt b/ext/standard/tests/strings/bug25671.phpt index 73a1f06d4e..089b04d4ec 100644 --- a/ext/standard/tests/strings/bug25671.phpt +++ b/ext/standard/tests/strings/bug25671.phpt @@ -16,11 +16,6 @@ Bug #25671 (subarrays not copied correctly) echo serialize(str_replace(" ", "", $arr)) . "\n"; ?> --EXPECT-- -a:4:{i:0;S:19:"This is strung one.";i:1;S:19:"This is strung two.";i:2;a:2:{i:0;S:23:"This is another string.";i:1;S:22:"This is a last string.";}i:3;S:22:"This is a last strung.";} -a:4:{i:0;S:19:"This is strung one.";i:1;S:19:"This is strung two.";i:2;a:2:{i:0;S:23:"This is another string.";i:1;S:22:"This is a last string.";}i:3;S:22:"This is a last strung.";} -a:4:{i:0;S:16:"Thisisstringone.";i:1;S:16:"Thisisstringtwo.";i:2;a:2:{i:0;S:23:"This is another string.";i:1;S:22:"This is a last string.";}i:3;S:18:"Thisisalaststring.";} -a:4:{i:0;S:16:"Thisisstringone.";i:1;S:16:"Thisisstringtwo.";i:2;a:2:{i:0;S:23:"This is another string.";i:1;S:22:"This is a last string.";}i:3;S:18:"Thisisalaststring.";} ---UEXPECT-- a:4:{i:0;U:19:"This is strung one.";i:1;U:19:"This is strung two.";i:2;a:2:{i:0;U:23:"This is another string.";i:1;U:22:"This is a last string.";}i:3;U:22:"This is a last strung.";} a:4:{i:0;U:19:"This is strung one.";i:1;U:19:"This is strung two.";i:2;a:2:{i:0;U:23:"This is another string.";i:1;U:22:"This is a last string.";}i:3;U:22:"This is a last strung.";} a:4:{i:0;U:16:"Thisisstringone.";i:1;U:16:"Thisisstringtwo.";i:2;a:2:{i:0;U:23:"This is another string.";i:1;U:22:"This is a last string.";}i:3;U:18:"Thisisalaststring.";} diff --git a/ext/standard/tests/strings/bug25707.phpt b/ext/standard/tests/strings/bug25707.phpt index ad414674cb..fef604a8da 100644 --- a/ext/standard/tests/strings/bug25707.phpt +++ b/ext/standard/tests/strings/bug25707.phpt @@ -7,10 +7,6 @@ var_dump(html_entity_decode("&#38;", ENT_COMPAT, 'ISO-8859-1')); var_dump(html_entity_decode("&#38;lt;", ENT_COMPAT, 'ISO-8859-1')); ?> --EXPECT-- -string(4) "<" -string(5) "&" -string(8) "&lt;" ---UEXPECT-- unicode(4) "<" unicode(5) "&" unicode(8) "&lt;" diff --git a/ext/standard/tests/strings/bug26817.phpt b/ext/standard/tests/strings/bug26817.phpt index 88b1caaf92..72a0b273a1 100644 --- a/ext/standard/tests/strings/bug26817.phpt +++ b/ext/standard/tests/strings/bug26817.phpt @@ -22,8 +22,5 @@ $obj->foo(); var_dump(http_build_query($obj)); ?> --EXPECT-- -string(27) "foo=lala&bar=meuh&test=test" -string(9) "test=test" ---UEXPECT-- unicode(27) "foo=lala&bar=meuh&test=test" unicode(9) "test=test" diff --git a/ext/standard/tests/strings/bug27278.phpt b/ext/standard/tests/strings/bug27278.phpt index 512fe64c92..667197076c 100644 --- a/ext/standard/tests/strings/bug27278.phpt +++ b/ext/standard/tests/strings/bug27278.phpt @@ -16,10 +16,6 @@ var_dump($x); ?> --EXPECT-- -string(2) "02" -string(2) "02" -string(2) "02" ---UEXPECT-- unicode(2) "02" unicode(2) "02" unicode(2) "02" diff --git a/ext/standard/tests/strings/bug29119.phpt b/ext/standard/tests/strings/bug29119.phpt index 9f48bdfc1d..71a5688296 100644 --- a/ext/standard/tests/strings/bug29119.phpt +++ b/ext/standard/tests/strings/bug29119.phpt @@ -7,6 +7,4 @@ unicode.runtime_encoding=UTF-8 var_dump(bin2hex((binary)html_entity_decode('  ‘†′⁄€', ENT_QUOTES, 'UTF-8'))); ?> --EXPECT-- -string(42) "e28082e28089e28098e280a0e280b2e28184e282ac" ---UEXPECT-- unicode(42) "e28082e28089e28098e280a0e280b2e28184e282ac" diff --git a/ext/standard/tests/strings/bug33076.phpt b/ext/standard/tests/strings/bug33076.phpt index d273bcc562..c9c27463a6 100644 --- a/ext/standard/tests/strings/bug33076.phpt +++ b/ext/standard/tests/strings/bug33076.phpt @@ -9,9 +9,6 @@ var_dump($value); echo "Done\n"; ?> ---EXPECT-- -string(6) "bzexbz" -Done ---UEXPECT-- +--EXPECT-- unicode(6) "bzexbz" Done diff --git a/ext/standard/tests/strings/bug36944.phpt b/ext/standard/tests/strings/bug36944.phpt index 2a43d060e2..a9f117fe3f 100644 --- a/ext/standard/tests/strings/bug36944.phpt +++ b/ext/standard/tests/strings/bug36944.phpt @@ -13,7 +13,7 @@ var_dump(strncasecmp("test ", "E", 0)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: Length must be greater than or equal to 0 in %s on line %d bool(false) int(%d) diff --git a/ext/standard/tests/strings/bug37244.phpt b/ext/standard/tests/strings/bug37244.phpt index 0718c8a4d3..bd9628e877 100644 --- a/ext/standard/tests/strings/bug37244.phpt +++ b/ext/standard/tests/strings/bug37244.phpt @@ -15,4 +15,3 @@ foreach($strings as $string) { string(93) "Implementations MUST reject the encoding if it contains characters outside the base alphabet." bool(false) string(92) "Implemem][ÛœÈUTÕ™Z™XÝH[˜ÛÙ[™ÈYˆ]ÛÛZ[œÈÚ\˜XÝ\œÈÝ]ÚYHH˜\ÙH[X™]" - diff --git a/ext/standard/tests/strings/bug37262.phpt b/ext/standard/tests/strings/bug37262.phpt index 6fe2d9f379..c231587cd8 100644 --- a/ext/standard/tests/strings/bug37262.phpt +++ b/ext/standard/tests/strings/bug37262.phpt @@ -5,5 +5,5 @@ Bug #37262 (var_export() does not escape \0 character) $func = create_function('$a', 'return $a;'); var_export($func); ?> ---EXPECT-- +--EXPECT-- '' . "\0" . 'lambda_1' diff --git a/ext/standard/tests/strings/bug38322.phpt b/ext/standard/tests/strings/bug38322.phpt index 37f5a93f66..39fc5f2665 100644 --- a/ext/standard/tests/strings/bug38322.phpt +++ b/ext/standard/tests/strings/bug38322.phpt @@ -8,6 +8,6 @@ var_dump(sscanf("a ",'%1$s',$str)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECT-- int(1) Done diff --git a/ext/standard/tests/strings/bug38770.phpt b/ext/standard/tests/strings/bug38770.phpt index 2494a911bd..efadf879c7 100644 --- a/ext/standard/tests/strings/bug38770.phpt +++ b/ext/standard/tests/strings/bug38770.phpt @@ -9,7 +9,7 @@ foreach (array('N','I','l') as $v) { echo "Done\n"; ?> ---EXPECT-- +--EXPECT-- Array ( [1] => -30000 diff --git a/ext/standard/tests/strings/bug39032.phpt b/ext/standard/tests/strings/bug39032.phpt index dbd39ec9d8..f01df3ff4c 100644 --- a/ext/standard/tests/strings/bug39032.phpt +++ b/ext/standard/tests/strings/bug39032.phpt @@ -10,7 +10,7 @@ var_dump(strcspn(chr(1),"qweqwe")); echo "Done\n"; ?> ---EXPECTF-- +--EXPECT-- int(1) int(0) int(1) diff --git a/ext/standard/tests/strings/bug39350.phpt b/ext/standard/tests/strings/bug39350.phpt index 53d58b7099..8cc51e9592 100644 --- a/ext/standard/tests/strings/bug39350.phpt +++ b/ext/standard/tests/strings/bug39350.phpt @@ -9,5 +9,5 @@ implode('', array("")); echo "Done\n"; ?> ---EXPECT-- +--EXPECT-- Done diff --git a/ext/standard/tests/strings/bug39621.phpt b/ext/standard/tests/strings/bug39621.phpt Binary files differindex e9c4a3ff6f..4d0a8f3476 100644 --- a/ext/standard/tests/strings/bug39621.phpt +++ b/ext/standard/tests/strings/bug39621.phpt diff --git a/ext/standard/tests/strings/bug39873.phpt b/ext/standard/tests/strings/bug39873.phpt index 10baebe8de..356b6628a1 100644 --- a/ext/standard/tests/strings/bug39873.phpt +++ b/ext/standard/tests/strings/bug39873.phpt @@ -13,8 +13,6 @@ if (!setlocale(LC_ALL, "ita","it","Italian","it_IT","it_IT.ISO8859-1","it_IT.ISO echo number_format($num,2); echo "\n"; ?> ---EXPECT-- -1,234.56 ---UEXPECTF-- +--EXPECTF-- Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d 1,234.56 diff --git a/ext/standard/tests/strings/bug40637.phpt b/ext/standard/tests/strings/bug40637.phpt index fa1a28d824..56cafbd6e8 100644 --- a/ext/standard/tests/strings/bug40637.phpt +++ b/ext/standard/tests/strings/bug40637.phpt @@ -8,9 +8,6 @@ var_dump(strip_tags($html)); echo "Done\n"; ?> ---EXPECTF-- -string(4) "Text" -Done ---UEXPECTF-- +--EXPECT-- unicode(4) "Text" Done diff --git a/ext/standard/tests/strings/bug40704.phpt b/ext/standard/tests/strings/bug40704.phpt index 7ffd94af8a..16f390ea70 100644 --- a/ext/standard/tests/strings/bug40704.phpt +++ b/ext/standard/tests/strings/bug40704.phpt @@ -8,9 +8,6 @@ var_dump(strip_tags($html)); echo "Done\n"; ?> ---EXPECT-- -string(26) "Bug ' Trigger Missing Text" -Done ---UEXPECT-- +--EXPECT-- unicode(26) "Bug ' Trigger Missing Text" Done diff --git a/ext/standard/tests/strings/bug40754.phpt b/ext/standard/tests/strings/bug40754.phpt index b6a470aa4f..a3a5cf904f 100644 --- a/ext/standard/tests/strings/bug40754.phpt +++ b/ext/standard/tests/strings/bug40754.phpt @@ -26,42 +26,7 @@ var_dump(chunk_split("abcde", $v, "abc")); var_dump(substr("abcde", $v, $v)); ?> ---EXPECTF-- -string(4) "bcde" -string(6) "abcdex" -bool(false) -bool(false) - -Warning: substr_count(): Offset value 2147483647 exceeds string length in %s on line %d -bool(false) - -Warning: substr_compare(): The start position cannot exceed initial string length in %s on line %d -bool(false) - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) - -Warning: substr_count(): Offset value 2147483647 exceeds string length in %s on line %d -bool(false) - -Warning: substr_count(): Length value 2147483647 exceeds string length in %s on line %d -bool(false) - -Warning: strpos(): Offset not contained in string in %s on line %d -bool(false) - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) - -Notice: strrpos(): Offset is greater than the length of haystack string in %s on line %d -bool(false) - -Notice: strripos(): Offset is greater than the length of haystack string in %s on line %d -bool(false) -int(2) -string(8) "abcdeabc" -bool(false) ---UEXPECTF-- +--EXPECTF-- unicode(4) "bcde" unicode(6) "abcdex" bool(false) diff --git a/ext/standard/tests/strings/bug40915.phpt b/ext/standard/tests/strings/bug40915.phpt Binary files differindex 854853ed2e..47f38be92f 100644 --- a/ext/standard/tests/strings/bug40915.phpt +++ b/ext/standard/tests/strings/bug40915.phpt diff --git a/ext/standard/tests/strings/bug42107.phpt b/ext/standard/tests/strings/bug42107.phpt index fc9e449a8f..b7bf4f1ca6 100644 --- a/ext/standard/tests/strings/bug42107.phpt +++ b/ext/standard/tests/strings/bug42107.phpt @@ -15,37 +15,7 @@ var_dump(sscanf('one two', '%1$d %2$d')); var_dump(sscanf('one two', '%1$d')); echo "Done\n"; ?> ---EXPECTF-- -array(2) { - [0]=> - string(3) "one" - [1]=> - string(3) "two" -} -array(2) { - [0]=> - string(3) "two" - [1]=> - string(3) "one" -} --- -string(3) "one" -string(3) "two" -string(3) "two" -string(3) "one" --- -array(2) { - [0]=> - NULL - [1]=> - NULL -} -array(1) { - [0]=> - NULL -} -Done ---UEXPECTF-- +--EXPECT-- array(2) { [0]=> unicode(3) "one" diff --git a/ext/standard/tests/strings/bug42208.phpt b/ext/standard/tests/strings/bug42208.phpt index f672c8a66c..d7b7bae57c 100644 --- a/ext/standard/tests/strings/bug42208.phpt +++ b/ext/standard/tests/strings/bug42208.phpt @@ -9,13 +9,6 @@ var_dump(substr_replace($a, 1, 1, $c)); --EXPECT-- array(2) { [0]=> - string(2) "11" - [1]=> - string(2) "21" -} ---UEXPECT-- -array(2) { - [0]=> unicode(2) "11" [1]=> unicode(2) "21" diff --git a/ext/standard/tests/strings/bug42861.phpt b/ext/standard/tests/strings/bug42861.phpt index 60be939c9d..408e153e75 100644 --- a/ext/standard/tests/strings/bug42861.phpt +++ b/ext/standard/tests/strings/bug42861.phpt @@ -15,17 +15,7 @@ var_dump( strtr("hello", null, "string") ); echo "Done\n"; ?> ---EXPECTF-- -bool(false) -bool(false) -bool(false) -bool(false) -string(5) "hello" -string(5) "hello" -string(5) "hello" -string(5) "hello" -Done ---UEXPECTF-- +--EXPECT-- unicode(5) "hello" unicode(5) "hello" unicode(5) "hello" diff --git a/ext/standard/tests/strings/bug42866.phpt b/ext/standard/tests/strings/bug42866.phpt index 65d0e98e8f..5895f01cca 100755 --- a/ext/standard/tests/strings/bug42866.phpt +++ b/ext/standard/tests/strings/bug42866.phpt @@ -9,17 +9,6 @@ var_dump( str_split($str, $split_length) ); --EXPECT-- array(4) { [0]=> - string(5) "Testi" - [1]=> - string(5) "ng st" - [2]=> - string(5) "r_spl" - [3]=> - string(4) "it()" -} ---UEXPECT-- -array(4) { - [0]=> unicode(5) "Testi" [1]=> unicode(5) "ng st" diff --git a/ext/standard/tests/strings/bug43927.phpt b/ext/standard/tests/strings/bug43927.phpt index a2e8d053d6..d7ede24c31 100644 --- a/ext/standard/tests/strings/bug43927.phpt +++ b/ext/standard/tests/strings/bug43927.phpt @@ -7,10 +7,6 @@ var_dump(html_entity_decode("&#38;", ENT_COMPAT, 'koi8-r')); var_dump(html_entity_decode("&#38;lt;", ENT_COMPAT, 'koi8-r')); ?> --EXPECT-- -string(4) "<" -string(5) "&" -string(8) "&lt;" ---UEXPECT-- unicode(4) "<" unicode(5) "&" unicode(8) "&lt;" diff --git a/ext/standard/tests/strings/bug44075.phpt b/ext/standard/tests/strings/bug44075.phpt index b103020fd6..d9e0b73769 100644 --- a/ext/standard/tests/strings/bug44075.phpt +++ b/ext/standard/tests/strings/bug44075.phpt @@ -57,32 +57,6 @@ do { ?> --EXPECT-- -string(1) "1" -string(1) "2" - ----- -string(1) "1" -string(3) "2-3" - ----- -string(1) "1" -string(1) "2" -string(2) "-3" - ----- -string(1) "1" -string(3) "2-3" - ----- -string(1) "1" -string(4) " -2-3" - ----- -string(1) "1" -string(2) "--" -string(3) "2-3" ---UEXPECT-- unicode(1) "1" unicode(1) "2" diff --git a/ext/standard/tests/strings/bug44703.phpt b/ext/standard/tests/strings/bug44703.phpt index d2cdce9bfa..68468e25e5 100644 --- a/ext/standard/tests/strings/bug44703.phpt +++ b/ext/standard/tests/strings/bug44703.phpt @@ -44,5 +44,3 @@ string(8) "<>" Warning: htmlspecialchars(): charset `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' not supported, assuming iso-8859-1 in %s on line %d string(8) "<>" - - diff --git a/ext/standard/tests/strings/chop_basic.phpt b/ext/standard/tests/strings/chop_basic.phpt Binary files differindex d08059f601..a589dab02c 100644 --- a/ext/standard/tests/strings/chop_basic.phpt +++ b/ext/standard/tests/strings/chop_basic.phpt diff --git a/ext/standard/tests/strings/chop_error.phpt b/ext/standard/tests/strings/chop_error.phpt index ae6fad5bbe..a15724c882 100644 --- a/ext/standard/tests/strings/chop_error.phpt +++ b/ext/standard/tests/strings/chop_error.phpt @@ -40,20 +40,5 @@ NULL Warning: chop() expects at most 2 parameters, 3 given in %s on line %d NULL -string(11) "string_val " -Done - ---UEXPECTF-- -*** Testing chop() : error conditions *** - --- Testing chop() function with Zero arguments -- - -Warning: chop() expects at least 1 parameter, 0 given in %s on line %d -NULL - --- Testing chop() function with more than expected no. of arguments -- - -Warning: chop() expects at most 2 parameters, 3 given in %s on line %d -NULL unicode(11) "string_val " Done diff --git a/ext/standard/tests/strings/chop_variation1.phpt b/ext/standard/tests/strings/chop_variation1.phpt index 0d492d29c7..9eb80c010d 100644 --- a/ext/standard/tests/strings/chop_variation1.phpt +++ b/ext/standard/tests/strings/chop_variation1.phpt @@ -110,118 +110,6 @@ Notice: Undefined variable: unset_var in %s on line %d --- Testing chop() by supplying different values for 'str' argument --- -- Iteration 1 -- -string(1) "0" -string(0) "" --- Iteration 2 -- -string(1) "1" -string(0) "" --- Iteration 3 -- -string(5) "12345" -string(0) "" --- Iteration 4 -- -string(5) "-2345" -string(1) "-" --- Iteration 5 -- -string(4) "10.5" -string(3) "10." --- Iteration 6 -- -string(5) "-10.5" -string(4) "-10." --- Iteration 7 -- -string(12) "101234567000" -string(0) "" --- Iteration 8 -- -string(13) "1.07654321E-9" -string(12) "1.07654321E-" --- Iteration 9 -- -string(3) "0.5" -string(2) "0." --- Iteration 10 -- - -Warning: chop() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: chop() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 11 -- - -Warning: chop() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: chop() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 12 -- - -Warning: chop() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: chop() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 13 -- - -Warning: chop() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: chop() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 14 -- - -Warning: chop() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: chop() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 15 -- -string(1) "1" -string(0) "" --- Iteration 16 -- -string(0) "" -string(0) "" --- Iteration 17 -- -string(1) "1" -string(0) "" --- Iteration 18 -- -string(0) "" -string(0) "" --- Iteration 19 -- -string(0) "" -string(0) "" --- Iteration 20 -- -string(0) "" -string(0) "" --- Iteration 21 -- -string(0) "" -string(0) "" --- Iteration 22 -- -string(0) "" -string(0) "" --- Iteration 23 -- -string(0) "" -string(0) "" --- Iteration 24 -- -string(0) "" -string(0) "" --- Iteration 25 -- -string(16) " @#$%Object @#$%" -string(11) " @#$%Object" --- Iteration 26 -- - -Warning: chop() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL - -Warning: chop() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL -Done - ---UEXPECTF-- -*** Testing chop() : with unexpected values for str argument passed to the function *** - -Notice: Undefined variable: undefined_var in %s on line %d - -Notice: Undefined variable: unset_var in %s on line %d - ---- Testing chop() by supplying different values for 'str' argument --- --- Iteration 1 -- unicode(1) "0" unicode(0) "" -- Iteration 2 -- diff --git a/ext/standard/tests/strings/chop_variation2.phpt b/ext/standard/tests/strings/chop_variation2.phpt index 179e63baa0..74de2e0c08 100644 --- a/ext/standard/tests/strings/chop_variation2.phpt +++ b/ext/standard/tests/strings/chop_variation2.phpt @@ -108,80 +108,6 @@ Notice: Undefined variable: unset_var in %s on line %d --- Testing chop() by supplying different values for 'charlist' argument --- -- Iteration 1 -- -string(17) "hello world12345 " --- Iteration 2 -- -string(17) "hello world12345 " --- Iteration 3 -- -string(17) "hello world12345 " --- Iteration 4 -- -string(17) "hello world12345 " --- Iteration 5 -- -string(17) "hello world12345 " --- Iteration 6 -- -string(17) "hello world12345 " --- Iteration 7 -- -string(17) "hello world12345 " --- Iteration 8 -- -string(17) "hello world12345 " --- Iteration 9 -- -string(17) "hello world12345 " --- Iteration 10 -- - -Warning: chop() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 11 -- - -Warning: chop() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 12 -- - -Warning: chop() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 13 -- - -Warning: chop() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 14 -- - -Warning: chop() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 15 -- -string(17) "hello world12345 " --- Iteration 16 -- -string(17) "hello world12345 " --- Iteration 17 -- -string(17) "hello world12345 " --- Iteration 18 -- -string(17) "hello world12345 " --- Iteration 19 -- -string(11) "hello world" --- Iteration 20 -- -string(17) "hello world12345 " --- Iteration 21 -- -string(17) "hello world12345 " --- Iteration 22 -- -string(17) "hello world12345 " --- Iteration 23 -- -string(17) "hello world12345 " --- Iteration 24 -- - -Warning: chop() expects parameter 2 to be string (Unicode or binary), resource given in %s on line %d -NULL --- Iteration 25 -- -string(17) "hello world12345 " --- Iteration 26 -- -string(17) "hello world12345 " -Done - ---UEXPECTF-- -*** Testing chop() : with unexpected values of charlist argument passed to the function *** - -Notice: Undefined variable: undefined_var in %s on line %d - -Notice: Undefined variable: unset_var in %s on line %d - ---- Testing chop() by supplying different values for 'charlist' argument --- --- Iteration 1 -- unicode(17) "hello world12345 " -- Iteration 2 -- unicode(17) "hello world12345 " diff --git a/ext/standard/tests/strings/chop_variation3.phpt b/ext/standard/tests/strings/chop_variation3.phpt Binary files differindex 1f2abc6cf0..4e00a289ff 100644 --- a/ext/standard/tests/strings/chop_variation3.phpt +++ b/ext/standard/tests/strings/chop_variation3.phpt diff --git a/ext/standard/tests/strings/chop_variation4.phpt b/ext/standard/tests/strings/chop_variation4.phpt Binary files differindex 656e598af3..b674d59f52 100644 --- a/ext/standard/tests/strings/chop_variation4.phpt +++ b/ext/standard/tests/strings/chop_variation4.phpt diff --git a/ext/standard/tests/strings/chop_variation5.phpt b/ext/standard/tests/strings/chop_variation5.phpt index c8c363f00c..1669c359ce 100644 --- a/ext/standard/tests/strings/chop_variation5.phpt +++ b/ext/standard/tests/strings/chop_variation5.phpt @@ -25,20 +25,7 @@ echo "*** Testing chop() : with miscellaneous arguments ***\n"; echo "Done\n"; ?> ---EXPECTF-- -*** Testing chop() : with miscellaneous arguments *** -string(9) "chop test" -string(12) "chop test " -string(17) "chop test " -string(17) "chop test " -string(9) "chop test" -string(10) "chop test " -string(9) "chop test" -string(9) "chop test" -string(9) "chop test" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing chop() : with miscellaneous arguments *** unicode(9) "chop test" unicode(12) "chop test " diff --git a/ext/standard/tests/strings/chunk_split_basic.phpt b/ext/standard/tests/strings/chunk_split_basic.phpt index e5cf2fad72..9e15a2793a 100644 --- a/ext/standard/tests/strings/chunk_split_basic.phpt +++ b/ext/standard/tests/strings/chunk_split_basic.phpt @@ -36,22 +36,7 @@ var_dump( chunk_split($str) ); echo "Done" ?> ---EXPECTF-- -*** Testing chunk_split() : basic functionality *** --- Testing chunk_split() with all possible arguments -- -string(15) "Te##st##in##g##" --- Testing chunk_split() with default ending string -- -string(15) "Te -st -in -g -" --- Testing chunk_split() with default chunklen and ending string -- -string(9) "Testing -" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing chunk_split() : basic functionality *** -- Testing chunk_split() with all possible arguments -- unicode(15) "Te##st##in##g##" diff --git a/ext/standard/tests/strings/chunk_split_variation1.phpt b/ext/standard/tests/strings/chunk_split_variation1.phpt index 80d25dfff7..77c1904774 100644 --- a/ext/standard/tests/strings/chunk_split_variation1.phpt +++ b/ext/standard/tests/strings/chunk_split_variation1.phpt @@ -99,77 +99,6 @@ fclose($fp); --EXPECTF-- *** Testing chunk_split() : with unexpected values for 'str' argument *** -- Iteration 1 -- -string(2) "0 " --- Iteration 2 -- -string(2) "1 " --- Iteration 3 -- -string(8) "12 34 5 " --- Iteration 4 -- -string(8) "-2 34 5 " --- Iteration 5 -- -string(6) "10 .5 " --- Iteration 6 -- -string(8) "-1 0. 5 " --- Iteration 7 -- -string(18) "10 12 34 56 70 00 " --- Iteration 8 -- -string(20) "1. 07 65 43 21 E- 9 " --- Iteration 9 -- -string(5) "0. 5 " --- Iteration 10 -- - -Warning: chunk_split() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 11 -- - -Warning: chunk_split() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 12 -- - -Warning: chunk_split() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 13 -- - -Warning: chunk_split() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 14 -- - -Warning: chunk_split() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 15 -- -string(1) " " --- Iteration 16 -- -string(1) " " --- Iteration 17 -- -string(2) "1 " --- Iteration 18 -- -string(1) " " --- Iteration 19 -- -string(2) "1 " --- Iteration 20 -- -string(1) " " --- Iteration 21 -- -string(1) " " --- Iteration 22 -- -string(1) " " --- Iteration 23 -- -string(9) "st ri ng " --- Iteration 24 -- -string(9) "st ri ng " --- Iteration 25 -- -string(9) "ob je ct " --- Iteration 26 -- -string(1) " " --- Iteration 27 -- -string(1) " " --- Iteration 28 -- - -Warning: chunk_split() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL -Done ---UEXPECTF-- -*** Testing chunk_split() : with unexpected values for 'str' argument *** --- Iteration 1 -- unicode(2) "0 " -- Iteration 2 -- unicode(2) "1 " diff --git a/ext/standard/tests/strings/chunk_split_variation10.phpt b/ext/standard/tests/strings/chunk_split_variation10.phpt index 805bba5ae9..c3927565b1 100644 --- a/ext/standard/tests/strings/chunk_split_variation10.phpt +++ b/ext/standard/tests/strings/chunk_split_variation10.phpt @@ -50,41 +50,7 @@ for($count = 0; $count < count($values); $count++) { echo "Done" ?> ---EXPECTF-- -*** Testing chunk_split() : different single quoted strings as 'ending' *** --- Iteration 0 -- -string(73) "This is to test chunk_split() with various 'single quoted' ending string." --- Iteration 1 -- -string(82) "This is t o test ch unk_split () with v arious 's ingle quo ted' endi ng string . " --- Iteration 2 -- -string(82) "This is tao test chaunk_splita() with vaarious 'saingle quoated' endiang stringa.a" --- Iteration 3 -- -string(127) "This is tENDINGo test chENDINGunk_splitENDING() with vENDINGarious 'sENDINGingle quoENDINGted' endiENDINGng stringENDING.ENDING" --- Iteration 4 -- -string(118) "This is t@#$%^o test ch@#$%^unk_split@#$%^() with v@#$%^arious 's@#$%^ingle quo@#$%^ted' endi@#$%^ng string@#$%^.@#$%^" --- Iteration 5 -- -string(91) "This is t\to test ch\tunk_split\t() with v\tarious 's\tingle quo\tted' endi\tng string\t.\t" --- Iteration 6 -- -string(91) "This is t\no test ch\nunk_split\n() with v\narious 's\ningle quo\nted' endi\nng string\n.\n" --- Iteration 7 -- -string(91) "This is t\ro test ch\runk_split\r() with v\rarious 's\ringle quo\rted' endi\rng string\r.\r" --- Iteration 8 -- -string(109) "This is t\r\no test ch\r\nunk_split\r\n() with v\r\narious 's\r\ningle quo\r\nted' endi\r\nng string\r\n.\r\n" --- Iteration 9 -- -string(91) "This is t\0o test ch\0unk_split\0() with v\0arious 's\0ingle quo\0ted' endi\0ng string\0.\0" --- Iteration 10 -- -string(100) "This is t123o test ch123unk_split123() with v123arious 's123ingle quo123ted' endi123ng string123.123" --- Iteration 11 -- -string(118) "This is t(MSG)o test ch(MSG)unk_split(MSG)() with v(MSG)arious 's(MSG)ingle quo(MSG)ted' endi(MSG)ng string(MSG).(MSG)" --- Iteration 12 -- -string(226) "This is t) ending string (o test ch) ending string (unk_split) ending string (() with v) ending string (arious 's) ending string (ingle quo) ending string (ted' endi) ending string (ng string) ending string (.) ending string (" --- Iteration 13 -- -string(217) "This is t) numbers 1234 (o test ch) numbers 1234 (unk_split) numbers 1234 (() with v) numbers 1234 (arious 's) numbers 1234 (ingle quo) numbers 1234 (ted' endi) numbers 1234 (ng string) numbers 1234 (.) numbers 1234 (" --- Iteration 14 -- -string(226) "This is t) speci@! ch@r$ (o test ch) speci@! ch@r$ (unk_split) speci@! ch@r$ (() with v) speci@! ch@r$ (arious 's) speci@! ch@r$ (ingle quo) speci@! ch@r$ (ted' endi) speci@! ch@r$ (ng string) speci@! ch@r$ (.) speci@! ch@r$ (" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing chunk_split() : different single quoted strings as 'ending' *** -- Iteration 0 -- unicode(73) "This is to test chunk_split() with various 'single quoted' ending string." @@ -116,4 +82,4 @@ unicode(226) "This is t) ending string (o test ch) ending string (unk_split) end unicode(217) "This is t) numbers 1234 (o test ch) numbers 1234 (unk_split) numbers 1234 (() with v) numbers 1234 (arious 's) numbers 1234 (ingle quo) numbers 1234 (ted' endi) numbers 1234 (ng string) numbers 1234 (.) numbers 1234 (" -- Iteration 14 -- unicode(226) "This is t) speci@! ch@r$ (o test ch) speci@! ch@r$ (unk_split) speci@! ch@r$ (() with v) speci@! ch@r$ (arious 's) speci@! ch@r$ (ingle quo) speci@! ch@r$ (ted' endi) speci@! ch@r$ (ng string) speci@! ch@r$ (.) speci@! ch@r$ (" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/chunk_split_variation11.phpt b/ext/standard/tests/strings/chunk_split_variation11.phpt index 4725461098..5f211c06c6 100644 --- a/ext/standard/tests/strings/chunk_split_variation11.phpt +++ b/ext/standard/tests/strings/chunk_split_variation11.phpt @@ -42,58 +42,7 @@ for($count = 0; $count < count($values); $count++) { echo "Done" ?> ---EXPECTF-- -*** Testing chunk_split() : different values for 'ending' with heredoc 'str'*** --- Iteration 1 -- -string(113) "This is heredoc string with and -.It also contains -sPeci@! ch@r$ :) & numbers 222.This is \k wrong escape char." --- Iteration 2 -- -string(132) "This i s here doc st ring w ith and -. It als o cont ains -s Peci@! ch@r$ :) & number s 222. This i s \k w rong e scape char. " --- Iteration 3 -- -string(132) "This ias hereadoc staring waith aand -.aIt alsao contaains -saPeci@!a ch@r$a :) & anumberas 222.aThis ias \k warong eascape achar.a" --- Iteration 4 -- -string(227) "This iENDINGs hereENDINGdoc stENDINGring wENDINGith ENDINGand -.ENDINGIt alsENDINGo contENDINGains -sENDINGPeci@!ENDING ch@r$ENDING :) & ENDINGnumberENDINGs 222.ENDINGThis iENDINGs \k wENDINGrong eENDINGscape ENDINGchar.ENDING" --- Iteration 5 -- -string(151) "This i -s here -doc st -ring w -ith -and -. -It als -o cont -ains -s -Peci@! - ch@r$ - :) & -number -s 222. -This i -s \k w -rong e -scape -char. -" --- Iteration 6 -- -string(170) "This i123s here123doc st123ring w123ith 123and -.123It als123o cont123ains -s123Peci@!123 ch@r$123 :) & 123number123s 222.123This i123s \k w123rong e123scape 123char.123" --- Iteration 7 -- -string(398) "This i)speci@! ch@r$(s here)speci@! ch@r$(doc st)speci@! ch@r$(ring w)speci@! ch@r$(ith )speci@! ch@r$(and -.)speci@! ch@r$(It als)speci@! ch@r$(o cont)speci@! ch@r$(ains -s)speci@! ch@r$(Peci@!)speci@! ch@r$( ch@r$)speci@! ch@r$( :) & )speci@! ch@r$(number)speci@! ch@r$(s 222.)speci@! ch@r$(This i)speci@! ch@r$(s \k w)speci@! ch@r$(rong e)speci@! ch@r$(scape )speci@! ch@r$(char.)speci@! ch@r$(" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing chunk_split() : different values for 'ending' with heredoc 'str'*** -- Iteration 1 -- unicode(113) "This is heredoc string with and diff --git a/ext/standard/tests/strings/chunk_split_variation12.phpt b/ext/standard/tests/strings/chunk_split_variation12.phpt index b440f56cd3..61bbe04517 100644 --- a/ext/standard/tests/strings/chunk_split_variation12.phpt +++ b/ext/standard/tests/strings/chunk_split_variation12.phpt @@ -83,68 +83,7 @@ foreach($heredoc_arr as $value) { echo "Done" ?> ---EXPECTF-- -*** Testing chunk_split() : different heredoc strings for 'ending' argument *** --- Iteration 1 -- -string(102) "This is str to check with heredoc ending.This contains, -speci@! ch@r$ __with wrong \k escape char 222." --- Iteration 2 -- -string(102) "This is str to check with heredoc ending.This contains, -speci@! ch@r$ __with wrong \k escape char 222." --- Iteration 3 -- -string(113) "This is star to checka with hereadoc endinga.This contaains, -specai@! ch@r$ a__with wroang \k escaape char 22a2.a" --- Iteration 4 -- -string(421) "This is stThis is simple heredoc stringr to checkThis is simple heredoc string with hereThis is simple heredoc stringdoc endingThis is simple heredoc string.This contThis is simple heredoc stringains, -specThis is simple heredoc stringi@! ch@r$ This is simple heredoc string__with wroThis is simple heredoc stringng \k escaThis is simple heredoc stringpe char 22This is simple heredoc string2.This is simple heredoc string" --- Iteration 5 -- -string(762) "This is stThis is to check chunk_split -function with multiline -heredocr to checkThis is to check chunk_split -function with multiline -heredoc with hereThis is to check chunk_split -function with multiline -heredocdoc endingThis is to check chunk_split -function with multiline -heredoc.This contThis is to check chunk_split -function with multiline -heredocains, -specThis is to check chunk_split -function with multiline -heredoci@! ch@r$ This is to check chunk_split -function with multiline -heredoc__with wroThis is to check chunk_split -function with multiline -heredocng \k escaThis is to check chunk_split -function with multiline -heredocpe char 22This is to check chunk_split -function with multiline -heredoc2.This is to check chunk_split -function with multiline -heredoc" --- Iteration 6 -- -string(443) "This is stThis checks with $, %, &, charsr to checkThis checks with $, %, &, chars with hereThis checks with $, %, &, charsdoc endingThis checks with $, %, &, chars.This contThis checks with $, %, &, charsains, -specThis checks with $, %, &, charsi@! ch@r$ This checks with $, %, &, chars__with wroThis checks with $, %, &, charsng \k escaThis checks with $, %, &, charspe char 22This checks with $, %, &, chars2.This checks with $, %, &, chars" --- Iteration 7 -- -string(487) "This is stThis checks and -white space charsr to checkThis checks and -white space chars with hereThis checks and -white space charsdoc endingThis checks and -white space chars.This contThis checks and -white space charsains, -specThis checks and -white space charsi@! ch@r$ This checks and -white space chars__with wroThis checks and -white space charsng \k escaThis checks and -white space charspe char 22This checks and -white space chars2.This checks and -white space chars" --- Iteration 8 -- -string(597) "This is st"To check " in heredoc".I'm sure it'll \work!r to check"To check " in heredoc".I'm sure it'll \work! with here"To check " in heredoc".I'm sure it'll \work!doc ending"To check " in heredoc".I'm sure it'll \work!.This cont"To check " in heredoc".I'm sure it'll \work!ains, -spec"To check " in heredoc".I'm sure it'll \work!i@! ch@r$ "To check " in heredoc".I'm sure it'll \work!__with wro"To check " in heredoc".I'm sure it'll \work!ng \k esca"To check " in heredoc".I'm sure it'll \work!pe char 22"To check " in heredoc".I'm sure it'll \work!2."To check " in heredoc".I'm sure it'll \work!" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing chunk_split() : different heredoc strings for 'ending' argument *** -- Iteration 1 -- unicode(102) "This is str to check with heredoc ending.This contains, @@ -203,4 +142,4 @@ white space chars" -- Iteration 8 -- unicode(597) "This is st"To check " in heredoc".I'm sure it'll \work!r to check"To check " in heredoc".I'm sure it'll \work! with here"To check " in heredoc".I'm sure it'll \work!doc ending"To check " in heredoc".I'm sure it'll \work!.This cont"To check " in heredoc".I'm sure it'll \work!ains, spec"To check " in heredoc".I'm sure it'll \work!i@! ch@r$ "To check " in heredoc".I'm sure it'll \work!__with wro"To check " in heredoc".I'm sure it'll \work!ng \k esca"To check " in heredoc".I'm sure it'll \work!pe char 22"To check " in heredoc".I'm sure it'll \work!2."To check " in heredoc".I'm sure it'll \work!" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/chunk_split_variation13.phpt b/ext/standard/tests/strings/chunk_split_variation13.phpt index f019f0d271..444bbc2790 100644 --- a/ext/standard/tests/strings/chunk_split_variation13.phpt +++ b/ext/standard/tests/strings/chunk_split_variation13.phpt @@ -28,20 +28,7 @@ for($count = 0; $count < count($values); $count++) { echo "Done" ?> ---EXPECTF-- -*** Testing chunk_split() : default 'chunklen' with long string 'str' *** --- Iteration 0 -- -string(85) "1234567890123456789012345678901234567890123456789012345678901234567890123456 -78901 -" --- Iteration 1 -- -string(217) "1234567890123456789012345678901234567890123456789012345678901234567890123456 -7890123456789012345678901234567890123456789012345678901234567890123456789012 -34567890123456789012345678901234567890123456789012345678901 -" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing chunk_split() : default 'chunklen' with long string 'str' *** -- Iteration 0 -- unicode(85) "1234567890123456789012345678901234567890123456789012345678901234567890123456 @@ -52,4 +39,4 @@ unicode(217) "123456789012345678901234567890123456789012345678901234567890123456 7890123456789012345678901234567890123456789012345678901234567890123456789012 34567890123456789012345678901234567890123456789012345678901 " -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/chunk_split_variation2.phpt b/ext/standard/tests/strings/chunk_split_variation2.phpt index a827415b34..005e4df86d 100644 --- a/ext/standard/tests/strings/chunk_split_variation2.phpt +++ b/ext/standard/tests/strings/chunk_split_variation2.phpt @@ -92,97 +92,6 @@ fclose($fp); --EXPECTF-- *** Testing chunk_split() : with unexpected values for 'chunklen' argument *** -- Iteration 1 -- -string(28) "This is ch*uklen vari*ation*" --- Iteration 2 -- - -Warning: chunk_split(): Chunk length should be greater than zero in %schunk_split_variation2.php on line %d -bool(false) --- Iteration 3 -- -string(26) "This is chuklen variation*" --- Iteration 4 -- - -Warning: chunk_split(): Chunk length should be greater than zero in %schunk_split_variation2.php on line %d -bool(false) --- Iteration 5 -- - -Warning: chunk_split(): Chunk length should be greater than zero in %schunk_split_variation2.php on line %d -bool(false) --- Iteration 6 -- - -Warning: chunk_split() expects parameter 2 to be long, array given in %schunk_split_variation2.php on line %d -NULL --- Iteration 7 -- - -Warning: chunk_split() expects parameter 2 to be long, array given in %schunk_split_variation2.php on line %d -NULL --- Iteration 8 -- - -Warning: chunk_split() expects parameter 2 to be long, array given in %schunk_split_variation2.php on line %d -NULL --- Iteration 9 -- - -Warning: chunk_split() expects parameter 2 to be long, array given in %schunk_split_variation2.php on line %d -NULL --- Iteration 10 -- - -Warning: chunk_split() expects parameter 2 to be long, array given in %schunk_split_variation2.php on line %d -NULL --- Iteration 11 -- - -Warning: chunk_split(): Chunk length should be greater than zero in %schunk_split_variation2.php on line %d -bool(false) --- Iteration 12 -- - -Warning: chunk_split(): Chunk length should be greater than zero in %schunk_split_variation2.php on line %d -bool(false) --- Iteration 13 -- -string(50) "T*h*i*s* *i*s* *c*h*u*k*l*e*n* *v*a*r*i*a*t*i*o*n*" --- Iteration 14 -- - -Warning: chunk_split(): Chunk length should be greater than zero in %schunk_split_variation2.php on line %d -bool(false) --- Iteration 15 -- -string(50) "T*h*i*s* *i*s* *c*h*u*k*l*e*n* *v*a*r*i*a*t*i*o*n*" --- Iteration 16 -- - -Warning: chunk_split(): Chunk length should be greater than zero in %schunk_split_variation2.php on line %d -bool(false) --- Iteration 17 -- - -Warning: chunk_split() expects parameter 2 to be long, string given in %schunk_split_variation2.php on line %d -NULL --- Iteration 18 -- - -Warning: chunk_split() expects parameter 2 to be long, string given in %schunk_split_variation2.php on line %d -NULL --- Iteration 19 -- - -Warning: chunk_split() expects parameter 2 to be long, string given in %schunk_split_variation2.php on line %d -NULL --- Iteration 20 -- - -Warning: chunk_split() expects parameter 2 to be long, string given in %schunk_split_variation2.php on line %d -NULL --- Iteration 21 -- - -Warning: chunk_split() expects parameter 2 to be long, object given in %schunk_split_variation2.php on line %d -NULL --- Iteration 22 -- - -Warning: chunk_split(): Chunk length should be greater than zero in %schunk_split_variation2.php on line %d -bool(false) --- Iteration 23 -- - -Warning: chunk_split(): Chunk length should be greater than zero in %schunk_split_variation2.php on line %d -bool(false) --- Iteration 24 -- - -Warning: chunk_split() expects parameter 2 to be long, resource given in %schunk_split_variation2.php on line %d -NULL -Done ---UEXPECTF-- -*** Testing chunk_split() : with unexpected values for 'chunklen' argument *** --- Iteration 1 -- unicode(28) "This is ch*uklen vari*ation*" -- Iteration 2 -- diff --git a/ext/standard/tests/strings/chunk_split_variation3.phpt b/ext/standard/tests/strings/chunk_split_variation3.phpt index 34ec259764..6e774a7bbc 100644 --- a/ext/standard/tests/strings/chunk_split_variation3.phpt +++ b/ext/standard/tests/strings/chunk_split_variation3.phpt @@ -94,73 +94,6 @@ fclose($fp); --EXPECTF-- *** Testing chunk_split() : unexpected values for 'ending' *** -- Iteration 1 -- -string(28) "This0 is 0simp0le s0trin0g.0" --- Iteration 2 -- -string(28) "This1 is 1simp1le s1trin1g.1" --- Iteration 3 -- -string(52) "This12345 is 12345simp12345le s12345trin12345g.12345" --- Iteration 4 -- -string(52) "This-2345 is -2345simp-2345le s-2345trin-2345g.-2345" --- Iteration 5 -- -string(46) "This10.5 is 10.5simp10.5le s10.5trin10.5g.10.5" --- Iteration 6 -- -string(52) "This-10.5 is -10.5simp-10.5le s-10.5trin-10.5g.-10.5" --- Iteration 7 -- -string(94) "This101234560000 is 101234560000simp101234560000le s101234560000trin101234560000g.101234560000" --- Iteration 8 -- -string(100) "This1.07654321E-9 is 1.07654321E-9simp1.07654321E-9le s1.07654321E-9trin1.07654321E-9g.1.07654321E-9" --- Iteration 9 -- -string(40) "This0.5 is 0.5simp0.5le s0.5trin0.5g.0.5" --- Iteration 10 -- - -Warning: chunk_split() expects parameter 3 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 11 -- - -Warning: chunk_split() expects parameter 3 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 12 -- - -Warning: chunk_split() expects parameter 3 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 13 -- - -Warning: chunk_split() expects parameter 3 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 14 -- - -Warning: chunk_split() expects parameter 3 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 15 -- -string(22) "This is simple string." --- Iteration 16 -- -string(22) "This is simple string." --- Iteration 17 -- -string(28) "This1 is 1simp1le s1trin1g.1" --- Iteration 18 -- -string(22) "This is simple string." --- Iteration 19 -- -string(28) "This1 is 1simp1le s1trin1g.1" --- Iteration 20 -- -string(22) "This is simple string." --- Iteration 21 -- -string(22) "This is simple string." --- Iteration 22 -- -string(22) "This is simple string." --- Iteration 23 -- -string(58) "Thisobject is objectsimpobjectle sobjecttrinobjectg.object" --- Iteration 24 -- -string(22) "This is simple string." --- Iteration 25 -- -string(22) "This is simple string." --- Iteration 26 -- - -Warning: chunk_split() expects parameter 3 to be string (Unicode or binary), resource given in %s on line %d -NULL -Done ---UEXPECTF-- -*** Testing chunk_split() : unexpected values for 'ending' *** --- Iteration 1 -- unicode(28) "This0 is 0simp0le s0trin0g.0" -- Iteration 2 -- unicode(28) "This1 is 1simp1le s1trin1g.1" diff --git a/ext/standard/tests/strings/chunk_split_variation4.phpt b/ext/standard/tests/strings/chunk_split_variation4.phpt index e7918a7414..2bad34002b 100644 --- a/ext/standard/tests/strings/chunk_split_variation4.phpt +++ b/ext/standard/tests/strings/chunk_split_variation4.phpt @@ -83,99 +83,7 @@ foreach($heredoc_arr as $str) { echo "Done" ?> ---EXPECTF-- -*** Testing chunk_split() : heredoc strings as 'str' argument *** --- Iteration 1 -- -string(2) " -" --- Iteration 2 -- -string(2) " -" --- Iteration 3 -- -string(3) "a -" --- Iteration 4 -- -string(45) "This - is -simp -le h -ered -oc s -trin -g -" --- Iteration 5 -- -string(90) "This - is -to c -heck - chu -nk_s -plit - -fun -ctio -n wi -th m -ulti -line - -her -edoc -" --- Iteration 6 -- -string(59) "This - che -cks -here -doc -with - $, -%, & -, ch -ars -" --- Iteration 7 -- -string(59) "This - che -cks - chu -nk_s -plit -() -E -scap -e -ch -ars -" --- Iteration 8 -- -string(117) ""To -chec -k " -in h -ered -oc" - -I'm -sure - it' -ll w -ork -also - wit -h \ - -whic -h is - sin -gle -slas -h -" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing chunk_split() : heredoc strings as 'str' argument *** -- Iteration 1 -- unicode(2) " diff --git a/ext/standard/tests/strings/chunk_split_variation5.phpt b/ext/standard/tests/strings/chunk_split_variation5.phpt Binary files differindex f8e84a9ca4..2c825390eb 100644 --- a/ext/standard/tests/strings/chunk_split_variation5.phpt +++ b/ext/standard/tests/strings/chunk_split_variation5.phpt diff --git a/ext/standard/tests/strings/chunk_split_variation6.phpt b/ext/standard/tests/strings/chunk_split_variation6.phpt index f1cbc2d647..e607cef883 100644 --- a/ext/standard/tests/strings/chunk_split_variation6.phpt +++ b/ext/standard/tests/strings/chunk_split_variation6.phpt @@ -44,37 +44,7 @@ for($count = 0;$count < count($values);$count++) { echo "Done" ?> ---EXPECTF-- -*** Testing chunk_split() : with different single quoted 'str' *** --- Iteration 0 -- -string(3) "):(" --- Iteration 1 -- -string(4) " ):(" --- Iteration 2 -- -string(30) "This is):( simple):( string):(" --- Iteration 3 -- -string(35) "It's st):(ring wi):(th quot):(es):(" --- Iteration 4 -- -string(46) "This co):(ntains ):(@ # $ %):( ^ & ch):(ars):(" --- Iteration 5 -- -string(59) "This st):(ring\tc):(ontains):(\rwhite):( space\):(nchars):(" --- Iteration 6 -- -string(47) "This is):( string):( with 1):(234 num):(bers):(" --- Iteration 7 -- -string(68) "This is):( string):( with \):(0 and "):(.chr(0)):(."null ):(chars):(" --- Iteration 8 -- -string(74) "This is):( string):( with ):( multi):(ple ):( sp):(ace cha):(r):(" --- Iteration 9 -- -string(46) "This is):( to che):(ck stri):(ng with):( ()):(" --- Iteration 10 -- -string(44) " Te):(sting w):(ith ):(Tab ):( ):(" --- Iteration 11 -- -string(55) "Testing):( invali):(d \k an):(d \m es):(cape ch):(ar):(" --- Iteration 12 -- -string(46) "This is):( to che):(ck with):( \n and):( \t):(" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing chunk_split() : with different single quoted 'str' *** -- Iteration 0 -- unicode(3) "):(" @@ -102,4 +72,4 @@ unicode(44) " Te):(sting w):(ith ):(Tab ):( ):(" unicode(55) "Testing):( invali):(d \k an):(d \m es):(cape ch):(ar):(" -- Iteration 12 -- unicode(46) "This is):( to che):(ck with):( \n and):( \t):(" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/chunk_split_variation7.phpt b/ext/standard/tests/strings/chunk_split_variation7.phpt Binary files differindex 1b1afd3f8b..55f6deb303 100644 --- a/ext/standard/tests/strings/chunk_split_variation7.phpt +++ b/ext/standard/tests/strings/chunk_split_variation7.phpt diff --git a/ext/standard/tests/strings/chunk_split_variation8.phpt b/ext/standard/tests/strings/chunk_split_variation8.phpt index 2d82c4945c..8ee5b80a5d 100644 --- a/ext/standard/tests/strings/chunk_split_variation8.phpt +++ b/ext/standard/tests/strings/chunk_split_variation8.phpt @@ -54,46 +54,6 @@ echo "Done" Warning: chunk_split(): Chunk length should be greater than zero in %s on line %d bool(false) -- Iteration 2 -- -string(504) "T:::h:::i:::s:::':::s::: :::h:::e:::r:::e:::d:::o:::c::: :::s:::t:::r:::i:::n:::g::: :::w:::i:::t:::h::: ::: ::: :::a:::n:::d::: ::: -::: :::w:::h:::i:::t:::e::: :::s:::p:::a:::c:::e::: :::c:::h:::a:::r:::.::: -:::I:::t::: :::h:::a:::s::: :::_:::s:::p:::e:::c:::i:::@:::l::: :::c:::h:::@:::r:::$::: :::2:::2:::2:::2::: :::!:::!:::!:::N:::o:::w::: :::\:::k::: :::a:::s::: :::e:::s:::c:::a:::p:::e::: :::c:::h:::a:::r::: :::t:::o::: :::t:::e:::s:::t::: -:::c:::h:::u:::n:::k:::_:::s:::p:::l:::i:::t:::(:::):::" --- Iteration 3 -- - -Warning: chunk_split(): Chunk length should be greater than zero in %s on line %d -bool(false) --- Iteration 4 -- -string(129) "This's heredoc string with and - white space char. -It has _speci@l ch@r$ 2222 !!!Now \k as escape char to test -chunk_split():::" --- Iteration 5 -- -string(141) "This's heredoc string with::: and - white space char.::: -It has _speci@l ch@r$ 222:::2 !!!Now \k as escape char::: to test -chunk_split():::" --- Iteration 6 -- -string(129) "This's heredoc string with and - white space char. -It has _speci@l ch@r$ 2222 !!!Now \k as escape char to test -chunk_split():::" --- Iteration 7 -- -string(129) "This's heredoc string with and - white space char. -It has _speci@l ch@r$ 2222 !!!Now \k as escape char to test -chunk_split():::" --- Iteration 8 -- - -Warning: chunk_split(): Chunk length should be greater than zero in %s on line %d -bool(false) -Done ---UEXPECTF-- -*** Testing chunk_split() : different 'chunklen' with heredoc 'str' *** --- Iteration 1 -- - -Warning: chunk_split(): Chunk length should be greater than zero in %s on line %d -bool(false) --- Iteration 2 -- unicode(504) "T:::h:::i:::s:::':::s::: :::h:::e:::r:::e:::d:::o:::c::: :::s:::t:::r:::i:::n:::g::: :::w:::i:::t:::h::: ::: ::: :::a:::n:::d::: ::: ::: :::w:::h:::i:::t:::e::: :::s:::p:::a:::c:::e::: :::c:::h:::a:::r:::.::: :::I:::t::: :::h:::a:::s::: :::_:::s:::p:::e:::c:::i:::@:::l::: :::c:::h:::@:::r:::$::: :::2:::2:::2:::2::: :::!:::!:::!:::N:::o:::w::: :::\:::k::: :::a:::s::: :::e:::s:::c:::a:::p:::e::: :::c:::h:::a:::r::: :::t:::o::: :::t:::e:::s:::t::: @@ -127,4 +87,3 @@ chunk_split():::" Warning: chunk_split(): Chunk length should be greater than zero in %s on line %d bool(false) Done - diff --git a/ext/standard/tests/strings/chunk_split_variation9.phpt b/ext/standard/tests/strings/chunk_split_variation9.phpt Binary files differindex 5744171656..ee6b85c185 100644 --- a/ext/standard/tests/strings/chunk_split_variation9.phpt +++ b/ext/standard/tests/strings/chunk_split_variation9.phpt diff --git a/ext/standard/tests/strings/convert_cyr_string.phpt b/ext/standard/tests/strings/convert_cyr_string.phpt index 95cf5ae0f4..9bc56c9547 100644 --- a/ext/standard/tests/strings/convert_cyr_string.phpt +++ b/ext/standard/tests/strings/convert_cyr_string.phpt @@ -19,36 +19,7 @@ var_dump(convert_cyr_string((binary)"", "d", "i")); echo "Done\n"; ?> ---EXPECTF-- -Warning: convert_cyr_string() expects exactly 3 parameters, 0 given in %s on line %d -NULL - -Warning: convert_cyr_string() expects exactly 3 parameters, 1 given in %s on line %d -NULL - -Warning: convert_cyr_string() expects exactly 3 parameters, 2 given in %s on line %d -NULL - -Warning: convert_cyr_string(): Unknown source charset: in %s on line %d - -Warning: convert_cyr_string(): Unknown destination charset: in %s on line %d -string(0) "" - -Warning: convert_cyr_string() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: convert_cyr_string(): Unknown source charset: q in %s on line %d -string(6) "[[[[[[" -string(6) "[[[[[[" -string(6) "[[[[[[" -string(6) "[[[[[[" -string(6) "[[[[[[" - -Warning: convert_cyr_string(): Unknown destination charset: q in %s on line %d -string(6) "[[[[[[" -string(0) "" -Done ---UEXPECTF-- +--EXPECTF-- Warning: convert_cyr_string() expects exactly 3 parameters, 0 given in %s on line %d NULL diff --git a/ext/standard/tests/strings/count_chars.phpt b/ext/standard/tests/strings/count_chars.phpt index 2d510e23b6..cc04ee0dd4 100644 --- a/ext/standard/tests/strings/count_chars.phpt +++ b/ext/standard/tests/strings/count_chars.phpt @@ -16,34 +16,7 @@ echo $a = count_chars($s, 3), "\n"; var_dump((int) strlen(count_chars($s, 4)) == 256-strlen($a)); ?> ---EXPECT-- -000000000000000000000000000000001200000000000010000000000000000000000000000000000000000000000000003000120111121083202362220000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -Array -( - [32] => 12 - [45] => 1 - [97] => 3 - [101] => 12 - [103] => 1 - [104] => 1 - [105] => 1 - [106] => 1 - [107] => 2 - [108] => 1 - [110] => 8 - [111] => 3 - [112] => 2 - [114] => 2 - [115] => 3 - [116] => 6 - [117] => 2 - [118] => 2 - [119] => 2 -) -000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 - -aeghijklnoprstuvw -bool(true) ---UEXPECTF-- +--EXPECTF-- Warning: count_chars(): Only mode=1 is supported with Unicode strings in %s on line %d Warning: implode(): Argument must be an array in %s on line %d diff --git a/ext/standard/tests/strings/crc32_basic.phpt b/ext/standard/tests/strings/crc32_basic.phpt index 8315cc102f..61dc81b37b 100644 --- a/ext/standard/tests/strings/crc32_basic.phpt +++ b/ext/standard/tests/strings/crc32_basic.phpt @@ -34,13 +34,7 @@ printf("%u\n", crc32($str) ); echo "Done"; ?> ---EXPECTF-- -*** Testing crc32() : basic functionality *** -bool(true) -256895812 -Done - ---UEXPECTF-- +--EXPECT-- *** Testing crc32() : basic functionality *** bool(true) 256895812 diff --git a/ext/standard/tests/strings/crc32_error.phpt b/ext/standard/tests/strings/crc32_error.phpt index a499ea0ada..45378204cd 100644 --- a/ext/standard/tests/strings/crc32_error.phpt +++ b/ext/standard/tests/strings/crc32_error.phpt @@ -45,17 +45,3 @@ NULL Warning: crc32() expects exactly 1 parameter, 2 given in %s on line %d NULL Done - ---UEXPECTF-- -*** Testing crc32() : error conditions *** - --- Testing crc32() function with Zero arguments -- - -Warning: crc32() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing crc32() function with more than expected no. of arguments -- - -Warning: crc32() expects exactly 1 parameter, 2 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/crc32_variation1.phpt b/ext/standard/tests/strings/crc32_variation1.phpt index e72734cf37..9f52045b7a 100644 --- a/ext/standard/tests/strings/crc32_variation1.phpt +++ b/ext/standard/tests/strings/crc32_variation1.phpt @@ -134,103 +134,6 @@ int(-2036403827) -- Iteration 10 -- -Warning: crc32() expects parameter 1 to be string, array given in %s on line %d -NULL - --- Iteration 11 -- - -Warning: crc32() expects parameter 1 to be string, array given in %s on line %d -NULL - --- Iteration 12 -- - -Warning: crc32() expects parameter 1 to be string, array given in %s on line %d -NULL - --- Iteration 13 -- - -Warning: crc32() expects parameter 1 to be string, array given in %s on line %d -NULL - --- Iteration 14 -- - -Warning: crc32() expects parameter 1 to be string, array given in %s on line %d -NULL - --- Iteration 15 -- -int(0) - --- Iteration 16 -- -int(0) - --- Iteration 17 -- -int(-2082672713) - --- Iteration 18 -- -int(0) - --- Iteration 19 -- -int(-2082672713) - --- Iteration 20 -- -int(0) - --- Iteration 21 -- -int(0) - --- Iteration 22 -- -int(0) - --- Iteration 23 -- -int(-1465013268) - --- Iteration 24 -- -int(0) - --- Iteration 25 -- -int(0) - --- Iteration 26 -- - -Warning: crc32() expects parameter 1 to be string, resource given in %s on line %d -NULL -Done ---UEXPECTF-- -*** Testing crc32() : with unexpected values for str argument *** - -Notice: Undefined variable: undefined_var in %s on line %d - -Notice: Undefined variable: unset_var in %s on line %d - --- Iteration 1 -- -int(-186917087) - --- Iteration 2 -- -int(-2082672713) - --- Iteration 3 -- -int(-873121252) - --- Iteration 4 -- -int(1860518047) - --- Iteration 5 -- -int(269248583) - --- Iteration 6 -- -int(-834950157) - --- Iteration 7 -- -int(-965354630) - --- Iteration 8 -- -int(1376932222) - --- Iteration 9 -- -int(-2036403827) - --- Iteration 10 -- - Warning: crc32() expects parameter 1 to be binary string, array given in %s on line %d NULL diff --git a/ext/standard/tests/strings/crc32_variation2.phpt b/ext/standard/tests/strings/crc32_variation2.phpt index 12db012ec3..d7b0794bfd 100644 --- a/ext/standard/tests/strings/crc32_variation2.phpt +++ b/ext/standard/tests/strings/crc32_variation2.phpt @@ -72,83 +72,7 @@ foreach($string_array as $str) { echo "Done"; ?> ---EXPECTF-- -*** Testing crc32() : with different strings in single quotes *** - --- Iteration 1 -- -int(0) - --- Iteration 2 -- -int(-378745019) - --- Iteration 3 -- -int(222957957) - --- Iteration 4 -- -int(-2015000997) - --- Iteration 5 -- -int(1234261835) - --- Iteration 6 -- -int(-1867296214) - --- Iteration 7 -- -int(1048577080) - --- Iteration 8 -- -int(2129739710) - --- Iteration 9 -- -int(-1633247628) - --- Iteration 10 -- -int(135755572) - --- Iteration 11 -- -int(27384015) - --- Iteration 12 -- -int(-497244052) - --- Iteration 13 -- -int(-2065897232) - --- Iteration 14 -- -int(243585859) - --- Iteration 15 -- -int(-856440615) - --- Iteration 16 -- -int(647088397) - --- Iteration 17 -- -int(523630053) - --- Iteration 18 -- -int(-2062229676) - --- Iteration 19 -- -int(1169918910) - --- Iteration 20 -- -int(-618551732) - --- Iteration 21 -- -int(-1828940657) - --- Iteration 22 -- -int(-1654468652) - --- Iteration 23 -- -int(-1648442217) - --- Iteration 24 -- -int(1431761713) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing crc32() : with different strings in single quotes *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/crc32_variation3.phpt b/ext/standard/tests/strings/crc32_variation3.phpt index 40db82f660..82c41f3087 100644 --- a/ext/standard/tests/strings/crc32_variation3.phpt +++ b/ext/standard/tests/strings/crc32_variation3.phpt @@ -151,83 +151,3 @@ int(0) -- Iteration 24 -- int(1431761713) Done - ---UEXPECTF-- -*** Testing crc32() : with different strings in double quotes *** - -Notice: Undefined variable: hello in %s on line %d - -Notice: Undefined variable: world in %s on line %d - --- Iteration 1 -- -int(0) - --- Iteration 2 -- -int(-378745019) - --- Iteration 3 -- -int(222957957) - --- Iteration 4 -- -int(-2015000997) - --- Iteration 5 -- -int(1234261835) - --- Iteration 6 -- -int(-1867296214) - --- Iteration 7 -- -int(1048577080) - --- Iteration 8 -- -int(2129739710) - --- Iteration 9 -- -int(-1633247628) - --- Iteration 10 -- -int(1191242624) - --- Iteration 11 -- -int(603128807) - --- Iteration 12 -- -int(-525789576) - --- Iteration 13 -- -int(770262395) - --- Iteration 14 -- -int(243585859) - --- Iteration 15 -- -int(-986324846) - --- Iteration 16 -- -int(-1417857067) - --- Iteration 17 -- -int(523630053) - --- Iteration 18 -- -int(-503915034) - --- Iteration 19 -- -int(-254912432) - --- Iteration 20 -- -int(-1581578467) - --- Iteration 21 -- -int(-1828940657) - --- Iteration 22 -- -int(-1654468652) - --- Iteration 23 -- -int(0) - --- Iteration 24 -- -int(1431761713) -Done diff --git a/ext/standard/tests/strings/crc32_variation4.phpt b/ext/standard/tests/strings/crc32_variation4.phpt index aa3990fec8..ffab0ca908 100644 --- a/ext/standard/tests/strings/crc32_variation4.phpt +++ b/ext/standard/tests/strings/crc32_variation4.phpt @@ -88,35 +88,7 @@ foreach($heredoc_strings as $str) { echo "Done"; ?> ---EXPECTF-- -*** Testing crc32() : with different heredoc strings *** - --- Iteration 1 -- -int(0) - --- Iteration 2 -- -int(1541608299) - --- Iteration 3 -- -int(1588851550) - --- Iteration 4 -- -int(-1726108239) - --- Iteration 5 -- -int(-1847303891) - --- Iteration 6 -- -int(-1260053120) - --- Iteration 7 -- -int(-1718044186) - --- Iteration 8 -- -int(1646793751) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing crc32() : with different heredoc strings *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/dirname_basic.phpt b/ext/standard/tests/strings/dirname_basic.phpt index 6190aca20e..168149ff18 100644 --- a/ext/standard/tests/strings/dirname_basic.phpt +++ b/ext/standard/tests/strings/dirname_basic.phpt @@ -64,96 +64,6 @@ echo "Done\n"; \*\*\* Testing basic operations \*\*\* --Iteration 1 -- -string\(1\) "." - ---Iteration 2 -- -string\(4\) "(\\|\/)foo" - ---Iteration 3 -- -string\(3\) "foo" - ---Iteration 4 -- -string\(1\) "(\\|\/)" - ---Iteration 5 -- -string\(1\) "." - ---Iteration 6 -- -string\(1\) "(\\|\/)" - ---Iteration 7 -- -string\(4\) "(\\|\/)foo" - ---Iteration 8 -- -string\(3\) "foo" - ---Iteration 9 -- -string\(1\) "(\\|\/)" - ---Iteration 10 -- -string\(4\) "(\\|\/)foo" - ---Iteration 11 -- -string\(3\) "foo" - ---Iteration 12 -- -string\(1\) "." - ---Iteration 13 -- -string\(1\) "." - ---Iteration 14 -- -string\(1\) "(\\|\/)" - ---Iteration 15 -- -string\(1\) "(\\|\/)" - ---Iteration 16 -- -string\(4\) "(\\|\/)foo" - ---Iteration 17 -- -string\(3\) "foo" - ---Iteration 18 -- -string\(1\) "(\\|\/)" - ---Iteration 19 -- -string\(1\) "(\\|\/)" - ---Iteration 20 -- -string\(1\) "." - ---Iteration 21 -- -string\(4\) "(\\|\/)foo" - ---Iteration 22 -- -string\(1\) "." - ---Iteration 23 -- -string\(4\) "(\\|\/)foo" - ---Iteration 24 -- -string\(3\) "foo" - ---Iteration 25 -- -string\(3\) "foo" - ---Iteration 26 -- -string\(4\) "(\\|\/)foo" - ---Iteration 27 -- -string\(4\) "(\\|\/)foo" - ---Iteration 28 -- -string\(3\) "foo" - ---Iteration 29 -- -string\(8\) "(\\|\/)foo(\\|\/)bar" -Done ---UEXPECTREGEX-- -\*\*\* Testing basic operations \*\*\* - ---Iteration 1 -- unicode\(1\) "." --Iteration 2 -- diff --git a/ext/standard/tests/strings/dirname_error.phpt b/ext/standard/tests/strings/dirname_error.phpt index 8396b34d55..bf6310283b 100644 --- a/ext/standard/tests/strings/dirname_error.phpt +++ b/ext/standard/tests/strings/dirname_error.phpt @@ -23,12 +23,3 @@ NULL Warning: dirname() expects exactly 1 parameter, 2 given in %s on line %d NULL Done ---UEXPECTF-- -*** Testing error conditions *** - -Warning: dirname() expects exactly 1 parameter, 0 given in %s on line %d -NULL - -Warning: dirname() expects exactly 1 parameter, 2 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/dirname_variation.phpt b/ext/standard/tests/strings/dirname_variation.phpt index d81acf61ec..3a41881150 100644 --- a/ext/standard/tests/strings/dirname_variation.phpt +++ b/ext/standard/tests/strings/dirname_variation.phpt @@ -70,81 +70,6 @@ echo "Done\n"; \*\*\* Testing possible variations in path \*\*\* --Iteration 1 -- -string\(11\) "~(\\|\/)home(\\|\/)user" - ---Iteration 2 -- -string\(11\) "~(\\|\/)home(\\|\/)user" - ---Iteration 3 -- -string\(11\) "~(\\|\/)home(\\|\/)user" - ---Iteration 4 -- -string\(11\) "~(\\|\/)home(\\|\/)user" - ---Iteration 5 -- -string\(19\) "hostname:(\\|\/)home(\\|\/)user" - ---Iteration 6 -- -string\(19\) "hostname:(\\|\/)home(\\|\/)user" - ---Iteration 7 -- -string\(19\) "hostname:(\\|\/)home(\\|\/)user" - ---Iteration 8 -- -string\(19\) "hostname:(\\|\/)home(\\|\/)user" - ---Iteration 9 -- -string\(19\) "hostname:(\\|\/)home(\\|\/)user" - ---Iteration 10 -- -string\(19\) "hostname:(\\|\/)home(\\|\/)user" - ---Iteration 11 -- -string\(1\) "." - ---Iteration 12 -- -string\(1\) "(\\|\/)" - ---Iteration 13 -- -string\(1\) "(\\|\/)" - ---Iteration 14 -- -string\(1\) "." - ---Iteration 15 -- -string\(2\) "10" - ---Iteration 16 -- -string\(1\) "." - ---Iteration 17 -- -string\(1\) "." - ---Iteration 18 -- -string\(1\) "." - ---Iteration 19 -- -string\(1\) "." - ---Iteration 20 -- -string\(1\) "." - ---Iteration 21 -- -string\(0\) "" - ---Iteration 22 -- -string\(0\) "" - ---Iteration 23 -- -string\(0\) "" - ---Iteration 24 -- -string\(0\) "" -Done ---UEXPECTREGEX-- -\*\*\* Testing possible variations in path \*\*\* - ---Iteration 1 -- unicode\(11\) "~(\\|\/)home(\\|\/)user" --Iteration 2 -- diff --git a/ext/standard/tests/strings/explode.phpt b/ext/standard/tests/strings/explode.phpt index 488ce2ff88..44f5846f05 100644 --- a/ext/standard/tests/strings/explode.phpt +++ b/ext/standard/tests/strings/explode.phpt @@ -30,137 +30,7 @@ var_dump(explode(":","a lazy dog:jumps:over:",-40000000000000)); var_dump(explode(":^:","a lazy dog:^:jumps::over:^:",-1)); var_dump(explode(":^:","a lazy dog:^:jumps::over:^:",-2)); ?> ---EXPECTF-- -array ( - 0 => 'a', - 1 => 'b' . "\0" . 'd', - 2 => 'f', - 3 => '1', - 4 => 'd', -)d6bee42a771449205344c0938ad4f035 -bool(false) -bool(false) -bool(false) -array(1) { - [0]=> - string(0) "" -} -array(2) { - [0]=> - string(0) "" - [1]=> - string(0) "" -} -array(1) { - [0]=> - string(0) "" -} -bool(false) -array(1) { - [0]=> - string(3) "acb" -} -array(1) { - [0]=> - string(11) "otherstring" -} -array(7) { - [0]=> - string(0) "" - [1]=> - string(0) "" - [2]=> - string(0) "" - [3]=> - string(0) "" - [4]=> - string(0) "" - [5]=> - string(0) "" - [6]=> - string(0) "" -} -array(1) { - [0]=> - string(60) "-=48=--=48=--=48=--=48=--=48=--=48=--=48=--=48=--=48=--=48=-" -} -array(21) { - [0]=> - string(1) "-" - [1]=> - string(2) "48" - [2]=> - string(2) "--" - [3]=> - string(2) "48" - [4]=> - string(2) "--" - [5]=> - string(2) "48" - [6]=> - string(2) "--" - [7]=> - string(2) "48" - [8]=> - string(2) "--" - [9]=> - string(2) "48" - [10]=> - string(2) "--" - [11]=> - string(2) "48" - [12]=> - string(2) "--" - [13]=> - string(2) "48" - [14]=> - string(2) "--" - [15]=> - string(2) "48" - [16]=> - string(2) "--" - [17]=> - string(2) "48" - [18]=> - string(2) "--" - [19]=> - string(2) "48" - [20]=> - string(1) "-" -} -array(3) { - [0]=> - string(10) "a lazy dog" - [1]=> - string(5) "jumps" - [2]=> - string(4) "over" -} -array(2) { - [0]=> - string(10) "a lazy dog" - [1]=> - string(5) "jumps" -} -array(1) { - [0]=> - string(10) "a lazy dog" -} -array(0) { -} -array(0) { -} -array(2) { - [0]=> - string(10) "a lazy dog" - [1]=> - string(11) "jumps::over" -} -array(1) { - [0]=> - string(10) "a lazy dog" -} ---UEXPECTF-- +--EXPECT-- array ( 0 => 'a', 1 => 'b' . "\0" . 'd', diff --git a/ext/standard/tests/strings/explode1.phpt b/ext/standard/tests/strings/explode1.phpt index 93b1ccb4b3..370f3b1bb3 100644 --- a/ext/standard/tests/strings/explode1.phpt +++ b/ext/standard/tests/strings/explode1.phpt @@ -115,429 +115,6 @@ bool(false) -- Iteration 3 -- array(1) { [0]=> - string(10) "1234NULL23" -} -array(1) { - [0]=> - string(57) "1234NULL23abcd00000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} -array(1) { - [0]=> - string(57) "1234NULL23abcd00000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} -array(2) { - [0]=> - string(10) "1234NULL23" - [1]=> - string(43) "00000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} --- Iteration 4 -- -array(5) { - [0]=> - string(14) "1234NULL23abcd" - [1]=> - string(0) "" - [2]=> - string(0) "" - [3]=> - string(0) "" - [4]=> - string(0) "" -} -array(1) { - [0]=> - string(57) "1234NULL23abcd00000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} -array(1) { - [0]=> - string(57) "1234NULL23abcd00000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} -array(2) { - [0]=> - string(14) "1234NULL23abcd" - [1]=> - string(42) "0000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} --- Iteration 5 -- -array(5) { - [0]=> - string(14) "1234NULL23abcd" - [1]=> - string(0) "" - [2]=> - string(0) "" - [3]=> - string(0) "" - [4]=> - string(0) "" -} -array(1) { - [0]=> - string(57) "1234NULL23abcd00000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} -array(1) { - [0]=> - string(57) "1234NULL23abcd00000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} -array(2) { - [0]=> - string(14) "1234NULL23abcd" - [1]=> - string(42) "0000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} --- Iteration 6 -- -array(5) { - [0]=> - string(0) "" - [1]=> - string(28) "234NULL23abcd00000TRUEFALSE-" - [2]=> - string(0) "" - [3]=> - string(12) ".234444true-" - [4]=> - string(0) "" -} -array(1) { - [0]=> - string(57) "1234NULL23abcd00000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} -array(1) { - [0]=> - string(57) "1234NULL23abcd00000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} -array(2) { - [0]=> - string(0) "" - [1]=> - string(56) "234NULL23abcd00000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} --- Iteration 7 -- - -Warning: explode(): Empty delimiter in %s on line %d -bool(false) - -Warning: explode(): Empty delimiter in %s on line %d -bool(false) - -Warning: explode(): Empty delimiter in %s on line %d -bool(false) - -Warning: explode(): Empty delimiter in %s on line %d -bool(false) --- Iteration 8 -- -array(2) { - [0]=> - string(28) "1234NULL23abcd00000TRUEFALSE" - [1]=> - string(12) "1.234444true" -} -array(1) { - [0]=> - string(57) "1234NULL23abcd00000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} -array(1) { - [0]=> - string(57) "1234NULL23abcd00000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} -array(2) { - [0]=> - string(28) "1234NULL23abcd00000TRUEFALSE" - [1]=> - string(27) "1.234444true-11.24%PHP%ZEND" -} --- Iteration 9 -- -array(1) { - [0]=> - string(28) "1234NULL23abcd00000TRUEFALSE" -} -array(1) { - [0]=> - string(57) "1234NULL23abcd00000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} -array(1) { - [0]=> - string(57) "1234NULL23abcd00000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} -array(2) { - [0]=> - string(28) "1234NULL23abcd00000TRUEFALSE" - [1]=> - string(23) "4444true-11.24%PHP%ZEND" -} --- Iteration 10 -- -array(6) { - [0]=> - string(3) "123" - [1]=> - string(30) "NULL23abcd00000TRUEFALSE-11.23" - [2]=> - string(0) "" - [3]=> - string(0) "" - [4]=> - string(0) "" - [5]=> - string(9) "true-11.2" -} -array(1) { - [0]=> - string(57) "1234NULL23abcd00000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} -array(1) { - [0]=> - string(57) "1234NULL23abcd00000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} -array(2) { - [0]=> - string(3) "123" - [1]=> - string(53) "NULL23abcd00000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} --- Iteration 11 -- -array(2) { - [0]=> - string(48) "1234NULL23abcd00000TRUEFALSE-11.234444true-11.24" - [1]=> - string(3) "PHP" -} -array(1) { - [0]=> - string(57) "1234NULL23abcd00000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} -array(1) { - [0]=> - string(57) "1234NULL23abcd00000TRUEFALSE-11.234444true-11.24%PHP%ZEND" -} -array(2) { - [0]=> - string(48) "1234NULL23abcd00000TRUEFALSE-11.234444true-11.24" - [1]=> - string(8) "PHP%ZEND" -} - -*** Testing explode() with miscelleneous input arguments *** - --- Passing positive values of Limit to explode() -- -array(2) { - [0]=> - string(3) "mon" - [1]=> - string(31) "tues::wed::thurs::fri::sat::sun" -} - --- Passing limit values 0 and 1 to explode() -- -array(1) { - [0]=> - string(29) "Name:Phone:Address:City:State" -} -array(1) { - [0]=> - string(29) "Name:Phone:Address:City:State" -} - -*** Testing explode() for maximum limit of string with Limit = -1 *** -array(51) { - [0]=> - string(1) "1" - [1]=> - string(1) "2" - [2]=> - string(1) "3" - [3]=> - string(1) "4" - [4]=> - string(1) "5" - [5]=> - string(1) "6" - [6]=> - string(1) "7" - [7]=> - string(1) "7" - [8]=> - string(1) "5" - [9]=> - string(1) "6" - [10]=> - string(1) "7" - [11]=> - string(1) "3" - [12]=> - string(1) "4" - [13]=> - string(1) "5" - [14]=> - string(1) "2" - [15]=> - string(1) "8" - [16]=> - string(1) "9" - [17]=> - string(1) "0" - [18]=> - string(1) "5" - [19]=> - string(1) "5" - [20]=> - string(1) "5" - [21]=> - string(1) "5" - [22]=> - string(1) "5" - [23]=> - string(1) "5" - [24]=> - string(1) "5" - [25]=> - string(1) "5" - [26]=> - string(1) "5" - [27]=> - string(1) "5" - [28]=> - string(1) "5" - [29]=> - string(1) "5" - [30]=> - string(2) "55" - [31]=> - string(1) "5" - [32]=> - string(1) "5" - [33]=> - string(2) "5%" - [34]=> - string(1) "%" - [35]=> - string(1) "%" - [36]=> - string(1) "%" - [37]=> - string(1) "5" - [38]=> - string(1) "5" - [39]=> - string(1) "5" - [40]=> - string(1) "%" - [41]=> - string(1) "%" - [42]=> - string(1) "5" - [43]=> - string(1) "5" - [44]=> - string(1) "5" - [45]=> - string(1) "5" - [46]=> - string(2) "5%" - [47]=> - string(1) "%" - [48]=> - string(1) "%" - [49]=> - string(2) "55" - [50]=> - string(1) "1" -} - -*** Testing explode() with string variations as input argument *** - --- Testing string with escape characters -- -array(2) { - [0]=> - string(4) "1234" - [1]=> - string(10) "5678 - 9100" -} -array(4) { - [0]=> - string(4) "1234" - [1]=> - string(4) "abcd" - [2]=> - string(4) "5678" - [3]=> - string(4) "rstu" -} - --- Testing string with embedded NULL -- -array(4) { - [0]=> - string(4) "abcd" - [1]=> - string(5) "n1234" - [2]=> - string(5) "05678" - [3]=> - string(12) "00efgh\xijkl" -} -array(7) { - [0]=> - string(4) "abcd" - [1]=> - string(4) "efgh" - [2]=> - string(4) "ijkl" - [3]=> - string(4) "mnop" - [4]=> - string(5) "0qrst" - [5]=> - string(4) "uvwx" - [6]=> - string(2) "yz" -} - -*** Testing explode() with objects *** -array(2) { - [0]=> - string(1) "O" - [1]=> - string(4) "ject" -} - -*** Testing error conditions *** - -Warning: explode() expects at most 3 parameters, 4 given in %s on line %d -NULL - -Warning: explode() expects at least 2 parameters, 1 given in %s on line %d -NULL -Done ---UEXPECTF-- -*** Testing explode() for basic operations *** --- Iteration 1 -- - -Warning: explode(): Empty delimiter in %s on line %d -bool(false) - -Warning: explode(): Empty delimiter in %s on line %d -bool(false) - -Warning: explode(): Empty delimiter in %s on line %d -bool(false) - -Warning: explode(): Empty delimiter in %s on line %d -bool(false) --- Iteration 2 -- - -Warning: explode(): Empty delimiter in %s on line %d -bool(false) - -Warning: explode(): Empty delimiter in %s on line %d -bool(false) - -Warning: explode(): Empty delimiter in %s on line %d -bool(false) - -Warning: explode(): Empty delimiter in %s on line %d -bool(false) --- Iteration 3 -- -array(1) { - [0]=> unicode(10) "1234NULL23" } array(1) { diff --git a/ext/standard/tests/strings/fprintf_variation_001.phpt b/ext/standard/tests/strings/fprintf_variation_001.phpt index f08d5cbee7..3a935107a7 100644 --- a/ext/standard/tests/strings/fprintf_variation_001.phpt +++ b/ext/standard/tests/strings/fprintf_variation_001.phpt @@ -38,7 +38,7 @@ echo "\nDone"; unlink($data_file); ?> ---EXPECTF-- +--EXPECT-- *** Testing fprintf() with floats *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/fprintf_variation_002.phpt b/ext/standard/tests/strings/fprintf_variation_002.phpt index fb3ab6c14a..49e62e2b74 100644 --- a/ext/standard/tests/strings/fprintf_variation_002.phpt +++ b/ext/standard/tests/strings/fprintf_variation_002.phpt @@ -38,7 +38,7 @@ echo "\nDone"; unlink($data_file); ?> ---EXPECTF-- +--EXPECT-- *** Testing fprintf() with integers *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/fprintf_variation_003.phpt b/ext/standard/tests/strings/fprintf_variation_003.phpt index c312c49d67..b4860879b0 100644 --- a/ext/standard/tests/strings/fprintf_variation_003.phpt +++ b/ext/standard/tests/strings/fprintf_variation_003.phpt @@ -33,7 +33,7 @@ echo "\nDone"; unlink($data_file); ?> ---EXPECTF-- +--EXPECT-- *** Testing fprintf() with binary *** 0 diff --git a/ext/standard/tests/strings/fprintf_variation_003_64bit.phpt b/ext/standard/tests/strings/fprintf_variation_003_64bit.phpt index 448f5281d5..ba8e525c3f 100644 --- a/ext/standard/tests/strings/fprintf_variation_003_64bit.phpt +++ b/ext/standard/tests/strings/fprintf_variation_003_64bit.phpt @@ -33,7 +33,7 @@ echo "\nDone"; unlink($data_file); ?> ---EXPECTF-- +--EXPECT-- *** Testing fprintf() with binary *** 0 diff --git a/ext/standard/tests/strings/fprintf_variation_005.phpt b/ext/standard/tests/strings/fprintf_variation_005.phpt index 75636ac98e..0967b77cd8 100644 --- a/ext/standard/tests/strings/fprintf_variation_005.phpt +++ b/ext/standard/tests/strings/fprintf_variation_005.phpt @@ -32,7 +32,7 @@ echo "\nDone"; unlink($data_file); ?> ---EXPECTF-- +--EXPECT-- *** Testing fprintf() for scientific type *** 0.000000e+0 diff --git a/ext/standard/tests/strings/fprintf_variation_006.phpt b/ext/standard/tests/strings/fprintf_variation_006.phpt index d7a3278577..8a66fb9fb4 100644 --- a/ext/standard/tests/strings/fprintf_variation_006.phpt +++ b/ext/standard/tests/strings/fprintf_variation_006.phpt @@ -33,7 +33,7 @@ echo "\nDone"; unlink($data_file); ?> ---EXPECTF-- +--EXPECT-- *** Testing fprintf() for unsigned integers *** 0 diff --git a/ext/standard/tests/strings/fprintf_variation_006_64bit.phpt b/ext/standard/tests/strings/fprintf_variation_006_64bit.phpt index d68683e3ee..fe4cc91dd7 100644 --- a/ext/standard/tests/strings/fprintf_variation_006_64bit.phpt +++ b/ext/standard/tests/strings/fprintf_variation_006_64bit.phpt @@ -33,7 +33,7 @@ echo "\nDone"; unlink($data_file); ?> ---EXPECTF-- +--EXPECT-- *** Testing fprintf() for unsigned integers *** 0 diff --git a/ext/standard/tests/strings/fprintf_variation_007.phpt b/ext/standard/tests/strings/fprintf_variation_007.phpt index cb09084b73..16d39bbde3 100644 --- a/ext/standard/tests/strings/fprintf_variation_007.phpt +++ b/ext/standard/tests/strings/fprintf_variation_007.phpt @@ -33,7 +33,7 @@ echo "\nDone"; unlink($data_file); ?> ---EXPECTF-- +--EXPECT-- *** Testing fprintf() for octals *** 0 diff --git a/ext/standard/tests/strings/fprintf_variation_007_64bit.phpt b/ext/standard/tests/strings/fprintf_variation_007_64bit.phpt index c8481e9fd2..55cd946a3b 100644 --- a/ext/standard/tests/strings/fprintf_variation_007_64bit.phpt +++ b/ext/standard/tests/strings/fprintf_variation_007_64bit.phpt @@ -33,7 +33,7 @@ echo "\nDone"; unlink($data_file); ?> ---EXPECTF-- +--EXPECT-- *** Testing fprintf() for octals *** 0 diff --git a/ext/standard/tests/strings/fprintf_variation_008.phpt b/ext/standard/tests/strings/fprintf_variation_008.phpt index f91e7a1a99..d2187c7ccd 100644 --- a/ext/standard/tests/strings/fprintf_variation_008.phpt +++ b/ext/standard/tests/strings/fprintf_variation_008.phpt @@ -34,7 +34,7 @@ echo "\nDone"; unlink($data_file); ?> ---EXPECTF-- +--EXPECT-- *** Testing fprintf() for hexadecimals *** 0 diff --git a/ext/standard/tests/strings/fprintf_variation_008_64bit.phpt b/ext/standard/tests/strings/fprintf_variation_008_64bit.phpt index f619510227..9d326a91c1 100644 --- a/ext/standard/tests/strings/fprintf_variation_008_64bit.phpt +++ b/ext/standard/tests/strings/fprintf_variation_008_64bit.phpt @@ -34,7 +34,7 @@ echo "\nDone"; unlink($data_file); ?> ---EXPECTF-- +--EXPECT-- *** Testing fprintf() for hexadecimals *** 0 diff --git a/ext/standard/tests/strings/fprintf_variation_009.phpt b/ext/standard/tests/strings/fprintf_variation_009.phpt index 40f36bb5f0..e36c0e8c0f 100644 --- a/ext/standard/tests/strings/fprintf_variation_009.phpt +++ b/ext/standard/tests/strings/fprintf_variation_009.phpt @@ -38,7 +38,7 @@ echo "\nDone"; unlink($data_file); ?> ---EXPECTF-- +--EXPECT-- *** Testing fprintf() for string types *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/get_html_translation_table_basic1-win32.phpt b/ext/standard/tests/strings/get_html_translation_table_basic1-win32.phpt deleted file mode 100644 index 20392e8fee..0000000000 --- a/ext/standard/tests/strings/get_html_translation_table_basic1-win32.phpt +++ /dev/null @@ -1,922 +0,0 @@ ---TEST-- -Test get_html_translation_table() function : basic functionality - with default args ---SKIPIF-- -<?php -if( substr(PHP_OS, 0, 3) != "WIN"){ - die('skip only for Windows'); -} - -if( ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); - -if( !setlocale(LC_ALL, "English_United States.1252") ) { - die('skip failed to set locale settings to "English_United States.1252"'); -} -?> ---FILE-- -<?php -/* Prototype : array get_html_translation_table ( [int $table [, int $quote_style]] ) - * Description: Returns the internal translation table used by htmlspecialchars and htmlentities - * Source code: ext/standard/html.c -*/ - -/* Test get_html_translation_table() when table is specified as HTML_ENTITIES */ - -//set locale -setlocale(LC_ALL, "English_United States.1252"); - -echo "*** Testing get_html_translation_table() : basic functionality ***\n"; - -// Calling get_html_translation_table() with default arguments -echo "-- with default arguments --\n"; -var_dump( get_html_translation_table() ); - -// Calling get_html_translation_table() with all possible optional arguments -echo "-- with table = HTML_ENTITIES --\n"; -$table = HTML_ENTITIES; -var_dump( get_html_translation_table($table) ); - -echo "-- with table = HTML_SPECIALCHARS --\n"; -$table = HTML_SPECIALCHARS; -var_dump( get_html_translation_table($table) ); - -echo "Done\n"; -?> ---EXPECTF-- -*** Testing get_html_translation_table() : basic functionality *** --- with default arguments -- -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- with table = HTML_ENTITIES -- -array(100) { - [" "]=> - string(6) " " - ["¡"]=> - string(7) "¡" - ["¢"]=> - string(6) "¢" - ["£"]=> - string(7) "£" - ["¤"]=> - string(8) "¤" - ["¥"]=> - string(5) "¥" - ["¦"]=> - string(8) "¦" - ["§"]=> - string(6) "§" - ["¨"]=> - string(5) "¨" - ["©"]=> - string(6) "©" - ["ª"]=> - string(6) "ª" - ["«"]=> - string(7) "«" - ["¬"]=> - string(5) "¬" - [""]=> - string(5) "­" - ["®"]=> - string(5) "®" - ["¯"]=> - string(6) "¯" - ["°"]=> - string(5) "°" - ["±"]=> - string(8) "±" - ["²"]=> - string(6) "²" - ["³"]=> - string(6) "³" - ["´"]=> - string(7) "´" - ["µ"]=> - string(7) "µ" - ["¶"]=> - string(6) "¶" - ["·"]=> - string(8) "·" - ["¸"]=> - string(7) "¸" - ["¹"]=> - string(6) "¹" - ["º"]=> - string(6) "º" - ["»"]=> - string(7) "»" - ["¼"]=> - string(8) "¼" - ["½"]=> - string(8) "½" - ["¾"]=> - string(8) "¾" - ["¿"]=> - string(8) "¿" - ["À"]=> - string(8) "À" - ["Á"]=> - string(8) "Á" - ["Â"]=> - string(7) "Â" - ["Ã"]=> - string(8) "Ã" - ["Ä"]=> - string(6) "Ä" - ["Å"]=> - string(7) "Å" - ["Æ"]=> - string(7) "Æ" - ["Ç"]=> - string(8) "Ç" - ["È"]=> - string(8) "È" - ["É"]=> - string(8) "É" - ["Ê"]=> - string(7) "Ê" - ["Ë"]=> - string(6) "Ë" - ["Ì"]=> - string(8) "Ì" - ["Í"]=> - string(8) "Í" - ["Î"]=> - string(7) "Î" - ["Ï"]=> - string(6) "Ï" - ["Ð"]=> - string(5) "Ð" - ["Ñ"]=> - string(8) "Ñ" - ["Ò"]=> - string(8) "Ò" - ["Ó"]=> - string(8) "Ó" - ["Ô"]=> - string(7) "Ô" - ["Õ"]=> - string(8) "Õ" - ["Ö"]=> - string(6) "Ö" - ["×"]=> - string(7) "×" - ["Ø"]=> - string(8) "Ø" - ["Ù"]=> - string(8) "Ù" - ["Ú"]=> - string(8) "Ú" - ["Û"]=> - string(7) "Û" - ["Ü"]=> - string(6) "Ü" - ["Ý"]=> - string(8) "Ý" - ["Þ"]=> - string(7) "Þ" - ["ß"]=> - string(7) "ß" - ["à"]=> - string(8) "à" - ["á"]=> - string(8) "á" - ["â"]=> - string(7) "â" - ["ã"]=> - string(8) "ã" - ["ä"]=> - string(6) "ä" - ["å"]=> - string(7) "å" - ["æ"]=> - string(7) "æ" - ["ç"]=> - string(8) "ç" - ["è"]=> - string(8) "è" - ["é"]=> - string(8) "é" - ["ê"]=> - string(7) "ê" - ["ë"]=> - string(6) "ë" - ["ì"]=> - string(8) "ì" - ["í"]=> - string(8) "í" - ["î"]=> - string(7) "î" - ["ï"]=> - string(6) "ï" - ["ð"]=> - string(5) "ð" - ["ñ"]=> - string(8) "ñ" - ["ò"]=> - string(8) "ò" - ["ó"]=> - string(8) "ó" - ["ô"]=> - string(7) "ô" - ["õ"]=> - string(8) "õ" - ["ö"]=> - string(6) "ö" - ["÷"]=> - string(8) "÷" - ["ø"]=> - string(8) "ø" - ["ù"]=> - string(8) "ù" - ["ú"]=> - string(8) "ú" - ["û"]=> - string(7) "û" - ["ü"]=> - string(6) "ü" - ["ý"]=> - string(8) "ý" - ["þ"]=> - string(7) "þ" - ["ÿ"]=> - string(6) "ÿ" - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- with table = HTML_SPECIALCHARS -- -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -Done ---UEXPECTF-- -*** Testing get_html_translation_table() : basic functionality *** --- with default arguments -- -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- with table = HTML_ENTITIES -- -array(311) { - [u" "]=> - unicode(6) " " - [u"¡"]=> - unicode(7) "¡" - [u"¢"]=> - unicode(6) "¢" - [u"£"]=> - unicode(7) "£" - [u"¤"]=> - unicode(8) "¤" - [u"Â¥"]=> - unicode(5) "¥" - [u"¦"]=> - unicode(8) "¦" - [u"§"]=> - unicode(6) "§" - [u"¨"]=> - unicode(5) "¨" - [u"©"]=> - unicode(6) "©" - [u"ª"]=> - unicode(6) "ª" - [u"«"]=> - unicode(7) "«" - [u"¬"]=> - unicode(5) "¬" - [u"Â"]=> - unicode(5) "­" - [u"®"]=> - unicode(5) "®" - [u"¯"]=> - unicode(6) "¯" - [u"°"]=> - unicode(5) "°" - [u"±"]=> - unicode(8) "±" - [u"²"]=> - unicode(6) "²" - [u"³"]=> - unicode(6) "³" - [u"´"]=> - unicode(7) "´" - [u"µ"]=> - unicode(7) "µ" - [u"¶"]=> - unicode(6) "¶" - [u"·"]=> - unicode(8) "·" - [u"¸"]=> - unicode(7) "¸" - [u"¹"]=> - unicode(6) "¹" - [u"º"]=> - unicode(6) "º" - [u"»"]=> - unicode(7) "»" - [u"¼"]=> - unicode(8) "¼" - [u"½"]=> - unicode(8) "½" - [u"¾"]=> - unicode(8) "¾" - [u"¿"]=> - unicode(8) "¿" - [u"À"]=> - unicode(8) "À" - [u"Ã"]=> - unicode(8) "Á" - [u"Â"]=> - unicode(7) "Â" - [u"Ã"]=> - unicode(8) "Ã" - [u"Ä"]=> - unicode(6) "Ä" - [u"Ã…"]=> - unicode(7) "Å" - [u"Æ"]=> - unicode(7) "Æ" - [u"Ç"]=> - unicode(8) "Ç" - [u"È"]=> - unicode(8) "È" - [u"É"]=> - unicode(8) "É" - [u"Ê"]=> - unicode(7) "Ê" - [u"Ë"]=> - unicode(6) "Ë" - [u"ÃŒ"]=> - unicode(8) "Ì" - [u"Ã"]=> - unicode(8) "Í" - [u"ÃŽ"]=> - unicode(7) "Î" - [u"Ã"]=> - unicode(6) "Ï" - [u"Ã"]=> - unicode(5) "Ð" - [u"Ñ"]=> - unicode(8) "Ñ" - [u"Ã’"]=> - unicode(8) "Ò" - [u"Ó"]=> - unicode(8) "Ó" - [u"Ô"]=> - unicode(7) "Ô" - [u"Õ"]=> - unicode(8) "Õ" - [u"Ö"]=> - unicode(6) "Ö" - [u"×"]=> - unicode(7) "×" - [u"Ø"]=> - unicode(8) "Ø" - [u"Ù"]=> - unicode(8) "Ù" - [u"Ú"]=> - unicode(8) "Ú" - [u"Û"]=> - unicode(7) "Û" - [u"Ãœ"]=> - unicode(6) "Ü" - [u"Ã"]=> - unicode(8) "Ý" - [u"Þ"]=> - unicode(7) "Þ" - [u"ß"]=> - unicode(7) "ß" - [u"à "]=> - unicode(8) "à" - [u"á"]=> - unicode(8) "á" - [u"â"]=> - unicode(7) "â" - [u"ã"]=> - unicode(8) "ã" - [u"ä"]=> - unicode(6) "ä" - [u"Ã¥"]=> - unicode(7) "å" - [u"æ"]=> - unicode(7) "æ" - [u"ç"]=> - unicode(8) "ç" - [u"è"]=> - unicode(8) "è" - [u"é"]=> - unicode(8) "é" - [u"ê"]=> - unicode(7) "ê" - [u"ë"]=> - unicode(6) "ë" - [u"ì"]=> - unicode(8) "ì" - [u"Ã"]=> - unicode(8) "í" - [u"î"]=> - unicode(7) "î" - [u"ï"]=> - unicode(6) "ï" - [u"ð"]=> - unicode(5) "ð" - [u"ñ"]=> - unicode(8) "ñ" - [u"ò"]=> - unicode(8) "ò" - [u"ó"]=> - unicode(8) "ó" - [u"ô"]=> - unicode(7) "ô" - [u"õ"]=> - unicode(8) "õ" - [u"ö"]=> - unicode(6) "ö" - [u"÷"]=> - unicode(8) "÷" - [u"ø"]=> - unicode(8) "ø" - [u"ù"]=> - unicode(8) "ù" - [u"ú"]=> - unicode(8) "ú" - [u"û"]=> - unicode(7) "û" - [u"ü"]=> - unicode(6) "ü" - [u"ý"]=> - unicode(8) "ý" - [u"þ"]=> - unicode(7) "þ" - [u"ÿ"]=> - unicode(6) "ÿ" - [u"Å’"]=> - unicode(7) "Œ" - [u"Å“"]=> - unicode(7) "œ" - [u"Å "]=> - unicode(8) "Š" - [u"Å¡"]=> - unicode(8) "š" - [u"Ÿ"]=> - unicode(6) "Ÿ" - [u"Æ’"]=> - unicode(6) "ƒ" - [u"ˆ"]=> - unicode(6) "ˆ" - [u"Ëœ"]=> - unicode(7) "˜" - [u"Α"]=> - unicode(7) "Α" - [u"Î’"]=> - unicode(6) "Β" - [u"Γ"]=> - unicode(7) "Γ" - [u"Δ"]=> - unicode(7) "Δ" - [u"Ε"]=> - unicode(9) "Ε" - [u"Ζ"]=> - unicode(6) "Ζ" - [u"Η"]=> - unicode(5) "Η" - [u"Θ"]=> - unicode(7) "Θ" - [u"Ι"]=> - unicode(6) "Ι" - [u"Κ"]=> - unicode(7) "Κ" - [u"Λ"]=> - unicode(8) "Λ" - [u"Îœ"]=> - unicode(4) "Μ" - [u"Î"]=> - unicode(4) "Ν" - [u"Ξ"]=> - unicode(4) "Ξ" - [u"Ο"]=> - unicode(9) "Ο" - [u"Î "]=> - unicode(4) "Π" - [u"Ρ"]=> - unicode(5) "Ρ" - [u"Σ"]=> - unicode(7) "Σ" - [u"Τ"]=> - unicode(5) "Τ" - [u"Î¥"]=> - unicode(9) "Υ" - [u"Φ"]=> - unicode(5) "Φ" - [u"Χ"]=> - unicode(5) "Χ" - [u"Ψ"]=> - unicode(5) "Ψ" - [u"Ω"]=> - unicode(7) "Ω" - [u"α"]=> - unicode(7) "α" - [u"β"]=> - unicode(6) "β" - [u"γ"]=> - unicode(7) "γ" - [u"δ"]=> - unicode(7) "δ" - [u"ε"]=> - unicode(9) "ε" - [u"ζ"]=> - unicode(6) "ζ" - [u"η"]=> - unicode(5) "η" - [u"θ"]=> - unicode(7) "θ" - [u"ι"]=> - unicode(6) "ι" - [u"κ"]=> - unicode(7) "κ" - [u"λ"]=> - unicode(8) "λ" - [u"μ"]=> - unicode(4) "μ" - [u"ν"]=> - unicode(4) "ν" - [u"ξ"]=> - unicode(4) "ξ" - [u"ο"]=> - unicode(9) "ο" - [u"Ï€"]=> - unicode(4) "π" - [u"Ï"]=> - unicode(5) "ρ" - [u"Ï‚"]=> - unicode(8) "ς" - [u"σ"]=> - unicode(7) "σ" - [u"Ï„"]=> - unicode(5) "τ" - [u"Ï…"]=> - unicode(9) "υ" - [u"φ"]=> - unicode(5) "φ" - [u"χ"]=> - unicode(5) "χ" - [u"ψ"]=> - unicode(5) "ψ" - [u"ω"]=> - unicode(7) "ω" - [u"Ï‘"]=> - unicode(10) "ϑ" - [u"Ï’"]=> - unicode(7) "ϒ" - [u"Ï–"]=> - unicode(5) "ϖ" - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(8) " " - [u"‌"]=> - unicode(6) "‌" - [u"â€"]=> - unicode(5) "‍" - [u"‎"]=> - unicode(5) "‎" - [u"â€"]=> - unicode(5) "‏" - [u"–"]=> - unicode(7) "–" - [u"—"]=> - unicode(7) "—" - [u"‘"]=> - unicode(7) "‘" - [u"’"]=> - unicode(7) "’" - [u"‚"]=> - unicode(7) "‚" - [u"“"]=> - unicode(7) "“" - [u"â€"]=> - unicode(7) "”" - [u"„"]=> - unicode(7) "„" - [u"†"]=> - unicode(8) "†" - [u"‡"]=> - unicode(8) "‡" - [u"•"]=> - unicode(6) "•" - [u"…"]=> - unicode(8) "…" - [u"‰"]=> - unicode(8) "‰" - [u"′"]=> - unicode(7) "′" - [u"″"]=> - unicode(7) "″" - [u"‹"]=> - unicode(8) "‹" - [u"›"]=> - unicode(8) "›" - [u"‾"]=> - unicode(7) "‾" - [u"â„"]=> - unicode(7) "⁄" - [u"€"]=> - unicode(6) "€" - [u"â„‘"]=> - unicode(7) "ℑ" - [u"℘"]=> - unicode(8) "℘" - [u"â„œ"]=> - unicode(6) "ℜ" - [u"â„¢"]=> - unicode(7) "™" - [u"ℵ"]=> - unicode(9) "ℵ" - [u"â†"]=> - unicode(6) "←" - [u"↑"]=> - unicode(6) "↑" - [u"→"]=> - unicode(6) "→" - [u"↓"]=> - unicode(6) "↓" - [u"↔"]=> - unicode(6) "↔" - [u"↵"]=> - unicode(7) "↵" - [u"â‡"]=> - unicode(6) "⇐" - [u"⇑"]=> - unicode(6) "⇑" - [u"⇒"]=> - unicode(6) "⇒" - [u"⇓"]=> - unicode(6) "⇓" - [u"⇔"]=> - unicode(6) "⇔" - [u"⇕"]=> - unicode(6) "⇕" - [u"⇚"]=> - unicode(7) "⇚" - [u"⇛"]=> - unicode(7) "⇛" - [u"â‡"]=> - unicode(7) "↝" - [u"∀"]=> - unicode(8) "∀" - [u"âˆ"]=> - unicode(6) "∁" - [u"∂"]=> - unicode(6) "∂" - [u"∃"]=> - unicode(7) "∃" - [u"∄"]=> - unicode(8) "∄" - [u"∅"]=> - unicode(7) "∅" - [u"∇"]=> - unicode(7) "∇" - [u"∈"]=> - unicode(6) "∈" - [u"∉"]=> - unicode(7) "∉" - [u"∊"]=> - unicode(7) "&epsis;" - [u"∋"]=> - unicode(4) "∋" - [u"∌"]=> - unicode(7) "∌" - [u"âˆ"]=> - unicode(7) "϶" - [u"âˆ"]=> - unicode(6) "∏" - [u"âˆ"]=> - unicode(8) "∐" - [u"∑"]=> - unicode(5) "∑" - [u"−"]=> - unicode(7) "−" - [u"∓"]=> - unicode(8) "∓" - [u"∔"]=> - unicode(8) "∔" - [u"∖"]=> - unicode(7) "∖" - [u"∗"]=> - unicode(8) "∗" - [u"∘"]=> - unicode(8) "∘" - [u"√"]=> - unicode(7) "√" - [u"âˆ"]=> - unicode(6) "∝" - [u"∞"]=> - unicode(7) "∞" - [u"∟"]=> - unicode(7) "&ang90;" - [u"∠"]=> - unicode(5) "∠" - [u"∡"]=> - unicode(8) "∡" - [u"∢"]=> - unicode(8) "∢" - [u"∣"]=> - unicode(5) "∣" - [u"∤"]=> - unicode(6) "∤" - [u"∥"]=> - unicode(5) "∥" - [u"∦"]=> - unicode(6) "∦" - [u"∧"]=> - unicode(5) "∧" - [u"∨"]=> - unicode(4) "∨" - [u"∩"]=> - unicode(5) "∩" - [u"∪"]=> - unicode(5) "∪" - [u"∫"]=> - unicode(5) "∫" - [u"∮"]=> - unicode(8) "∮" - [u"∴"]=> - unicode(8) "∴" - [u"∵"]=> - unicode(8) "∵" - [u"∼"]=> - unicode(5) "∼" - [u"∽"]=> - unicode(6) "∽" - [u"≀"]=> - unicode(8) "≀" - [u"â‰"]=> - unicode(6) "≁" - [u"≃"]=> - unicode(6) "≃" - [u"≄"]=> - unicode(7) "≄" - [u"≅"]=> - unicode(6) "≅" - [u"≇"]=> - unicode(7) "≇" - [u"≈"]=> - unicode(7) "≈" - [u"≉"]=> - unicode(5) "≉" - [u"≊"]=> - unicode(5) "≊" - [u"≌"]=> - unicode(7) "≌" - [u"â‰"]=> - unicode(7) "≈" - [u"≎"]=> - unicode(6) "≎" - [u"â‰"]=> - unicode(7) "≏" - [u"≠"]=> - unicode(4) "≠" - [u"≡"]=> - unicode(7) "≡" - [u"≤"]=> - unicode(4) "≤" - [u"≥"]=> - unicode(4) "≥" - [u"≦"]=> - unicode(4) "≦" - [u"≧"]=> - unicode(4) "≧" - [u"≨"]=> - unicode(5) "≨" - [u"≩"]=> - unicode(5) "≩" - [u"≪"]=> - unicode(4) "≪" - [u"≫"]=> - unicode(4) "≫" - [u"≬"]=> - unicode(7) "≬" - [u"≮"]=> - unicode(5) "≮" - [u"≯"]=> - unicode(5) "≯" - [u"≰"]=> - unicode(6) "⩽̸" - [u"≱"]=> - unicode(6) "⩾̸" - [u"≲"]=> - unicode(6) "≲" - [u"≳"]=> - unicode(6) "≳" - [u"≶"]=> - unicode(4) "≶" - [u"≷"]=> - unicode(4) "≷" - [u"≺"]=> - unicode(4) "≺" - [u"≻"]=> - unicode(4) "≻" - [u"≼"]=> - unicode(7) "&cupre;" - [u"≽"]=> - unicode(7) "&sscue;" - [u"≾"]=> - unicode(7) "≾" - [u"≿"]=> - unicode(7) "≿" - [u"⊀"]=> - unicode(5) "⊀" - [u"âŠ"]=> - unicode(5) "⊁" - [u"⊂"]=> - unicode(5) "⊂" - [u"⊃"]=> - unicode(5) "⊃" - [u"⊄"]=> - unicode(6) "⊄" - [u"⊅"]=> - unicode(6) "⊅" - [u"⊆"]=> - unicode(6) "⊆" - [u"⊇"]=> - unicode(6) "⊇" - [u"⊕"]=> - unicode(7) "⊕" - [u"⊗"]=> - unicode(8) "⊗" - [u"⊥"]=> - unicode(6) "⊥" - [u"â‹…"]=> - unicode(6) "⋅" - [u"⌈"]=> - unicode(7) "⌈" - [u"⌉"]=> - unicode(7) "⌉" - [u"⌊"]=> - unicode(8) "⌊" - [u"⌋"]=> - unicode(8) "⌋" - [u"〈"]=> - unicode(6) "⟨" - [u"〉"]=> - unicode(6) "⟩" - [u"â—Š"]=> - unicode(5) "◊" - [u"â™ "]=> - unicode(8) "♠" - [u"♣"]=> - unicode(7) "♣" - [u"♥"]=> - unicode(8) "♥" - [u"♦"]=> - unicode(7) "♦" - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- with table = HTML_SPECIALCHARS -- -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -Done diff --git a/ext/standard/tests/strings/get_html_translation_table_basic1.phpt b/ext/standard/tests/strings/get_html_translation_table_basic1.phpt deleted file mode 100644 index 4ce14938ce..0000000000 --- a/ext/standard/tests/strings/get_html_translation_table_basic1.phpt +++ /dev/null @@ -1,922 +0,0 @@ ---TEST-- -Test get_html_translation_table() function : basic functionality - with default args ---SKIPIF-- -<?php -if( substr(PHP_OS, 0, 3) == "WIN"){ - die('skip Not for Windows'); -} - -if( ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); - -if( !setlocale(LC_ALL, "en_US.UTF-8") ) { - die('skip failed to set locale settings to "en-US.UTF-8"'); -} -?> ---FILE-- -<?php -/* Prototype : array get_html_translation_table ( [int $table [, int $quote_style]] ) - * Description: Returns the internal translation table used by htmlspecialchars and htmlentities - * Source code: ext/standard/html.c -*/ - -/* Test get_html_translation_table() when table is specified as HTML_ENTITIES */ - -//set locale to en_US.UTF-8 -setlocale(LC_ALL, "en_US.UTF-8"); - -echo "*** Testing get_html_translation_table() : basic functionality ***\n"; - -// Calling get_html_translation_table() with default arguments -echo "-- with default arguments --\n"; -var_dump( get_html_translation_table() ); - -// Calling get_html_translation_table() with all possible optional arguments -echo "-- with table = HTML_ENTITIES --\n"; -$table = HTML_ENTITIES; -var_dump( get_html_translation_table($table) ); - -echo "-- with table = HTML_SPECIALCHARS --\n"; -$table = HTML_SPECIALCHARS; -var_dump( get_html_translation_table($table) ); - -echo "Done\n"; -?> ---EXPECTF-- -*** Testing get_html_translation_table() : basic functionality *** --- with default arguments -- -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- with table = HTML_ENTITIES -- -array(100) { - [" "]=> - string(6) " " - ["¡"]=> - string(7) "¡" - ["¢"]=> - string(6) "¢" - ["£"]=> - string(7) "£" - ["¤"]=> - string(8) "¤" - ["¥"]=> - string(5) "¥" - ["¦"]=> - string(8) "¦" - ["§"]=> - string(6) "§" - ["¨"]=> - string(5) "¨" - ["©"]=> - string(6) "©" - ["ª"]=> - string(6) "ª" - ["«"]=> - string(7) "«" - ["¬"]=> - string(5) "¬" - [""]=> - string(5) "­" - ["®"]=> - string(5) "®" - ["¯"]=> - string(6) "¯" - ["°"]=> - string(5) "°" - ["±"]=> - string(8) "±" - ["²"]=> - string(6) "²" - ["³"]=> - string(6) "³" - ["´"]=> - string(7) "´" - ["µ"]=> - string(7) "µ" - ["¶"]=> - string(6) "¶" - ["·"]=> - string(8) "·" - ["¸"]=> - string(7) "¸" - ["¹"]=> - string(6) "¹" - ["º"]=> - string(6) "º" - ["»"]=> - string(7) "»" - ["¼"]=> - string(8) "¼" - ["½"]=> - string(8) "½" - ["¾"]=> - string(8) "¾" - ["¿"]=> - string(8) "¿" - ["À"]=> - string(8) "À" - ["Á"]=> - string(8) "Á" - ["Â"]=> - string(7) "Â" - ["Ã"]=> - string(8) "Ã" - ["Ä"]=> - string(6) "Ä" - ["Å"]=> - string(7) "Å" - ["Æ"]=> - string(7) "Æ" - ["Ç"]=> - string(8) "Ç" - ["È"]=> - string(8) "È" - ["É"]=> - string(8) "É" - ["Ê"]=> - string(7) "Ê" - ["Ë"]=> - string(6) "Ë" - ["Ì"]=> - string(8) "Ì" - ["Í"]=> - string(8) "Í" - ["Î"]=> - string(7) "Î" - ["Ï"]=> - string(6) "Ï" - ["Ð"]=> - string(5) "Ð" - ["Ñ"]=> - string(8) "Ñ" - ["Ò"]=> - string(8) "Ò" - ["Ó"]=> - string(8) "Ó" - ["Ô"]=> - string(7) "Ô" - ["Õ"]=> - string(8) "Õ" - ["Ö"]=> - string(6) "Ö" - ["×"]=> - string(7) "×" - ["Ø"]=> - string(8) "Ø" - ["Ù"]=> - string(8) "Ù" - ["Ú"]=> - string(8) "Ú" - ["Û"]=> - string(7) "Û" - ["Ü"]=> - string(6) "Ü" - ["Ý"]=> - string(8) "Ý" - ["Þ"]=> - string(7) "Þ" - ["ß"]=> - string(7) "ß" - ["à"]=> - string(8) "à" - ["á"]=> - string(8) "á" - ["â"]=> - string(7) "â" - ["ã"]=> - string(8) "ã" - ["ä"]=> - string(6) "ä" - ["å"]=> - string(7) "å" - ["æ"]=> - string(7) "æ" - ["ç"]=> - string(8) "ç" - ["è"]=> - string(8) "è" - ["é"]=> - string(8) "é" - ["ê"]=> - string(7) "ê" - ["ë"]=> - string(6) "ë" - ["ì"]=> - string(8) "ì" - ["í"]=> - string(8) "í" - ["î"]=> - string(7) "î" - ["ï"]=> - string(6) "ï" - ["ð"]=> - string(5) "ð" - ["ñ"]=> - string(8) "ñ" - ["ò"]=> - string(8) "ò" - ["ó"]=> - string(8) "ó" - ["ô"]=> - string(7) "ô" - ["õ"]=> - string(8) "õ" - ["ö"]=> - string(6) "ö" - ["÷"]=> - string(8) "÷" - ["ø"]=> - string(8) "ø" - ["ù"]=> - string(8) "ù" - ["ú"]=> - string(8) "ú" - ["û"]=> - string(7) "û" - ["ü"]=> - string(6) "ü" - ["ý"]=> - string(8) "ý" - ["þ"]=> - string(7) "þ" - ["ÿ"]=> - string(6) "ÿ" - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- with table = HTML_SPECIALCHARS -- -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -Done ---UEXPECTF-- -*** Testing get_html_translation_table() : basic functionality *** --- with default arguments -- -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- with table = HTML_ENTITIES -- -array(311) { - [u" "]=> - unicode(6) " " - [u"¡"]=> - unicode(7) "¡" - [u"¢"]=> - unicode(6) "¢" - [u"£"]=> - unicode(7) "£" - [u"¤"]=> - unicode(8) "¤" - [u"Â¥"]=> - unicode(5) "¥" - [u"¦"]=> - unicode(8) "¦" - [u"§"]=> - unicode(6) "§" - [u"¨"]=> - unicode(5) "¨" - [u"©"]=> - unicode(6) "©" - [u"ª"]=> - unicode(6) "ª" - [u"«"]=> - unicode(7) "«" - [u"¬"]=> - unicode(5) "¬" - [u"Â"]=> - unicode(5) "­" - [u"®"]=> - unicode(5) "®" - [u"¯"]=> - unicode(6) "¯" - [u"°"]=> - unicode(5) "°" - [u"±"]=> - unicode(8) "±" - [u"²"]=> - unicode(6) "²" - [u"³"]=> - unicode(6) "³" - [u"´"]=> - unicode(7) "´" - [u"µ"]=> - unicode(7) "µ" - [u"¶"]=> - unicode(6) "¶" - [u"·"]=> - unicode(8) "·" - [u"¸"]=> - unicode(7) "¸" - [u"¹"]=> - unicode(6) "¹" - [u"º"]=> - unicode(6) "º" - [u"»"]=> - unicode(7) "»" - [u"¼"]=> - unicode(8) "¼" - [u"½"]=> - unicode(8) "½" - [u"¾"]=> - unicode(8) "¾" - [u"¿"]=> - unicode(8) "¿" - [u"À"]=> - unicode(8) "À" - [u"Ã"]=> - unicode(8) "Á" - [u"Â"]=> - unicode(7) "Â" - [u"Ã"]=> - unicode(8) "Ã" - [u"Ä"]=> - unicode(6) "Ä" - [u"Ã…"]=> - unicode(7) "Å" - [u"Æ"]=> - unicode(7) "Æ" - [u"Ç"]=> - unicode(8) "Ç" - [u"È"]=> - unicode(8) "È" - [u"É"]=> - unicode(8) "É" - [u"Ê"]=> - unicode(7) "Ê" - [u"Ë"]=> - unicode(6) "Ë" - [u"ÃŒ"]=> - unicode(8) "Ì" - [u"Ã"]=> - unicode(8) "Í" - [u"ÃŽ"]=> - unicode(7) "Î" - [u"Ã"]=> - unicode(6) "Ï" - [u"Ã"]=> - unicode(5) "Ð" - [u"Ñ"]=> - unicode(8) "Ñ" - [u"Ã’"]=> - unicode(8) "Ò" - [u"Ó"]=> - unicode(8) "Ó" - [u"Ô"]=> - unicode(7) "Ô" - [u"Õ"]=> - unicode(8) "Õ" - [u"Ö"]=> - unicode(6) "Ö" - [u"×"]=> - unicode(7) "×" - [u"Ø"]=> - unicode(8) "Ø" - [u"Ù"]=> - unicode(8) "Ù" - [u"Ú"]=> - unicode(8) "Ú" - [u"Û"]=> - unicode(7) "Û" - [u"Ãœ"]=> - unicode(6) "Ü" - [u"Ã"]=> - unicode(8) "Ý" - [u"Þ"]=> - unicode(7) "Þ" - [u"ß"]=> - unicode(7) "ß" - [u"à "]=> - unicode(8) "à" - [u"á"]=> - unicode(8) "á" - [u"â"]=> - unicode(7) "â" - [u"ã"]=> - unicode(8) "ã" - [u"ä"]=> - unicode(6) "ä" - [u"Ã¥"]=> - unicode(7) "å" - [u"æ"]=> - unicode(7) "æ" - [u"ç"]=> - unicode(8) "ç" - [u"è"]=> - unicode(8) "è" - [u"é"]=> - unicode(8) "é" - [u"ê"]=> - unicode(7) "ê" - [u"ë"]=> - unicode(6) "ë" - [u"ì"]=> - unicode(8) "ì" - [u"Ã"]=> - unicode(8) "í" - [u"î"]=> - unicode(7) "î" - [u"ï"]=> - unicode(6) "ï" - [u"ð"]=> - unicode(5) "ð" - [u"ñ"]=> - unicode(8) "ñ" - [u"ò"]=> - unicode(8) "ò" - [u"ó"]=> - unicode(8) "ó" - [u"ô"]=> - unicode(7) "ô" - [u"õ"]=> - unicode(8) "õ" - [u"ö"]=> - unicode(6) "ö" - [u"÷"]=> - unicode(8) "÷" - [u"ø"]=> - unicode(8) "ø" - [u"ù"]=> - unicode(8) "ù" - [u"ú"]=> - unicode(8) "ú" - [u"û"]=> - unicode(7) "û" - [u"ü"]=> - unicode(6) "ü" - [u"ý"]=> - unicode(8) "ý" - [u"þ"]=> - unicode(7) "þ" - [u"ÿ"]=> - unicode(6) "ÿ" - [u"Å’"]=> - unicode(7) "Œ" - [u"Å“"]=> - unicode(7) "œ" - [u"Å "]=> - unicode(8) "Š" - [u"Å¡"]=> - unicode(8) "š" - [u"Ÿ"]=> - unicode(6) "Ÿ" - [u"Æ’"]=> - unicode(6) "ƒ" - [u"ˆ"]=> - unicode(6) "ˆ" - [u"Ëœ"]=> - unicode(7) "˜" - [u"Α"]=> - unicode(7) "Α" - [u"Î’"]=> - unicode(6) "Β" - [u"Γ"]=> - unicode(7) "Γ" - [u"Δ"]=> - unicode(7) "Δ" - [u"Ε"]=> - unicode(9) "Ε" - [u"Ζ"]=> - unicode(6) "Ζ" - [u"Η"]=> - unicode(5) "Η" - [u"Θ"]=> - unicode(7) "Θ" - [u"Ι"]=> - unicode(6) "Ι" - [u"Κ"]=> - unicode(7) "Κ" - [u"Λ"]=> - unicode(8) "Λ" - [u"Îœ"]=> - unicode(4) "Μ" - [u"Î"]=> - unicode(4) "Ν" - [u"Ξ"]=> - unicode(4) "Ξ" - [u"Ο"]=> - unicode(9) "Ο" - [u"Î "]=> - unicode(4) "Π" - [u"Ρ"]=> - unicode(5) "Ρ" - [u"Σ"]=> - unicode(7) "Σ" - [u"Τ"]=> - unicode(5) "Τ" - [u"Î¥"]=> - unicode(9) "Υ" - [u"Φ"]=> - unicode(5) "Φ" - [u"Χ"]=> - unicode(5) "Χ" - [u"Ψ"]=> - unicode(5) "Ψ" - [u"Ω"]=> - unicode(7) "Ω" - [u"α"]=> - unicode(7) "α" - [u"β"]=> - unicode(6) "β" - [u"γ"]=> - unicode(7) "γ" - [u"δ"]=> - unicode(7) "δ" - [u"ε"]=> - unicode(9) "ε" - [u"ζ"]=> - unicode(6) "ζ" - [u"η"]=> - unicode(5) "η" - [u"θ"]=> - unicode(7) "θ" - [u"ι"]=> - unicode(6) "ι" - [u"κ"]=> - unicode(7) "κ" - [u"λ"]=> - unicode(8) "λ" - [u"μ"]=> - unicode(4) "μ" - [u"ν"]=> - unicode(4) "ν" - [u"ξ"]=> - unicode(4) "ξ" - [u"ο"]=> - unicode(9) "ο" - [u"Ï€"]=> - unicode(4) "π" - [u"Ï"]=> - unicode(5) "ρ" - [u"Ï‚"]=> - unicode(8) "ς" - [u"σ"]=> - unicode(7) "σ" - [u"Ï„"]=> - unicode(5) "τ" - [u"Ï…"]=> - unicode(9) "υ" - [u"φ"]=> - unicode(5) "φ" - [u"χ"]=> - unicode(5) "χ" - [u"ψ"]=> - unicode(5) "ψ" - [u"ω"]=> - unicode(7) "ω" - [u"Ï‘"]=> - unicode(10) "ϑ" - [u"Ï’"]=> - unicode(7) "ϒ" - [u"Ï–"]=> - unicode(5) "ϖ" - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(8) " " - [u"‌"]=> - unicode(6) "‌" - [u"â€"]=> - unicode(5) "‍" - [u"‎"]=> - unicode(5) "‎" - [u"â€"]=> - unicode(5) "‏" - [u"–"]=> - unicode(7) "–" - [u"—"]=> - unicode(7) "—" - [u"‘"]=> - unicode(7) "‘" - [u"’"]=> - unicode(7) "’" - [u"‚"]=> - unicode(7) "‚" - [u"“"]=> - unicode(7) "“" - [u"â€"]=> - unicode(7) "”" - [u"„"]=> - unicode(7) "„" - [u"†"]=> - unicode(8) "†" - [u"‡"]=> - unicode(8) "‡" - [u"•"]=> - unicode(6) "•" - [u"…"]=> - unicode(8) "…" - [u"‰"]=> - unicode(8) "‰" - [u"′"]=> - unicode(7) "′" - [u"″"]=> - unicode(7) "″" - [u"‹"]=> - unicode(8) "‹" - [u"›"]=> - unicode(8) "›" - [u"‾"]=> - unicode(7) "‾" - [u"â„"]=> - unicode(7) "⁄" - [u"€"]=> - unicode(6) "€" - [u"â„‘"]=> - unicode(7) "ℑ" - [u"℘"]=> - unicode(8) "℘" - [u"â„œ"]=> - unicode(6) "ℜ" - [u"â„¢"]=> - unicode(7) "™" - [u"ℵ"]=> - unicode(9) "ℵ" - [u"â†"]=> - unicode(6) "←" - [u"↑"]=> - unicode(6) "↑" - [u"→"]=> - unicode(6) "→" - [u"↓"]=> - unicode(6) "↓" - [u"↔"]=> - unicode(6) "↔" - [u"↵"]=> - unicode(7) "↵" - [u"â‡"]=> - unicode(6) "⇐" - [u"⇑"]=> - unicode(6) "⇑" - [u"⇒"]=> - unicode(6) "⇒" - [u"⇓"]=> - unicode(6) "⇓" - [u"⇔"]=> - unicode(6) "⇔" - [u"⇕"]=> - unicode(6) "⇕" - [u"⇚"]=> - unicode(7) "⇚" - [u"⇛"]=> - unicode(7) "⇛" - [u"â‡"]=> - unicode(7) "↝" - [u"∀"]=> - unicode(8) "∀" - [u"âˆ"]=> - unicode(6) "∁" - [u"∂"]=> - unicode(6) "∂" - [u"∃"]=> - unicode(7) "∃" - [u"∄"]=> - unicode(8) "∄" - [u"∅"]=> - unicode(7) "∅" - [u"∇"]=> - unicode(7) "∇" - [u"∈"]=> - unicode(6) "∈" - [u"∉"]=> - unicode(7) "∉" - [u"∊"]=> - unicode(7) "&epsis;" - [u"∋"]=> - unicode(4) "∋" - [u"∌"]=> - unicode(7) "∌" - [u"âˆ"]=> - unicode(7) "϶" - [u"âˆ"]=> - unicode(6) "∏" - [u"âˆ"]=> - unicode(8) "∐" - [u"∑"]=> - unicode(5) "∑" - [u"−"]=> - unicode(7) "−" - [u"∓"]=> - unicode(8) "∓" - [u"∔"]=> - unicode(8) "∔" - [u"∖"]=> - unicode(7) "∖" - [u"∗"]=> - unicode(8) "∗" - [u"∘"]=> - unicode(8) "∘" - [u"√"]=> - unicode(7) "√" - [u"âˆ"]=> - unicode(6) "∝" - [u"∞"]=> - unicode(7) "∞" - [u"∟"]=> - unicode(7) "&ang90;" - [u"∠"]=> - unicode(5) "∠" - [u"∡"]=> - unicode(8) "∡" - [u"∢"]=> - unicode(8) "∢" - [u"∣"]=> - unicode(5) "∣" - [u"∤"]=> - unicode(6) "∤" - [u"∥"]=> - unicode(5) "∥" - [u"∦"]=> - unicode(6) "∦" - [u"∧"]=> - unicode(5) "∧" - [u"∨"]=> - unicode(4) "∨" - [u"∩"]=> - unicode(5) "∩" - [u"∪"]=> - unicode(5) "∪" - [u"∫"]=> - unicode(5) "∫" - [u"∮"]=> - unicode(8) "∮" - [u"∴"]=> - unicode(8) "∴" - [u"∵"]=> - unicode(8) "∵" - [u"∼"]=> - unicode(5) "∼" - [u"∽"]=> - unicode(6) "∽" - [u"≀"]=> - unicode(8) "≀" - [u"â‰"]=> - unicode(6) "≁" - [u"≃"]=> - unicode(6) "≃" - [u"≄"]=> - unicode(7) "≄" - [u"≅"]=> - unicode(6) "≅" - [u"≇"]=> - unicode(7) "≇" - [u"≈"]=> - unicode(7) "≈" - [u"≉"]=> - unicode(5) "≉" - [u"≊"]=> - unicode(5) "≊" - [u"≌"]=> - unicode(7) "≌" - [u"â‰"]=> - unicode(7) "≈" - [u"≎"]=> - unicode(6) "≎" - [u"â‰"]=> - unicode(7) "≏" - [u"≠"]=> - unicode(4) "≠" - [u"≡"]=> - unicode(7) "≡" - [u"≤"]=> - unicode(4) "≤" - [u"≥"]=> - unicode(4) "≥" - [u"≦"]=> - unicode(4) "≦" - [u"≧"]=> - unicode(4) "≧" - [u"≨"]=> - unicode(5) "≨" - [u"≩"]=> - unicode(5) "≩" - [u"≪"]=> - unicode(4) "≪" - [u"≫"]=> - unicode(4) "≫" - [u"≬"]=> - unicode(7) "≬" - [u"≮"]=> - unicode(5) "≮" - [u"≯"]=> - unicode(5) "≯" - [u"≰"]=> - unicode(6) "⩽̸" - [u"≱"]=> - unicode(6) "⩾̸" - [u"≲"]=> - unicode(6) "≲" - [u"≳"]=> - unicode(6) "≳" - [u"≶"]=> - unicode(4) "≶" - [u"≷"]=> - unicode(4) "≷" - [u"≺"]=> - unicode(4) "≺" - [u"≻"]=> - unicode(4) "≻" - [u"≼"]=> - unicode(7) "&cupre;" - [u"≽"]=> - unicode(7) "&sscue;" - [u"≾"]=> - unicode(7) "≾" - [u"≿"]=> - unicode(7) "≿" - [u"⊀"]=> - unicode(5) "⊀" - [u"âŠ"]=> - unicode(5) "⊁" - [u"⊂"]=> - unicode(5) "⊂" - [u"⊃"]=> - unicode(5) "⊃" - [u"⊄"]=> - unicode(6) "⊄" - [u"⊅"]=> - unicode(6) "⊅" - [u"⊆"]=> - unicode(6) "⊆" - [u"⊇"]=> - unicode(6) "⊇" - [u"⊕"]=> - unicode(7) "⊕" - [u"⊗"]=> - unicode(8) "⊗" - [u"⊥"]=> - unicode(6) "⊥" - [u"â‹…"]=> - unicode(6) "⋅" - [u"⌈"]=> - unicode(7) "⌈" - [u"⌉"]=> - unicode(7) "⌉" - [u"⌊"]=> - unicode(8) "⌊" - [u"⌋"]=> - unicode(8) "⌋" - [u"〈"]=> - unicode(6) "⟨" - [u"〉"]=> - unicode(6) "⟩" - [u"â—Š"]=> - unicode(5) "◊" - [u"â™ "]=> - unicode(8) "♠" - [u"♣"]=> - unicode(7) "♣" - [u"♥"]=> - unicode(8) "♥" - [u"♦"]=> - unicode(7) "♦" - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- with table = HTML_SPECIALCHARS -- -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -Done diff --git a/ext/standard/tests/strings/get_html_translation_table_basic2-win32.phpt b/ext/standard/tests/strings/get_html_translation_table_basic2-win32.phpt deleted file mode 100644 index 200df23c83..0000000000 --- a/ext/standard/tests/strings/get_html_translation_table_basic2-win32.phpt +++ /dev/null @@ -1,1734 +0,0 @@ ---TEST-- -Test get_html_translation_table() function : basic functionality - table as HTML_ENTITIES & quote_style(ENT_COMPAT, ENT_QUOTES) ---SKIPIF-- -<?php -if( substr(PHP_OS, 0, 3) != "WIN"){ - die('skip only for Windows'); -} - -if( ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); - -if( !setlocale(LC_ALL, "English_United States.1252") ) { - die('skip failed to set locale settings to "English_United States.1252"'); -} -?> ---FILE-- -<?php -/* Prototype : array get_html_translation_table ( [int $table [, int $quote_style]] ) - * Description: Returns the internal translation table used by htmlspecialchars and htmlentities - * Source code: ext/standard/html.c -*/ - -/* Test get_html_translation_table() when table is specified as HTML_ENTITIES */ - -//set locale -setlocale(LC_ALL, "English_United States.1252"); - -echo "*** Testing get_html_translation_table() : basic functionality ***\n"; - -// Calling get_html_translation_table() with default arguments -echo "-- with default arguments --\n"; -var_dump( get_html_translation_table() ); - -// Calling get_html_translation_table() with all arguments -// $table as HTML_ENTITIES and different quote style -echo "-- with table = HTML_ENTITIES & quote_style = ENT_COMPAT --\n"; -$table = HTML_ENTITIES; -$quote_style = ENT_COMPAT; -var_dump( get_html_translation_table($table, $quote_style) ); - -echo "-- with table = HTML_ENTITIES & quote_style = ENT_QUOTES --\n"; -$quote_style = ENT_QUOTES; -var_dump( get_html_translation_table($table, $quote_style) ); - -echo "Done\n"; -?> ---EXPECTF-- -*** Testing get_html_translation_table() : basic functionality *** --- with default arguments -- -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- with table = HTML_ENTITIES & quote_style = ENT_COMPAT -- -array(100) { - [" "]=> - string(6) " " - ["¡"]=> - string(7) "¡" - ["¢"]=> - string(6) "¢" - ["£"]=> - string(7) "£" - ["¤"]=> - string(8) "¤" - ["¥"]=> - string(5) "¥" - ["¦"]=> - string(8) "¦" - ["§"]=> - string(6) "§" - ["¨"]=> - string(5) "¨" - ["©"]=> - string(6) "©" - ["ª"]=> - string(6) "ª" - ["«"]=> - string(7) "«" - ["¬"]=> - string(5) "¬" - [""]=> - string(5) "­" - ["®"]=> - string(5) "®" - ["¯"]=> - string(6) "¯" - ["°"]=> - string(5) "°" - ["±"]=> - string(8) "±" - ["²"]=> - string(6) "²" - ["³"]=> - string(6) "³" - ["´"]=> - string(7) "´" - ["µ"]=> - string(7) "µ" - ["¶"]=> - string(6) "¶" - ["·"]=> - string(8) "·" - ["¸"]=> - string(7) "¸" - ["¹"]=> - string(6) "¹" - ["º"]=> - string(6) "º" - ["»"]=> - string(7) "»" - ["¼"]=> - string(8) "¼" - ["½"]=> - string(8) "½" - ["¾"]=> - string(8) "¾" - ["¿"]=> - string(8) "¿" - ["À"]=> - string(8) "À" - ["Á"]=> - string(8) "Á" - ["Â"]=> - string(7) "Â" - ["Ã"]=> - string(8) "Ã" - ["Ä"]=> - string(6) "Ä" - ["Å"]=> - string(7) "Å" - ["Æ"]=> - string(7) "Æ" - ["Ç"]=> - string(8) "Ç" - ["È"]=> - string(8) "È" - ["É"]=> - string(8) "É" - ["Ê"]=> - string(7) "Ê" - ["Ë"]=> - string(6) "Ë" - ["Ì"]=> - string(8) "Ì" - ["Í"]=> - string(8) "Í" - ["Î"]=> - string(7) "Î" - ["Ï"]=> - string(6) "Ï" - ["Ð"]=> - string(5) "Ð" - ["Ñ"]=> - string(8) "Ñ" - ["Ò"]=> - string(8) "Ò" - ["Ó"]=> - string(8) "Ó" - ["Ô"]=> - string(7) "Ô" - ["Õ"]=> - string(8) "Õ" - ["Ö"]=> - string(6) "Ö" - ["×"]=> - string(7) "×" - ["Ø"]=> - string(8) "Ø" - ["Ù"]=> - string(8) "Ù" - ["Ú"]=> - string(8) "Ú" - ["Û"]=> - string(7) "Û" - ["Ü"]=> - string(6) "Ü" - ["Ý"]=> - string(8) "Ý" - ["Þ"]=> - string(7) "Þ" - ["ß"]=> - string(7) "ß" - ["à"]=> - string(8) "à" - ["á"]=> - string(8) "á" - ["â"]=> - string(7) "â" - ["ã"]=> - string(8) "ã" - ["ä"]=> - string(6) "ä" - ["å"]=> - string(7) "å" - ["æ"]=> - string(7) "æ" - ["ç"]=> - string(8) "ç" - ["è"]=> - string(8) "è" - ["é"]=> - string(8) "é" - ["ê"]=> - string(7) "ê" - ["ë"]=> - string(6) "ë" - ["ì"]=> - string(8) "ì" - ["í"]=> - string(8) "í" - ["î"]=> - string(7) "î" - ["ï"]=> - string(6) "ï" - ["ð"]=> - string(5) "ð" - ["ñ"]=> - string(8) "ñ" - ["ò"]=> - string(8) "ò" - ["ó"]=> - string(8) "ó" - ["ô"]=> - string(7) "ô" - ["õ"]=> - string(8) "õ" - ["ö"]=> - string(6) "ö" - ["÷"]=> - string(8) "÷" - ["ø"]=> - string(8) "ø" - ["ù"]=> - string(8) "ù" - ["ú"]=> - string(8) "ú" - ["û"]=> - string(7) "û" - ["ü"]=> - string(6) "ü" - ["ý"]=> - string(8) "ý" - ["þ"]=> - string(7) "þ" - ["ÿ"]=> - string(6) "ÿ" - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- with table = HTML_ENTITIES & quote_style = ENT_QUOTES -- -array(101) { - [" "]=> - string(6) " " - ["¡"]=> - string(7) "¡" - ["¢"]=> - string(6) "¢" - ["£"]=> - string(7) "£" - ["¤"]=> - string(8) "¤" - ["¥"]=> - string(5) "¥" - ["¦"]=> - string(8) "¦" - ["§"]=> - string(6) "§" - ["¨"]=> - string(5) "¨" - ["©"]=> - string(6) "©" - ["ª"]=> - string(6) "ª" - ["«"]=> - string(7) "«" - ["¬"]=> - string(5) "¬" - [""]=> - string(5) "­" - ["®"]=> - string(5) "®" - ["¯"]=> - string(6) "¯" - ["°"]=> - string(5) "°" - ["±"]=> - string(8) "±" - ["²"]=> - string(6) "²" - ["³"]=> - string(6) "³" - ["´"]=> - string(7) "´" - ["µ"]=> - string(7) "µ" - ["¶"]=> - string(6) "¶" - ["·"]=> - string(8) "·" - ["¸"]=> - string(7) "¸" - ["¹"]=> - string(6) "¹" - ["º"]=> - string(6) "º" - ["»"]=> - string(7) "»" - ["¼"]=> - string(8) "¼" - ["½"]=> - string(8) "½" - ["¾"]=> - string(8) "¾" - ["¿"]=> - string(8) "¿" - ["À"]=> - string(8) "À" - ["Á"]=> - string(8) "Á" - ["Â"]=> - string(7) "Â" - ["Ã"]=> - string(8) "Ã" - ["Ä"]=> - string(6) "Ä" - ["Å"]=> - string(7) "Å" - ["Æ"]=> - string(7) "Æ" - ["Ç"]=> - string(8) "Ç" - ["È"]=> - string(8) "È" - ["É"]=> - string(8) "É" - ["Ê"]=> - string(7) "Ê" - ["Ë"]=> - string(6) "Ë" - ["Ì"]=> - string(8) "Ì" - ["Í"]=> - string(8) "Í" - ["Î"]=> - string(7) "Î" - ["Ï"]=> - string(6) "Ï" - ["Ð"]=> - string(5) "Ð" - ["Ñ"]=> - string(8) "Ñ" - ["Ò"]=> - string(8) "Ò" - ["Ó"]=> - string(8) "Ó" - ["Ô"]=> - string(7) "Ô" - ["Õ"]=> - string(8) "Õ" - ["Ö"]=> - string(6) "Ö" - ["×"]=> - string(7) "×" - ["Ø"]=> - string(8) "Ø" - ["Ù"]=> - string(8) "Ù" - ["Ú"]=> - string(8) "Ú" - ["Û"]=> - string(7) "Û" - ["Ü"]=> - string(6) "Ü" - ["Ý"]=> - string(8) "Ý" - ["Þ"]=> - string(7) "Þ" - ["ß"]=> - string(7) "ß" - ["à"]=> - string(8) "à" - ["á"]=> - string(8) "á" - ["â"]=> - string(7) "â" - ["ã"]=> - string(8) "ã" - ["ä"]=> - string(6) "ä" - ["å"]=> - string(7) "å" - ["æ"]=> - string(7) "æ" - ["ç"]=> - string(8) "ç" - ["è"]=> - string(8) "è" - ["é"]=> - string(8) "é" - ["ê"]=> - string(7) "ê" - ["ë"]=> - string(6) "ë" - ["ì"]=> - string(8) "ì" - ["í"]=> - string(8) "í" - ["î"]=> - string(7) "î" - ["ï"]=> - string(6) "ï" - ["ð"]=> - string(5) "ð" - ["ñ"]=> - string(8) "ñ" - ["ò"]=> - string(8) "ò" - ["ó"]=> - string(8) "ó" - ["ô"]=> - string(7) "ô" - ["õ"]=> - string(8) "õ" - ["ö"]=> - string(6) "ö" - ["÷"]=> - string(8) "÷" - ["ø"]=> - string(8) "ø" - ["ù"]=> - string(8) "ù" - ["ú"]=> - string(8) "ú" - ["û"]=> - string(7) "û" - ["ü"]=> - string(6) "ü" - ["ý"]=> - string(8) "ý" - ["þ"]=> - string(7) "þ" - ["ÿ"]=> - string(6) "ÿ" - ["""]=> - string(6) """ - ["'"]=> - string(5) "'" - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -Done ---UEXPECTF-- -*** Testing get_html_translation_table() : basic functionality *** --- with default arguments -- -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- with table = HTML_ENTITIES & quote_style = ENT_COMPAT -- -array(311) { - [u" "]=> - unicode(6) " " - [u"¡"]=> - unicode(7) "¡" - [u"¢"]=> - unicode(6) "¢" - [u"£"]=> - unicode(7) "£" - [u"¤"]=> - unicode(8) "¤" - [u"Â¥"]=> - unicode(5) "¥" - [u"¦"]=> - unicode(8) "¦" - [u"§"]=> - unicode(6) "§" - [u"¨"]=> - unicode(5) "¨" - [u"©"]=> - unicode(6) "©" - [u"ª"]=> - unicode(6) "ª" - [u"«"]=> - unicode(7) "«" - [u"¬"]=> - unicode(5) "¬" - [u"Â"]=> - unicode(5) "­" - [u"®"]=> - unicode(5) "®" - [u"¯"]=> - unicode(6) "¯" - [u"°"]=> - unicode(5) "°" - [u"±"]=> - unicode(8) "±" - [u"²"]=> - unicode(6) "²" - [u"³"]=> - unicode(6) "³" - [u"´"]=> - unicode(7) "´" - [u"µ"]=> - unicode(7) "µ" - [u"¶"]=> - unicode(6) "¶" - [u"·"]=> - unicode(8) "·" - [u"¸"]=> - unicode(7) "¸" - [u"¹"]=> - unicode(6) "¹" - [u"º"]=> - unicode(6) "º" - [u"»"]=> - unicode(7) "»" - [u"¼"]=> - unicode(8) "¼" - [u"½"]=> - unicode(8) "½" - [u"¾"]=> - unicode(8) "¾" - [u"¿"]=> - unicode(8) "¿" - [u"À"]=> - unicode(8) "À" - [u"Ã"]=> - unicode(8) "Á" - [u"Â"]=> - unicode(7) "Â" - [u"Ã"]=> - unicode(8) "Ã" - [u"Ä"]=> - unicode(6) "Ä" - [u"Ã…"]=> - unicode(7) "Å" - [u"Æ"]=> - unicode(7) "Æ" - [u"Ç"]=> - unicode(8) "Ç" - [u"È"]=> - unicode(8) "È" - [u"É"]=> - unicode(8) "É" - [u"Ê"]=> - unicode(7) "Ê" - [u"Ë"]=> - unicode(6) "Ë" - [u"ÃŒ"]=> - unicode(8) "Ì" - [u"Ã"]=> - unicode(8) "Í" - [u"ÃŽ"]=> - unicode(7) "Î" - [u"Ã"]=> - unicode(6) "Ï" - [u"Ã"]=> - unicode(5) "Ð" - [u"Ñ"]=> - unicode(8) "Ñ" - [u"Ã’"]=> - unicode(8) "Ò" - [u"Ó"]=> - unicode(8) "Ó" - [u"Ô"]=> - unicode(7) "Ô" - [u"Õ"]=> - unicode(8) "Õ" - [u"Ö"]=> - unicode(6) "Ö" - [u"×"]=> - unicode(7) "×" - [u"Ø"]=> - unicode(8) "Ø" - [u"Ù"]=> - unicode(8) "Ù" - [u"Ú"]=> - unicode(8) "Ú" - [u"Û"]=> - unicode(7) "Û" - [u"Ãœ"]=> - unicode(6) "Ü" - [u"Ã"]=> - unicode(8) "Ý" - [u"Þ"]=> - unicode(7) "Þ" - [u"ß"]=> - unicode(7) "ß" - [u"à "]=> - unicode(8) "à" - [u"á"]=> - unicode(8) "á" - [u"â"]=> - unicode(7) "â" - [u"ã"]=> - unicode(8) "ã" - [u"ä"]=> - unicode(6) "ä" - [u"Ã¥"]=> - unicode(7) "å" - [u"æ"]=> - unicode(7) "æ" - [u"ç"]=> - unicode(8) "ç" - [u"è"]=> - unicode(8) "è" - [u"é"]=> - unicode(8) "é" - [u"ê"]=> - unicode(7) "ê" - [u"ë"]=> - unicode(6) "ë" - [u"ì"]=> - unicode(8) "ì" - [u"Ã"]=> - unicode(8) "í" - [u"î"]=> - unicode(7) "î" - [u"ï"]=> - unicode(6) "ï" - [u"ð"]=> - unicode(5) "ð" - [u"ñ"]=> - unicode(8) "ñ" - [u"ò"]=> - unicode(8) "ò" - [u"ó"]=> - unicode(8) "ó" - [u"ô"]=> - unicode(7) "ô" - [u"õ"]=> - unicode(8) "õ" - [u"ö"]=> - unicode(6) "ö" - [u"÷"]=> - unicode(8) "÷" - [u"ø"]=> - unicode(8) "ø" - [u"ù"]=> - unicode(8) "ù" - [u"ú"]=> - unicode(8) "ú" - [u"û"]=> - unicode(7) "û" - [u"ü"]=> - unicode(6) "ü" - [u"ý"]=> - unicode(8) "ý" - [u"þ"]=> - unicode(7) "þ" - [u"ÿ"]=> - unicode(6) "ÿ" - [u"Å’"]=> - unicode(7) "Œ" - [u"Å“"]=> - unicode(7) "œ" - [u"Å "]=> - unicode(8) "Š" - [u"Å¡"]=> - unicode(8) "š" - [u"Ÿ"]=> - unicode(6) "Ÿ" - [u"Æ’"]=> - unicode(6) "ƒ" - [u"ˆ"]=> - unicode(6) "ˆ" - [u"Ëœ"]=> - unicode(7) "˜" - [u"Α"]=> - unicode(7) "Α" - [u"Î’"]=> - unicode(6) "Β" - [u"Γ"]=> - unicode(7) "Γ" - [u"Δ"]=> - unicode(7) "Δ" - [u"Ε"]=> - unicode(9) "Ε" - [u"Ζ"]=> - unicode(6) "Ζ" - [u"Η"]=> - unicode(5) "Η" - [u"Θ"]=> - unicode(7) "Θ" - [u"Ι"]=> - unicode(6) "Ι" - [u"Κ"]=> - unicode(7) "Κ" - [u"Λ"]=> - unicode(8) "Λ" - [u"Îœ"]=> - unicode(4) "Μ" - [u"Î"]=> - unicode(4) "Ν" - [u"Ξ"]=> - unicode(4) "Ξ" - [u"Ο"]=> - unicode(9) "Ο" - [u"Î "]=> - unicode(4) "Π" - [u"Ρ"]=> - unicode(5) "Ρ" - [u"Σ"]=> - unicode(7) "Σ" - [u"Τ"]=> - unicode(5) "Τ" - [u"Î¥"]=> - unicode(9) "Υ" - [u"Φ"]=> - unicode(5) "Φ" - [u"Χ"]=> - unicode(5) "Χ" - [u"Ψ"]=> - unicode(5) "Ψ" - [u"Ω"]=> - unicode(7) "Ω" - [u"α"]=> - unicode(7) "α" - [u"β"]=> - unicode(6) "β" - [u"γ"]=> - unicode(7) "γ" - [u"δ"]=> - unicode(7) "δ" - [u"ε"]=> - unicode(9) "ε" - [u"ζ"]=> - unicode(6) "ζ" - [u"η"]=> - unicode(5) "η" - [u"θ"]=> - unicode(7) "θ" - [u"ι"]=> - unicode(6) "ι" - [u"κ"]=> - unicode(7) "κ" - [u"λ"]=> - unicode(8) "λ" - [u"μ"]=> - unicode(4) "μ" - [u"ν"]=> - unicode(4) "ν" - [u"ξ"]=> - unicode(4) "ξ" - [u"ο"]=> - unicode(9) "ο" - [u"Ï€"]=> - unicode(4) "π" - [u"Ï"]=> - unicode(5) "ρ" - [u"Ï‚"]=> - unicode(8) "ς" - [u"σ"]=> - unicode(7) "σ" - [u"Ï„"]=> - unicode(5) "τ" - [u"Ï…"]=> - unicode(9) "υ" - [u"φ"]=> - unicode(5) "φ" - [u"χ"]=> - unicode(5) "χ" - [u"ψ"]=> - unicode(5) "ψ" - [u"ω"]=> - unicode(7) "ω" - [u"Ï‘"]=> - unicode(10) "ϑ" - [u"Ï’"]=> - unicode(7) "ϒ" - [u"Ï–"]=> - unicode(5) "ϖ" - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(8) " " - [u"‌"]=> - unicode(6) "‌" - [u"â€"]=> - unicode(5) "‍" - [u"‎"]=> - unicode(5) "‎" - [u"â€"]=> - unicode(5) "‏" - [u"–"]=> - unicode(7) "–" - [u"—"]=> - unicode(7) "—" - [u"‘"]=> - unicode(7) "‘" - [u"’"]=> - unicode(7) "’" - [u"‚"]=> - unicode(7) "‚" - [u"“"]=> - unicode(7) "“" - [u"â€"]=> - unicode(7) "”" - [u"„"]=> - unicode(7) "„" - [u"†"]=> - unicode(8) "†" - [u"‡"]=> - unicode(8) "‡" - [u"•"]=> - unicode(6) "•" - [u"…"]=> - unicode(8) "…" - [u"‰"]=> - unicode(8) "‰" - [u"′"]=> - unicode(7) "′" - [u"″"]=> - unicode(7) "″" - [u"‹"]=> - unicode(8) "‹" - [u"›"]=> - unicode(8) "›" - [u"‾"]=> - unicode(7) "‾" - [u"â„"]=> - unicode(7) "⁄" - [u"€"]=> - unicode(6) "€" - [u"â„‘"]=> - unicode(7) "ℑ" - [u"℘"]=> - unicode(8) "℘" - [u"â„œ"]=> - unicode(6) "ℜ" - [u"â„¢"]=> - unicode(7) "™" - [u"ℵ"]=> - unicode(9) "ℵ" - [u"â†"]=> - unicode(6) "←" - [u"↑"]=> - unicode(6) "↑" - [u"→"]=> - unicode(6) "→" - [u"↓"]=> - unicode(6) "↓" - [u"↔"]=> - unicode(6) "↔" - [u"↵"]=> - unicode(7) "↵" - [u"â‡"]=> - unicode(6) "⇐" - [u"⇑"]=> - unicode(6) "⇑" - [u"⇒"]=> - unicode(6) "⇒" - [u"⇓"]=> - unicode(6) "⇓" - [u"⇔"]=> - unicode(6) "⇔" - [u"⇕"]=> - unicode(6) "⇕" - [u"⇚"]=> - unicode(7) "⇚" - [u"⇛"]=> - unicode(7) "⇛" - [u"â‡"]=> - unicode(7) "↝" - [u"∀"]=> - unicode(8) "∀" - [u"âˆ"]=> - unicode(6) "∁" - [u"∂"]=> - unicode(6) "∂" - [u"∃"]=> - unicode(7) "∃" - [u"∄"]=> - unicode(8) "∄" - [u"∅"]=> - unicode(7) "∅" - [u"∇"]=> - unicode(7) "∇" - [u"∈"]=> - unicode(6) "∈" - [u"∉"]=> - unicode(7) "∉" - [u"∊"]=> - unicode(7) "&epsis;" - [u"∋"]=> - unicode(4) "∋" - [u"∌"]=> - unicode(7) "∌" - [u"âˆ"]=> - unicode(7) "϶" - [u"âˆ"]=> - unicode(6) "∏" - [u"âˆ"]=> - unicode(8) "∐" - [u"∑"]=> - unicode(5) "∑" - [u"−"]=> - unicode(7) "−" - [u"∓"]=> - unicode(8) "∓" - [u"∔"]=> - unicode(8) "∔" - [u"∖"]=> - unicode(7) "∖" - [u"∗"]=> - unicode(8) "∗" - [u"∘"]=> - unicode(8) "∘" - [u"√"]=> - unicode(7) "√" - [u"âˆ"]=> - unicode(6) "∝" - [u"∞"]=> - unicode(7) "∞" - [u"∟"]=> - unicode(7) "&ang90;" - [u"∠"]=> - unicode(5) "∠" - [u"∡"]=> - unicode(8) "∡" - [u"∢"]=> - unicode(8) "∢" - [u"∣"]=> - unicode(5) "∣" - [u"∤"]=> - unicode(6) "∤" - [u"∥"]=> - unicode(5) "∥" - [u"∦"]=> - unicode(6) "∦" - [u"∧"]=> - unicode(5) "∧" - [u"∨"]=> - unicode(4) "∨" - [u"∩"]=> - unicode(5) "∩" - [u"∪"]=> - unicode(5) "∪" - [u"∫"]=> - unicode(5) "∫" - [u"∮"]=> - unicode(8) "∮" - [u"∴"]=> - unicode(8) "∴" - [u"∵"]=> - unicode(8) "∵" - [u"∼"]=> - unicode(5) "∼" - [u"∽"]=> - unicode(6) "∽" - [u"≀"]=> - unicode(8) "≀" - [u"â‰"]=> - unicode(6) "≁" - [u"≃"]=> - unicode(6) "≃" - [u"≄"]=> - unicode(7) "≄" - [u"≅"]=> - unicode(6) "≅" - [u"≇"]=> - unicode(7) "≇" - [u"≈"]=> - unicode(7) "≈" - [u"≉"]=> - unicode(5) "≉" - [u"≊"]=> - unicode(5) "≊" - [u"≌"]=> - unicode(7) "≌" - [u"â‰"]=> - unicode(7) "≈" - [u"≎"]=> - unicode(6) "≎" - [u"â‰"]=> - unicode(7) "≏" - [u"≠"]=> - unicode(4) "≠" - [u"≡"]=> - unicode(7) "≡" - [u"≤"]=> - unicode(4) "≤" - [u"≥"]=> - unicode(4) "≥" - [u"≦"]=> - unicode(4) "≦" - [u"≧"]=> - unicode(4) "≧" - [u"≨"]=> - unicode(5) "≨" - [u"≩"]=> - unicode(5) "≩" - [u"≪"]=> - unicode(4) "≪" - [u"≫"]=> - unicode(4) "≫" - [u"≬"]=> - unicode(7) "≬" - [u"≮"]=> - unicode(5) "≮" - [u"≯"]=> - unicode(5) "≯" - [u"≰"]=> - unicode(6) "⩽̸" - [u"≱"]=> - unicode(6) "⩾̸" - [u"≲"]=> - unicode(6) "≲" - [u"≳"]=> - unicode(6) "≳" - [u"≶"]=> - unicode(4) "≶" - [u"≷"]=> - unicode(4) "≷" - [u"≺"]=> - unicode(4) "≺" - [u"≻"]=> - unicode(4) "≻" - [u"≼"]=> - unicode(7) "&cupre;" - [u"≽"]=> - unicode(7) "&sscue;" - [u"≾"]=> - unicode(7) "≾" - [u"≿"]=> - unicode(7) "≿" - [u"⊀"]=> - unicode(5) "⊀" - [u"âŠ"]=> - unicode(5) "⊁" - [u"⊂"]=> - unicode(5) "⊂" - [u"⊃"]=> - unicode(5) "⊃" - [u"⊄"]=> - unicode(6) "⊄" - [u"⊅"]=> - unicode(6) "⊅" - [u"⊆"]=> - unicode(6) "⊆" - [u"⊇"]=> - unicode(6) "⊇" - [u"⊕"]=> - unicode(7) "⊕" - [u"⊗"]=> - unicode(8) "⊗" - [u"⊥"]=> - unicode(6) "⊥" - [u"â‹…"]=> - unicode(6) "⋅" - [u"⌈"]=> - unicode(7) "⌈" - [u"⌉"]=> - unicode(7) "⌉" - [u"⌊"]=> - unicode(8) "⌊" - [u"⌋"]=> - unicode(8) "⌋" - [u"〈"]=> - unicode(6) "⟨" - [u"〉"]=> - unicode(6) "⟩" - [u"â—Š"]=> - unicode(5) "◊" - [u"â™ "]=> - unicode(8) "♠" - [u"♣"]=> - unicode(7) "♣" - [u"♥"]=> - unicode(8) "♥" - [u"♦"]=> - unicode(7) "♦" - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- with table = HTML_ENTITIES & quote_style = ENT_QUOTES -- -array(312) { - [u" "]=> - unicode(6) " " - [u"¡"]=> - unicode(7) "¡" - [u"¢"]=> - unicode(6) "¢" - [u"£"]=> - unicode(7) "£" - [u"¤"]=> - unicode(8) "¤" - [u"Â¥"]=> - unicode(5) "¥" - [u"¦"]=> - unicode(8) "¦" - [u"§"]=> - unicode(6) "§" - [u"¨"]=> - unicode(5) "¨" - [u"©"]=> - unicode(6) "©" - [u"ª"]=> - unicode(6) "ª" - [u"«"]=> - unicode(7) "«" - [u"¬"]=> - unicode(5) "¬" - [u"Â"]=> - unicode(5) "­" - [u"®"]=> - unicode(5) "®" - [u"¯"]=> - unicode(6) "¯" - [u"°"]=> - unicode(5) "°" - [u"±"]=> - unicode(8) "±" - [u"²"]=> - unicode(6) "²" - [u"³"]=> - unicode(6) "³" - [u"´"]=> - unicode(7) "´" - [u"µ"]=> - unicode(7) "µ" - [u"¶"]=> - unicode(6) "¶" - [u"·"]=> - unicode(8) "·" - [u"¸"]=> - unicode(7) "¸" - [u"¹"]=> - unicode(6) "¹" - [u"º"]=> - unicode(6) "º" - [u"»"]=> - unicode(7) "»" - [u"¼"]=> - unicode(8) "¼" - [u"½"]=> - unicode(8) "½" - [u"¾"]=> - unicode(8) "¾" - [u"¿"]=> - unicode(8) "¿" - [u"À"]=> - unicode(8) "À" - [u"Ã"]=> - unicode(8) "Á" - [u"Â"]=> - unicode(7) "Â" - [u"Ã"]=> - unicode(8) "Ã" - [u"Ä"]=> - unicode(6) "Ä" - [u"Ã…"]=> - unicode(7) "Å" - [u"Æ"]=> - unicode(7) "Æ" - [u"Ç"]=> - unicode(8) "Ç" - [u"È"]=> - unicode(8) "È" - [u"É"]=> - unicode(8) "É" - [u"Ê"]=> - unicode(7) "Ê" - [u"Ë"]=> - unicode(6) "Ë" - [u"ÃŒ"]=> - unicode(8) "Ì" - [u"Ã"]=> - unicode(8) "Í" - [u"ÃŽ"]=> - unicode(7) "Î" - [u"Ã"]=> - unicode(6) "Ï" - [u"Ã"]=> - unicode(5) "Ð" - [u"Ñ"]=> - unicode(8) "Ñ" - [u"Ã’"]=> - unicode(8) "Ò" - [u"Ó"]=> - unicode(8) "Ó" - [u"Ô"]=> - unicode(7) "Ô" - [u"Õ"]=> - unicode(8) "Õ" - [u"Ö"]=> - unicode(6) "Ö" - [u"×"]=> - unicode(7) "×" - [u"Ø"]=> - unicode(8) "Ø" - [u"Ù"]=> - unicode(8) "Ù" - [u"Ú"]=> - unicode(8) "Ú" - [u"Û"]=> - unicode(7) "Û" - [u"Ãœ"]=> - unicode(6) "Ü" - [u"Ã"]=> - unicode(8) "Ý" - [u"Þ"]=> - unicode(7) "Þ" - [u"ß"]=> - unicode(7) "ß" - [u"à "]=> - unicode(8) "à" - [u"á"]=> - unicode(8) "á" - [u"â"]=> - unicode(7) "â" - [u"ã"]=> - unicode(8) "ã" - [u"ä"]=> - unicode(6) "ä" - [u"Ã¥"]=> - unicode(7) "å" - [u"æ"]=> - unicode(7) "æ" - [u"ç"]=> - unicode(8) "ç" - [u"è"]=> - unicode(8) "è" - [u"é"]=> - unicode(8) "é" - [u"ê"]=> - unicode(7) "ê" - [u"ë"]=> - unicode(6) "ë" - [u"ì"]=> - unicode(8) "ì" - [u"Ã"]=> - unicode(8) "í" - [u"î"]=> - unicode(7) "î" - [u"ï"]=> - unicode(6) "ï" - [u"ð"]=> - unicode(5) "ð" - [u"ñ"]=> - unicode(8) "ñ" - [u"ò"]=> - unicode(8) "ò" - [u"ó"]=> - unicode(8) "ó" - [u"ô"]=> - unicode(7) "ô" - [u"õ"]=> - unicode(8) "õ" - [u"ö"]=> - unicode(6) "ö" - [u"÷"]=> - unicode(8) "÷" - [u"ø"]=> - unicode(8) "ø" - [u"ù"]=> - unicode(8) "ù" - [u"ú"]=> - unicode(8) "ú" - [u"û"]=> - unicode(7) "û" - [u"ü"]=> - unicode(6) "ü" - [u"ý"]=> - unicode(8) "ý" - [u"þ"]=> - unicode(7) "þ" - [u"ÿ"]=> - unicode(6) "ÿ" - [u"Å’"]=> - unicode(7) "Œ" - [u"Å“"]=> - unicode(7) "œ" - [u"Å "]=> - unicode(8) "Š" - [u"Å¡"]=> - unicode(8) "š" - [u"Ÿ"]=> - unicode(6) "Ÿ" - [u"Æ’"]=> - unicode(6) "ƒ" - [u"ˆ"]=> - unicode(6) "ˆ" - [u"Ëœ"]=> - unicode(7) "˜" - [u"Α"]=> - unicode(7) "Α" - [u"Î’"]=> - unicode(6) "Β" - [u"Γ"]=> - unicode(7) "Γ" - [u"Δ"]=> - unicode(7) "Δ" - [u"Ε"]=> - unicode(9) "Ε" - [u"Ζ"]=> - unicode(6) "Ζ" - [u"Η"]=> - unicode(5) "Η" - [u"Θ"]=> - unicode(7) "Θ" - [u"Ι"]=> - unicode(6) "Ι" - [u"Κ"]=> - unicode(7) "Κ" - [u"Λ"]=> - unicode(8) "Λ" - [u"Îœ"]=> - unicode(4) "Μ" - [u"Î"]=> - unicode(4) "Ν" - [u"Ξ"]=> - unicode(4) "Ξ" - [u"Ο"]=> - unicode(9) "Ο" - [u"Î "]=> - unicode(4) "Π" - [u"Ρ"]=> - unicode(5) "Ρ" - [u"Σ"]=> - unicode(7) "Σ" - [u"Τ"]=> - unicode(5) "Τ" - [u"Î¥"]=> - unicode(9) "Υ" - [u"Φ"]=> - unicode(5) "Φ" - [u"Χ"]=> - unicode(5) "Χ" - [u"Ψ"]=> - unicode(5) "Ψ" - [u"Ω"]=> - unicode(7) "Ω" - [u"α"]=> - unicode(7) "α" - [u"β"]=> - unicode(6) "β" - [u"γ"]=> - unicode(7) "γ" - [u"δ"]=> - unicode(7) "δ" - [u"ε"]=> - unicode(9) "ε" - [u"ζ"]=> - unicode(6) "ζ" - [u"η"]=> - unicode(5) "η" - [u"θ"]=> - unicode(7) "θ" - [u"ι"]=> - unicode(6) "ι" - [u"κ"]=> - unicode(7) "κ" - [u"λ"]=> - unicode(8) "λ" - [u"μ"]=> - unicode(4) "μ" - [u"ν"]=> - unicode(4) "ν" - [u"ξ"]=> - unicode(4) "ξ" - [u"ο"]=> - unicode(9) "ο" - [u"Ï€"]=> - unicode(4) "π" - [u"Ï"]=> - unicode(5) "ρ" - [u"Ï‚"]=> - unicode(8) "ς" - [u"σ"]=> - unicode(7) "σ" - [u"Ï„"]=> - unicode(5) "τ" - [u"Ï…"]=> - unicode(9) "υ" - [u"φ"]=> - unicode(5) "φ" - [u"χ"]=> - unicode(5) "χ" - [u"ψ"]=> - unicode(5) "ψ" - [u"ω"]=> - unicode(7) "ω" - [u"Ï‘"]=> - unicode(10) "ϑ" - [u"Ï’"]=> - unicode(7) "ϒ" - [u"Ï–"]=> - unicode(5) "ϖ" - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(8) " " - [u"‌"]=> - unicode(6) "‌" - [u"â€"]=> - unicode(5) "‍" - [u"‎"]=> - unicode(5) "‎" - [u"â€"]=> - unicode(5) "‏" - [u"–"]=> - unicode(7) "–" - [u"—"]=> - unicode(7) "—" - [u"‘"]=> - unicode(7) "‘" - [u"’"]=> - unicode(7) "’" - [u"‚"]=> - unicode(7) "‚" - [u"“"]=> - unicode(7) "“" - [u"â€"]=> - unicode(7) "”" - [u"„"]=> - unicode(7) "„" - [u"†"]=> - unicode(8) "†" - [u"‡"]=> - unicode(8) "‡" - [u"•"]=> - unicode(6) "•" - [u"…"]=> - unicode(8) "…" - [u"‰"]=> - unicode(8) "‰" - [u"′"]=> - unicode(7) "′" - [u"″"]=> - unicode(7) "″" - [u"‹"]=> - unicode(8) "‹" - [u"›"]=> - unicode(8) "›" - [u"‾"]=> - unicode(7) "‾" - [u"â„"]=> - unicode(7) "⁄" - [u"€"]=> - unicode(6) "€" - [u"â„‘"]=> - unicode(7) "ℑ" - [u"℘"]=> - unicode(8) "℘" - [u"â„œ"]=> - unicode(6) "ℜ" - [u"â„¢"]=> - unicode(7) "™" - [u"ℵ"]=> - unicode(9) "ℵ" - [u"â†"]=> - unicode(6) "←" - [u"↑"]=> - unicode(6) "↑" - [u"→"]=> - unicode(6) "→" - [u"↓"]=> - unicode(6) "↓" - [u"↔"]=> - unicode(6) "↔" - [u"↵"]=> - unicode(7) "↵" - [u"â‡"]=> - unicode(6) "⇐" - [u"⇑"]=> - unicode(6) "⇑" - [u"⇒"]=> - unicode(6) "⇒" - [u"⇓"]=> - unicode(6) "⇓" - [u"⇔"]=> - unicode(6) "⇔" - [u"⇕"]=> - unicode(6) "⇕" - [u"⇚"]=> - unicode(7) "⇚" - [u"⇛"]=> - unicode(7) "⇛" - [u"â‡"]=> - unicode(7) "↝" - [u"∀"]=> - unicode(8) "∀" - [u"âˆ"]=> - unicode(6) "∁" - [u"∂"]=> - unicode(6) "∂" - [u"∃"]=> - unicode(7) "∃" - [u"∄"]=> - unicode(8) "∄" - [u"∅"]=> - unicode(7) "∅" - [u"∇"]=> - unicode(7) "∇" - [u"∈"]=> - unicode(6) "∈" - [u"∉"]=> - unicode(7) "∉" - [u"∊"]=> - unicode(7) "&epsis;" - [u"∋"]=> - unicode(4) "∋" - [u"∌"]=> - unicode(7) "∌" - [u"âˆ"]=> - unicode(7) "϶" - [u"âˆ"]=> - unicode(6) "∏" - [u"âˆ"]=> - unicode(8) "∐" - [u"∑"]=> - unicode(5) "∑" - [u"−"]=> - unicode(7) "−" - [u"∓"]=> - unicode(8) "∓" - [u"∔"]=> - unicode(8) "∔" - [u"∖"]=> - unicode(7) "∖" - [u"∗"]=> - unicode(8) "∗" - [u"∘"]=> - unicode(8) "∘" - [u"√"]=> - unicode(7) "√" - [u"âˆ"]=> - unicode(6) "∝" - [u"∞"]=> - unicode(7) "∞" - [u"∟"]=> - unicode(7) "&ang90;" - [u"∠"]=> - unicode(5) "∠" - [u"∡"]=> - unicode(8) "∡" - [u"∢"]=> - unicode(8) "∢" - [u"∣"]=> - unicode(5) "∣" - [u"∤"]=> - unicode(6) "∤" - [u"∥"]=> - unicode(5) "∥" - [u"∦"]=> - unicode(6) "∦" - [u"∧"]=> - unicode(5) "∧" - [u"∨"]=> - unicode(4) "∨" - [u"∩"]=> - unicode(5) "∩" - [u"∪"]=> - unicode(5) "∪" - [u"∫"]=> - unicode(5) "∫" - [u"∮"]=> - unicode(8) "∮" - [u"∴"]=> - unicode(8) "∴" - [u"∵"]=> - unicode(8) "∵" - [u"∼"]=> - unicode(5) "∼" - [u"∽"]=> - unicode(6) "∽" - [u"≀"]=> - unicode(8) "≀" - [u"â‰"]=> - unicode(6) "≁" - [u"≃"]=> - unicode(6) "≃" - [u"≄"]=> - unicode(7) "≄" - [u"≅"]=> - unicode(6) "≅" - [u"≇"]=> - unicode(7) "≇" - [u"≈"]=> - unicode(7) "≈" - [u"≉"]=> - unicode(5) "≉" - [u"≊"]=> - unicode(5) "≊" - [u"≌"]=> - unicode(7) "≌" - [u"â‰"]=> - unicode(7) "≈" - [u"≎"]=> - unicode(6) "≎" - [u"â‰"]=> - unicode(7) "≏" - [u"≠"]=> - unicode(4) "≠" - [u"≡"]=> - unicode(7) "≡" - [u"≤"]=> - unicode(4) "≤" - [u"≥"]=> - unicode(4) "≥" - [u"≦"]=> - unicode(4) "≦" - [u"≧"]=> - unicode(4) "≧" - [u"≨"]=> - unicode(5) "≨" - [u"≩"]=> - unicode(5) "≩" - [u"≪"]=> - unicode(4) "≪" - [u"≫"]=> - unicode(4) "≫" - [u"≬"]=> - unicode(7) "≬" - [u"≮"]=> - unicode(5) "≮" - [u"≯"]=> - unicode(5) "≯" - [u"≰"]=> - unicode(6) "⩽̸" - [u"≱"]=> - unicode(6) "⩾̸" - [u"≲"]=> - unicode(6) "≲" - [u"≳"]=> - unicode(6) "≳" - [u"≶"]=> - unicode(4) "≶" - [u"≷"]=> - unicode(4) "≷" - [u"≺"]=> - unicode(4) "≺" - [u"≻"]=> - unicode(4) "≻" - [u"≼"]=> - unicode(7) "&cupre;" - [u"≽"]=> - unicode(7) "&sscue;" - [u"≾"]=> - unicode(7) "≾" - [u"≿"]=> - unicode(7) "≿" - [u"⊀"]=> - unicode(5) "⊀" - [u"âŠ"]=> - unicode(5) "⊁" - [u"⊂"]=> - unicode(5) "⊂" - [u"⊃"]=> - unicode(5) "⊃" - [u"⊄"]=> - unicode(6) "⊄" - [u"⊅"]=> - unicode(6) "⊅" - [u"⊆"]=> - unicode(6) "⊆" - [u"⊇"]=> - unicode(6) "⊇" - [u"⊕"]=> - unicode(7) "⊕" - [u"⊗"]=> - unicode(8) "⊗" - [u"⊥"]=> - unicode(6) "⊥" - [u"â‹…"]=> - unicode(6) "⋅" - [u"⌈"]=> - unicode(7) "⌈" - [u"⌉"]=> - unicode(7) "⌉" - [u"⌊"]=> - unicode(8) "⌊" - [u"⌋"]=> - unicode(8) "⌋" - [u"〈"]=> - unicode(6) "⟨" - [u"〉"]=> - unicode(6) "⟩" - [u"â—Š"]=> - unicode(5) "◊" - [u"â™ "]=> - unicode(8) "♠" - [u"♣"]=> - unicode(7) "♣" - [u"♥"]=> - unicode(8) "♥" - [u"♦"]=> - unicode(7) "♦" - [u"""]=> - unicode(6) """ - [u"'"]=> - unicode(5) "'" - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -Done diff --git a/ext/standard/tests/strings/get_html_translation_table_basic2.phpt b/ext/standard/tests/strings/get_html_translation_table_basic2.phpt deleted file mode 100644 index 450312a798..0000000000 --- a/ext/standard/tests/strings/get_html_translation_table_basic2.phpt +++ /dev/null @@ -1,1734 +0,0 @@ ---TEST-- -Test get_html_translation_table() function : basic functionality - table as HTML_ENTITIES & quote_style(ENT_COMPAT, ENT_QUOTES) ---SKIPIF-- -<?php -if( substr(PHP_OS, 0, 3) == "WIN"){ - die('skip Not for Windows'); -} - -if( ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); - -if( !setlocale(LC_ALL, "en_US.UTF-8") ) { - die('skip failed to set locale settings to "en-US.UTF-8"'); -} -?> ---FILE-- -<?php -/* Prototype : array get_html_translation_table ( [int $table [, int $quote_style]] ) - * Description: Returns the internal translation table used by htmlspecialchars and htmlentities - * Source code: ext/standard/html.c -*/ - -/* Test get_html_translation_table() when table is specified as HTML_ENTITIES */ - -//set locale to en_US.UTF-8 -setlocale(LC_ALL, "en_US.UTF-8"); - -echo "*** Testing get_html_translation_table() : basic functionality ***\n"; - -// Calling get_html_translation_table() with default arguments -echo "-- with default arguments --\n"; -var_dump( get_html_translation_table() ); - -// Calling get_html_translation_table() with all arguments -// $table as HTML_ENTITIES and different quote style -echo "-- with table = HTML_ENTITIES & quote_style = ENT_COMPAT --\n"; -$table = HTML_ENTITIES; -$quote_style = ENT_COMPAT; -var_dump( get_html_translation_table($table, $quote_style) ); - -echo "-- with table = HTML_ENTITIES & quote_style = ENT_QUOTES --\n"; -$quote_style = ENT_QUOTES; -var_dump( get_html_translation_table($table, $quote_style) ); - -echo "Done\n"; -?> ---EXPECTF-- -*** Testing get_html_translation_table() : basic functionality *** --- with default arguments -- -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- with table = HTML_ENTITIES & quote_style = ENT_COMPAT -- -array(100) { - [" "]=> - string(6) " " - ["¡"]=> - string(7) "¡" - ["¢"]=> - string(6) "¢" - ["£"]=> - string(7) "£" - ["¤"]=> - string(8) "¤" - ["¥"]=> - string(5) "¥" - ["¦"]=> - string(8) "¦" - ["§"]=> - string(6) "§" - ["¨"]=> - string(5) "¨" - ["©"]=> - string(6) "©" - ["ª"]=> - string(6) "ª" - ["«"]=> - string(7) "«" - ["¬"]=> - string(5) "¬" - [""]=> - string(5) "­" - ["®"]=> - string(5) "®" - ["¯"]=> - string(6) "¯" - ["°"]=> - string(5) "°" - ["±"]=> - string(8) "±" - ["²"]=> - string(6) "²" - ["³"]=> - string(6) "³" - ["´"]=> - string(7) "´" - ["µ"]=> - string(7) "µ" - ["¶"]=> - string(6) "¶" - ["·"]=> - string(8) "·" - ["¸"]=> - string(7) "¸" - ["¹"]=> - string(6) "¹" - ["º"]=> - string(6) "º" - ["»"]=> - string(7) "»" - ["¼"]=> - string(8) "¼" - ["½"]=> - string(8) "½" - ["¾"]=> - string(8) "¾" - ["¿"]=> - string(8) "¿" - ["À"]=> - string(8) "À" - ["Á"]=> - string(8) "Á" - ["Â"]=> - string(7) "Â" - ["Ã"]=> - string(8) "Ã" - ["Ä"]=> - string(6) "Ä" - ["Å"]=> - string(7) "Å" - ["Æ"]=> - string(7) "Æ" - ["Ç"]=> - string(8) "Ç" - ["È"]=> - string(8) "È" - ["É"]=> - string(8) "É" - ["Ê"]=> - string(7) "Ê" - ["Ë"]=> - string(6) "Ë" - ["Ì"]=> - string(8) "Ì" - ["Í"]=> - string(8) "Í" - ["Î"]=> - string(7) "Î" - ["Ï"]=> - string(6) "Ï" - ["Ð"]=> - string(5) "Ð" - ["Ñ"]=> - string(8) "Ñ" - ["Ò"]=> - string(8) "Ò" - ["Ó"]=> - string(8) "Ó" - ["Ô"]=> - string(7) "Ô" - ["Õ"]=> - string(8) "Õ" - ["Ö"]=> - string(6) "Ö" - ["×"]=> - string(7) "×" - ["Ø"]=> - string(8) "Ø" - ["Ù"]=> - string(8) "Ù" - ["Ú"]=> - string(8) "Ú" - ["Û"]=> - string(7) "Û" - ["Ü"]=> - string(6) "Ü" - ["Ý"]=> - string(8) "Ý" - ["Þ"]=> - string(7) "Þ" - ["ß"]=> - string(7) "ß" - ["à"]=> - string(8) "à" - ["á"]=> - string(8) "á" - ["â"]=> - string(7) "â" - ["ã"]=> - string(8) "ã" - ["ä"]=> - string(6) "ä" - ["å"]=> - string(7) "å" - ["æ"]=> - string(7) "æ" - ["ç"]=> - string(8) "ç" - ["è"]=> - string(8) "è" - ["é"]=> - string(8) "é" - ["ê"]=> - string(7) "ê" - ["ë"]=> - string(6) "ë" - ["ì"]=> - string(8) "ì" - ["í"]=> - string(8) "í" - ["î"]=> - string(7) "î" - ["ï"]=> - string(6) "ï" - ["ð"]=> - string(5) "ð" - ["ñ"]=> - string(8) "ñ" - ["ò"]=> - string(8) "ò" - ["ó"]=> - string(8) "ó" - ["ô"]=> - string(7) "ô" - ["õ"]=> - string(8) "õ" - ["ö"]=> - string(6) "ö" - ["÷"]=> - string(8) "÷" - ["ø"]=> - string(8) "ø" - ["ù"]=> - string(8) "ù" - ["ú"]=> - string(8) "ú" - ["û"]=> - string(7) "û" - ["ü"]=> - string(6) "ü" - ["ý"]=> - string(8) "ý" - ["þ"]=> - string(7) "þ" - ["ÿ"]=> - string(6) "ÿ" - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- with table = HTML_ENTITIES & quote_style = ENT_QUOTES -- -array(101) { - [" "]=> - string(6) " " - ["¡"]=> - string(7) "¡" - ["¢"]=> - string(6) "¢" - ["£"]=> - string(7) "£" - ["¤"]=> - string(8) "¤" - ["¥"]=> - string(5) "¥" - ["¦"]=> - string(8) "¦" - ["§"]=> - string(6) "§" - ["¨"]=> - string(5) "¨" - ["©"]=> - string(6) "©" - ["ª"]=> - string(6) "ª" - ["«"]=> - string(7) "«" - ["¬"]=> - string(5) "¬" - [""]=> - string(5) "­" - ["®"]=> - string(5) "®" - ["¯"]=> - string(6) "¯" - ["°"]=> - string(5) "°" - ["±"]=> - string(8) "±" - ["²"]=> - string(6) "²" - ["³"]=> - string(6) "³" - ["´"]=> - string(7) "´" - ["µ"]=> - string(7) "µ" - ["¶"]=> - string(6) "¶" - ["·"]=> - string(8) "·" - ["¸"]=> - string(7) "¸" - ["¹"]=> - string(6) "¹" - ["º"]=> - string(6) "º" - ["»"]=> - string(7) "»" - ["¼"]=> - string(8) "¼" - ["½"]=> - string(8) "½" - ["¾"]=> - string(8) "¾" - ["¿"]=> - string(8) "¿" - ["À"]=> - string(8) "À" - ["Á"]=> - string(8) "Á" - ["Â"]=> - string(7) "Â" - ["Ã"]=> - string(8) "Ã" - ["Ä"]=> - string(6) "Ä" - ["Å"]=> - string(7) "Å" - ["Æ"]=> - string(7) "Æ" - ["Ç"]=> - string(8) "Ç" - ["È"]=> - string(8) "È" - ["É"]=> - string(8) "É" - ["Ê"]=> - string(7) "Ê" - ["Ë"]=> - string(6) "Ë" - ["Ì"]=> - string(8) "Ì" - ["Í"]=> - string(8) "Í" - ["Î"]=> - string(7) "Î" - ["Ï"]=> - string(6) "Ï" - ["Ð"]=> - string(5) "Ð" - ["Ñ"]=> - string(8) "Ñ" - ["Ò"]=> - string(8) "Ò" - ["Ó"]=> - string(8) "Ó" - ["Ô"]=> - string(7) "Ô" - ["Õ"]=> - string(8) "Õ" - ["Ö"]=> - string(6) "Ö" - ["×"]=> - string(7) "×" - ["Ø"]=> - string(8) "Ø" - ["Ù"]=> - string(8) "Ù" - ["Ú"]=> - string(8) "Ú" - ["Û"]=> - string(7) "Û" - ["Ü"]=> - string(6) "Ü" - ["Ý"]=> - string(8) "Ý" - ["Þ"]=> - string(7) "Þ" - ["ß"]=> - string(7) "ß" - ["à"]=> - string(8) "à" - ["á"]=> - string(8) "á" - ["â"]=> - string(7) "â" - ["ã"]=> - string(8) "ã" - ["ä"]=> - string(6) "ä" - ["å"]=> - string(7) "å" - ["æ"]=> - string(7) "æ" - ["ç"]=> - string(8) "ç" - ["è"]=> - string(8) "è" - ["é"]=> - string(8) "é" - ["ê"]=> - string(7) "ê" - ["ë"]=> - string(6) "ë" - ["ì"]=> - string(8) "ì" - ["í"]=> - string(8) "í" - ["î"]=> - string(7) "î" - ["ï"]=> - string(6) "ï" - ["ð"]=> - string(5) "ð" - ["ñ"]=> - string(8) "ñ" - ["ò"]=> - string(8) "ò" - ["ó"]=> - string(8) "ó" - ["ô"]=> - string(7) "ô" - ["õ"]=> - string(8) "õ" - ["ö"]=> - string(6) "ö" - ["÷"]=> - string(8) "÷" - ["ø"]=> - string(8) "ø" - ["ù"]=> - string(8) "ù" - ["ú"]=> - string(8) "ú" - ["û"]=> - string(7) "û" - ["ü"]=> - string(6) "ü" - ["ý"]=> - string(8) "ý" - ["þ"]=> - string(7) "þ" - ["ÿ"]=> - string(6) "ÿ" - ["""]=> - string(6) """ - ["'"]=> - string(5) "'" - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -Done ---UEXPECTF-- -*** Testing get_html_translation_table() : basic functionality *** --- with default arguments -- -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- with table = HTML_ENTITIES & quote_style = ENT_COMPAT -- -array(311) { - [u" "]=> - unicode(6) " " - [u"¡"]=> - unicode(7) "¡" - [u"¢"]=> - unicode(6) "¢" - [u"£"]=> - unicode(7) "£" - [u"¤"]=> - unicode(8) "¤" - [u"Â¥"]=> - unicode(5) "¥" - [u"¦"]=> - unicode(8) "¦" - [u"§"]=> - unicode(6) "§" - [u"¨"]=> - unicode(5) "¨" - [u"©"]=> - unicode(6) "©" - [u"ª"]=> - unicode(6) "ª" - [u"«"]=> - unicode(7) "«" - [u"¬"]=> - unicode(5) "¬" - [u"Â"]=> - unicode(5) "­" - [u"®"]=> - unicode(5) "®" - [u"¯"]=> - unicode(6) "¯" - [u"°"]=> - unicode(5) "°" - [u"±"]=> - unicode(8) "±" - [u"²"]=> - unicode(6) "²" - [u"³"]=> - unicode(6) "³" - [u"´"]=> - unicode(7) "´" - [u"µ"]=> - unicode(7) "µ" - [u"¶"]=> - unicode(6) "¶" - [u"·"]=> - unicode(8) "·" - [u"¸"]=> - unicode(7) "¸" - [u"¹"]=> - unicode(6) "¹" - [u"º"]=> - unicode(6) "º" - [u"»"]=> - unicode(7) "»" - [u"¼"]=> - unicode(8) "¼" - [u"½"]=> - unicode(8) "½" - [u"¾"]=> - unicode(8) "¾" - [u"¿"]=> - unicode(8) "¿" - [u"À"]=> - unicode(8) "À" - [u"Ã"]=> - unicode(8) "Á" - [u"Â"]=> - unicode(7) "Â" - [u"Ã"]=> - unicode(8) "Ã" - [u"Ä"]=> - unicode(6) "Ä" - [u"Ã…"]=> - unicode(7) "Å" - [u"Æ"]=> - unicode(7) "Æ" - [u"Ç"]=> - unicode(8) "Ç" - [u"È"]=> - unicode(8) "È" - [u"É"]=> - unicode(8) "É" - [u"Ê"]=> - unicode(7) "Ê" - [u"Ë"]=> - unicode(6) "Ë" - [u"ÃŒ"]=> - unicode(8) "Ì" - [u"Ã"]=> - unicode(8) "Í" - [u"ÃŽ"]=> - unicode(7) "Î" - [u"Ã"]=> - unicode(6) "Ï" - [u"Ã"]=> - unicode(5) "Ð" - [u"Ñ"]=> - unicode(8) "Ñ" - [u"Ã’"]=> - unicode(8) "Ò" - [u"Ó"]=> - unicode(8) "Ó" - [u"Ô"]=> - unicode(7) "Ô" - [u"Õ"]=> - unicode(8) "Õ" - [u"Ö"]=> - unicode(6) "Ö" - [u"×"]=> - unicode(7) "×" - [u"Ø"]=> - unicode(8) "Ø" - [u"Ù"]=> - unicode(8) "Ù" - [u"Ú"]=> - unicode(8) "Ú" - [u"Û"]=> - unicode(7) "Û" - [u"Ãœ"]=> - unicode(6) "Ü" - [u"Ã"]=> - unicode(8) "Ý" - [u"Þ"]=> - unicode(7) "Þ" - [u"ß"]=> - unicode(7) "ß" - [u"à "]=> - unicode(8) "à" - [u"á"]=> - unicode(8) "á" - [u"â"]=> - unicode(7) "â" - [u"ã"]=> - unicode(8) "ã" - [u"ä"]=> - unicode(6) "ä" - [u"Ã¥"]=> - unicode(7) "å" - [u"æ"]=> - unicode(7) "æ" - [u"ç"]=> - unicode(8) "ç" - [u"è"]=> - unicode(8) "è" - [u"é"]=> - unicode(8) "é" - [u"ê"]=> - unicode(7) "ê" - [u"ë"]=> - unicode(6) "ë" - [u"ì"]=> - unicode(8) "ì" - [u"Ã"]=> - unicode(8) "í" - [u"î"]=> - unicode(7) "î" - [u"ï"]=> - unicode(6) "ï" - [u"ð"]=> - unicode(5) "ð" - [u"ñ"]=> - unicode(8) "ñ" - [u"ò"]=> - unicode(8) "ò" - [u"ó"]=> - unicode(8) "ó" - [u"ô"]=> - unicode(7) "ô" - [u"õ"]=> - unicode(8) "õ" - [u"ö"]=> - unicode(6) "ö" - [u"÷"]=> - unicode(8) "÷" - [u"ø"]=> - unicode(8) "ø" - [u"ù"]=> - unicode(8) "ù" - [u"ú"]=> - unicode(8) "ú" - [u"û"]=> - unicode(7) "û" - [u"ü"]=> - unicode(6) "ü" - [u"ý"]=> - unicode(8) "ý" - [u"þ"]=> - unicode(7) "þ" - [u"ÿ"]=> - unicode(6) "ÿ" - [u"Å’"]=> - unicode(7) "Œ" - [u"Å“"]=> - unicode(7) "œ" - [u"Å "]=> - unicode(8) "Š" - [u"Å¡"]=> - unicode(8) "š" - [u"Ÿ"]=> - unicode(6) "Ÿ" - [u"Æ’"]=> - unicode(6) "ƒ" - [u"ˆ"]=> - unicode(6) "ˆ" - [u"Ëœ"]=> - unicode(7) "˜" - [u"Α"]=> - unicode(7) "Α" - [u"Î’"]=> - unicode(6) "Β" - [u"Γ"]=> - unicode(7) "Γ" - [u"Δ"]=> - unicode(7) "Δ" - [u"Ε"]=> - unicode(9) "Ε" - [u"Ζ"]=> - unicode(6) "Ζ" - [u"Η"]=> - unicode(5) "Η" - [u"Θ"]=> - unicode(7) "Θ" - [u"Ι"]=> - unicode(6) "Ι" - [u"Κ"]=> - unicode(7) "Κ" - [u"Λ"]=> - unicode(8) "Λ" - [u"Îœ"]=> - unicode(4) "Μ" - [u"Î"]=> - unicode(4) "Ν" - [u"Ξ"]=> - unicode(4) "Ξ" - [u"Ο"]=> - unicode(9) "Ο" - [u"Î "]=> - unicode(4) "Π" - [u"Ρ"]=> - unicode(5) "Ρ" - [u"Σ"]=> - unicode(7) "Σ" - [u"Τ"]=> - unicode(5) "Τ" - [u"Î¥"]=> - unicode(9) "Υ" - [u"Φ"]=> - unicode(5) "Φ" - [u"Χ"]=> - unicode(5) "Χ" - [u"Ψ"]=> - unicode(5) "Ψ" - [u"Ω"]=> - unicode(7) "Ω" - [u"α"]=> - unicode(7) "α" - [u"β"]=> - unicode(6) "β" - [u"γ"]=> - unicode(7) "γ" - [u"δ"]=> - unicode(7) "δ" - [u"ε"]=> - unicode(9) "ε" - [u"ζ"]=> - unicode(6) "ζ" - [u"η"]=> - unicode(5) "η" - [u"θ"]=> - unicode(7) "θ" - [u"ι"]=> - unicode(6) "ι" - [u"κ"]=> - unicode(7) "κ" - [u"λ"]=> - unicode(8) "λ" - [u"μ"]=> - unicode(4) "μ" - [u"ν"]=> - unicode(4) "ν" - [u"ξ"]=> - unicode(4) "ξ" - [u"ο"]=> - unicode(9) "ο" - [u"Ï€"]=> - unicode(4) "π" - [u"Ï"]=> - unicode(5) "ρ" - [u"Ï‚"]=> - unicode(8) "ς" - [u"σ"]=> - unicode(7) "σ" - [u"Ï„"]=> - unicode(5) "τ" - [u"Ï…"]=> - unicode(9) "υ" - [u"φ"]=> - unicode(5) "φ" - [u"χ"]=> - unicode(5) "χ" - [u"ψ"]=> - unicode(5) "ψ" - [u"ω"]=> - unicode(7) "ω" - [u"Ï‘"]=> - unicode(10) "ϑ" - [u"Ï’"]=> - unicode(7) "ϒ" - [u"Ï–"]=> - unicode(5) "ϖ" - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(8) " " - [u"‌"]=> - unicode(6) "‌" - [u"â€"]=> - unicode(5) "‍" - [u"‎"]=> - unicode(5) "‎" - [u"â€"]=> - unicode(5) "‏" - [u"–"]=> - unicode(7) "–" - [u"—"]=> - unicode(7) "—" - [u"‘"]=> - unicode(7) "‘" - [u"’"]=> - unicode(7) "’" - [u"‚"]=> - unicode(7) "‚" - [u"“"]=> - unicode(7) "“" - [u"â€"]=> - unicode(7) "”" - [u"„"]=> - unicode(7) "„" - [u"†"]=> - unicode(8) "†" - [u"‡"]=> - unicode(8) "‡" - [u"•"]=> - unicode(6) "•" - [u"…"]=> - unicode(8) "…" - [u"‰"]=> - unicode(8) "‰" - [u"′"]=> - unicode(7) "′" - [u"″"]=> - unicode(7) "″" - [u"‹"]=> - unicode(8) "‹" - [u"›"]=> - unicode(8) "›" - [u"‾"]=> - unicode(7) "‾" - [u"â„"]=> - unicode(7) "⁄" - [u"€"]=> - unicode(6) "€" - [u"â„‘"]=> - unicode(7) "ℑ" - [u"℘"]=> - unicode(8) "℘" - [u"â„œ"]=> - unicode(6) "ℜ" - [u"â„¢"]=> - unicode(7) "™" - [u"ℵ"]=> - unicode(9) "ℵ" - [u"â†"]=> - unicode(6) "←" - [u"↑"]=> - unicode(6) "↑" - [u"→"]=> - unicode(6) "→" - [u"↓"]=> - unicode(6) "↓" - [u"↔"]=> - unicode(6) "↔" - [u"↵"]=> - unicode(7) "↵" - [u"â‡"]=> - unicode(6) "⇐" - [u"⇑"]=> - unicode(6) "⇑" - [u"⇒"]=> - unicode(6) "⇒" - [u"⇓"]=> - unicode(6) "⇓" - [u"⇔"]=> - unicode(6) "⇔" - [u"⇕"]=> - unicode(6) "⇕" - [u"⇚"]=> - unicode(7) "⇚" - [u"⇛"]=> - unicode(7) "⇛" - [u"â‡"]=> - unicode(7) "↝" - [u"∀"]=> - unicode(8) "∀" - [u"âˆ"]=> - unicode(6) "∁" - [u"∂"]=> - unicode(6) "∂" - [u"∃"]=> - unicode(7) "∃" - [u"∄"]=> - unicode(8) "∄" - [u"∅"]=> - unicode(7) "∅" - [u"∇"]=> - unicode(7) "∇" - [u"∈"]=> - unicode(6) "∈" - [u"∉"]=> - unicode(7) "∉" - [u"∊"]=> - unicode(7) "&epsis;" - [u"∋"]=> - unicode(4) "∋" - [u"∌"]=> - unicode(7) "∌" - [u"âˆ"]=> - unicode(7) "϶" - [u"âˆ"]=> - unicode(6) "∏" - [u"âˆ"]=> - unicode(8) "∐" - [u"∑"]=> - unicode(5) "∑" - [u"−"]=> - unicode(7) "−" - [u"∓"]=> - unicode(8) "∓" - [u"∔"]=> - unicode(8) "∔" - [u"∖"]=> - unicode(7) "∖" - [u"∗"]=> - unicode(8) "∗" - [u"∘"]=> - unicode(8) "∘" - [u"√"]=> - unicode(7) "√" - [u"âˆ"]=> - unicode(6) "∝" - [u"∞"]=> - unicode(7) "∞" - [u"∟"]=> - unicode(7) "&ang90;" - [u"∠"]=> - unicode(5) "∠" - [u"∡"]=> - unicode(8) "∡" - [u"∢"]=> - unicode(8) "∢" - [u"∣"]=> - unicode(5) "∣" - [u"∤"]=> - unicode(6) "∤" - [u"∥"]=> - unicode(5) "∥" - [u"∦"]=> - unicode(6) "∦" - [u"∧"]=> - unicode(5) "∧" - [u"∨"]=> - unicode(4) "∨" - [u"∩"]=> - unicode(5) "∩" - [u"∪"]=> - unicode(5) "∪" - [u"∫"]=> - unicode(5) "∫" - [u"∮"]=> - unicode(8) "∮" - [u"∴"]=> - unicode(8) "∴" - [u"∵"]=> - unicode(8) "∵" - [u"∼"]=> - unicode(5) "∼" - [u"∽"]=> - unicode(6) "∽" - [u"≀"]=> - unicode(8) "≀" - [u"â‰"]=> - unicode(6) "≁" - [u"≃"]=> - unicode(6) "≃" - [u"≄"]=> - unicode(7) "≄" - [u"≅"]=> - unicode(6) "≅" - [u"≇"]=> - unicode(7) "≇" - [u"≈"]=> - unicode(7) "≈" - [u"≉"]=> - unicode(5) "≉" - [u"≊"]=> - unicode(5) "≊" - [u"≌"]=> - unicode(7) "≌" - [u"â‰"]=> - unicode(7) "≈" - [u"≎"]=> - unicode(6) "≎" - [u"â‰"]=> - unicode(7) "≏" - [u"≠"]=> - unicode(4) "≠" - [u"≡"]=> - unicode(7) "≡" - [u"≤"]=> - unicode(4) "≤" - [u"≥"]=> - unicode(4) "≥" - [u"≦"]=> - unicode(4) "≦" - [u"≧"]=> - unicode(4) "≧" - [u"≨"]=> - unicode(5) "≨" - [u"≩"]=> - unicode(5) "≩" - [u"≪"]=> - unicode(4) "≪" - [u"≫"]=> - unicode(4) "≫" - [u"≬"]=> - unicode(7) "≬" - [u"≮"]=> - unicode(5) "≮" - [u"≯"]=> - unicode(5) "≯" - [u"≰"]=> - unicode(6) "⩽̸" - [u"≱"]=> - unicode(6) "⩾̸" - [u"≲"]=> - unicode(6) "≲" - [u"≳"]=> - unicode(6) "≳" - [u"≶"]=> - unicode(4) "≶" - [u"≷"]=> - unicode(4) "≷" - [u"≺"]=> - unicode(4) "≺" - [u"≻"]=> - unicode(4) "≻" - [u"≼"]=> - unicode(7) "&cupre;" - [u"≽"]=> - unicode(7) "&sscue;" - [u"≾"]=> - unicode(7) "≾" - [u"≿"]=> - unicode(7) "≿" - [u"⊀"]=> - unicode(5) "⊀" - [u"âŠ"]=> - unicode(5) "⊁" - [u"⊂"]=> - unicode(5) "⊂" - [u"⊃"]=> - unicode(5) "⊃" - [u"⊄"]=> - unicode(6) "⊄" - [u"⊅"]=> - unicode(6) "⊅" - [u"⊆"]=> - unicode(6) "⊆" - [u"⊇"]=> - unicode(6) "⊇" - [u"⊕"]=> - unicode(7) "⊕" - [u"⊗"]=> - unicode(8) "⊗" - [u"⊥"]=> - unicode(6) "⊥" - [u"â‹…"]=> - unicode(6) "⋅" - [u"⌈"]=> - unicode(7) "⌈" - [u"⌉"]=> - unicode(7) "⌉" - [u"⌊"]=> - unicode(8) "⌊" - [u"⌋"]=> - unicode(8) "⌋" - [u"〈"]=> - unicode(6) "⟨" - [u"〉"]=> - unicode(6) "⟩" - [u"â—Š"]=> - unicode(5) "◊" - [u"â™ "]=> - unicode(8) "♠" - [u"♣"]=> - unicode(7) "♣" - [u"♥"]=> - unicode(8) "♥" - [u"♦"]=> - unicode(7) "♦" - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- with table = HTML_ENTITIES & quote_style = ENT_QUOTES -- -array(312) { - [u" "]=> - unicode(6) " " - [u"¡"]=> - unicode(7) "¡" - [u"¢"]=> - unicode(6) "¢" - [u"£"]=> - unicode(7) "£" - [u"¤"]=> - unicode(8) "¤" - [u"Â¥"]=> - unicode(5) "¥" - [u"¦"]=> - unicode(8) "¦" - [u"§"]=> - unicode(6) "§" - [u"¨"]=> - unicode(5) "¨" - [u"©"]=> - unicode(6) "©" - [u"ª"]=> - unicode(6) "ª" - [u"«"]=> - unicode(7) "«" - [u"¬"]=> - unicode(5) "¬" - [u"Â"]=> - unicode(5) "­" - [u"®"]=> - unicode(5) "®" - [u"¯"]=> - unicode(6) "¯" - [u"°"]=> - unicode(5) "°" - [u"±"]=> - unicode(8) "±" - [u"²"]=> - unicode(6) "²" - [u"³"]=> - unicode(6) "³" - [u"´"]=> - unicode(7) "´" - [u"µ"]=> - unicode(7) "µ" - [u"¶"]=> - unicode(6) "¶" - [u"·"]=> - unicode(8) "·" - [u"¸"]=> - unicode(7) "¸" - [u"¹"]=> - unicode(6) "¹" - [u"º"]=> - unicode(6) "º" - [u"»"]=> - unicode(7) "»" - [u"¼"]=> - unicode(8) "¼" - [u"½"]=> - unicode(8) "½" - [u"¾"]=> - unicode(8) "¾" - [u"¿"]=> - unicode(8) "¿" - [u"À"]=> - unicode(8) "À" - [u"Ã"]=> - unicode(8) "Á" - [u"Â"]=> - unicode(7) "Â" - [u"Ã"]=> - unicode(8) "Ã" - [u"Ä"]=> - unicode(6) "Ä" - [u"Ã…"]=> - unicode(7) "Å" - [u"Æ"]=> - unicode(7) "Æ" - [u"Ç"]=> - unicode(8) "Ç" - [u"È"]=> - unicode(8) "È" - [u"É"]=> - unicode(8) "É" - [u"Ê"]=> - unicode(7) "Ê" - [u"Ë"]=> - unicode(6) "Ë" - [u"ÃŒ"]=> - unicode(8) "Ì" - [u"Ã"]=> - unicode(8) "Í" - [u"ÃŽ"]=> - unicode(7) "Î" - [u"Ã"]=> - unicode(6) "Ï" - [u"Ã"]=> - unicode(5) "Ð" - [u"Ñ"]=> - unicode(8) "Ñ" - [u"Ã’"]=> - unicode(8) "Ò" - [u"Ó"]=> - unicode(8) "Ó" - [u"Ô"]=> - unicode(7) "Ô" - [u"Õ"]=> - unicode(8) "Õ" - [u"Ö"]=> - unicode(6) "Ö" - [u"×"]=> - unicode(7) "×" - [u"Ø"]=> - unicode(8) "Ø" - [u"Ù"]=> - unicode(8) "Ù" - [u"Ú"]=> - unicode(8) "Ú" - [u"Û"]=> - unicode(7) "Û" - [u"Ãœ"]=> - unicode(6) "Ü" - [u"Ã"]=> - unicode(8) "Ý" - [u"Þ"]=> - unicode(7) "Þ" - [u"ß"]=> - unicode(7) "ß" - [u"à "]=> - unicode(8) "à" - [u"á"]=> - unicode(8) "á" - [u"â"]=> - unicode(7) "â" - [u"ã"]=> - unicode(8) "ã" - [u"ä"]=> - unicode(6) "ä" - [u"Ã¥"]=> - unicode(7) "å" - [u"æ"]=> - unicode(7) "æ" - [u"ç"]=> - unicode(8) "ç" - [u"è"]=> - unicode(8) "è" - [u"é"]=> - unicode(8) "é" - [u"ê"]=> - unicode(7) "ê" - [u"ë"]=> - unicode(6) "ë" - [u"ì"]=> - unicode(8) "ì" - [u"Ã"]=> - unicode(8) "í" - [u"î"]=> - unicode(7) "î" - [u"ï"]=> - unicode(6) "ï" - [u"ð"]=> - unicode(5) "ð" - [u"ñ"]=> - unicode(8) "ñ" - [u"ò"]=> - unicode(8) "ò" - [u"ó"]=> - unicode(8) "ó" - [u"ô"]=> - unicode(7) "ô" - [u"õ"]=> - unicode(8) "õ" - [u"ö"]=> - unicode(6) "ö" - [u"÷"]=> - unicode(8) "÷" - [u"ø"]=> - unicode(8) "ø" - [u"ù"]=> - unicode(8) "ù" - [u"ú"]=> - unicode(8) "ú" - [u"û"]=> - unicode(7) "û" - [u"ü"]=> - unicode(6) "ü" - [u"ý"]=> - unicode(8) "ý" - [u"þ"]=> - unicode(7) "þ" - [u"ÿ"]=> - unicode(6) "ÿ" - [u"Å’"]=> - unicode(7) "Œ" - [u"Å“"]=> - unicode(7) "œ" - [u"Å "]=> - unicode(8) "Š" - [u"Å¡"]=> - unicode(8) "š" - [u"Ÿ"]=> - unicode(6) "Ÿ" - [u"Æ’"]=> - unicode(6) "ƒ" - [u"ˆ"]=> - unicode(6) "ˆ" - [u"Ëœ"]=> - unicode(7) "˜" - [u"Α"]=> - unicode(7) "Α" - [u"Î’"]=> - unicode(6) "Β" - [u"Γ"]=> - unicode(7) "Γ" - [u"Δ"]=> - unicode(7) "Δ" - [u"Ε"]=> - unicode(9) "Ε" - [u"Ζ"]=> - unicode(6) "Ζ" - [u"Η"]=> - unicode(5) "Η" - [u"Θ"]=> - unicode(7) "Θ" - [u"Ι"]=> - unicode(6) "Ι" - [u"Κ"]=> - unicode(7) "Κ" - [u"Λ"]=> - unicode(8) "Λ" - [u"Îœ"]=> - unicode(4) "Μ" - [u"Î"]=> - unicode(4) "Ν" - [u"Ξ"]=> - unicode(4) "Ξ" - [u"Ο"]=> - unicode(9) "Ο" - [u"Î "]=> - unicode(4) "Π" - [u"Ρ"]=> - unicode(5) "Ρ" - [u"Σ"]=> - unicode(7) "Σ" - [u"Τ"]=> - unicode(5) "Τ" - [u"Î¥"]=> - unicode(9) "Υ" - [u"Φ"]=> - unicode(5) "Φ" - [u"Χ"]=> - unicode(5) "Χ" - [u"Ψ"]=> - unicode(5) "Ψ" - [u"Ω"]=> - unicode(7) "Ω" - [u"α"]=> - unicode(7) "α" - [u"β"]=> - unicode(6) "β" - [u"γ"]=> - unicode(7) "γ" - [u"δ"]=> - unicode(7) "δ" - [u"ε"]=> - unicode(9) "ε" - [u"ζ"]=> - unicode(6) "ζ" - [u"η"]=> - unicode(5) "η" - [u"θ"]=> - unicode(7) "θ" - [u"ι"]=> - unicode(6) "ι" - [u"κ"]=> - unicode(7) "κ" - [u"λ"]=> - unicode(8) "λ" - [u"μ"]=> - unicode(4) "μ" - [u"ν"]=> - unicode(4) "ν" - [u"ξ"]=> - unicode(4) "ξ" - [u"ο"]=> - unicode(9) "ο" - [u"Ï€"]=> - unicode(4) "π" - [u"Ï"]=> - unicode(5) "ρ" - [u"Ï‚"]=> - unicode(8) "ς" - [u"σ"]=> - unicode(7) "σ" - [u"Ï„"]=> - unicode(5) "τ" - [u"Ï…"]=> - unicode(9) "υ" - [u"φ"]=> - unicode(5) "φ" - [u"χ"]=> - unicode(5) "χ" - [u"ψ"]=> - unicode(5) "ψ" - [u"ω"]=> - unicode(7) "ω" - [u"Ï‘"]=> - unicode(10) "ϑ" - [u"Ï’"]=> - unicode(7) "ϒ" - [u"Ï–"]=> - unicode(5) "ϖ" - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(8) " " - [u"‌"]=> - unicode(6) "‌" - [u"â€"]=> - unicode(5) "‍" - [u"‎"]=> - unicode(5) "‎" - [u"â€"]=> - unicode(5) "‏" - [u"–"]=> - unicode(7) "–" - [u"—"]=> - unicode(7) "—" - [u"‘"]=> - unicode(7) "‘" - [u"’"]=> - unicode(7) "’" - [u"‚"]=> - unicode(7) "‚" - [u"“"]=> - unicode(7) "“" - [u"â€"]=> - unicode(7) "”" - [u"„"]=> - unicode(7) "„" - [u"†"]=> - unicode(8) "†" - [u"‡"]=> - unicode(8) "‡" - [u"•"]=> - unicode(6) "•" - [u"…"]=> - unicode(8) "…" - [u"‰"]=> - unicode(8) "‰" - [u"′"]=> - unicode(7) "′" - [u"″"]=> - unicode(7) "″" - [u"‹"]=> - unicode(8) "‹" - [u"›"]=> - unicode(8) "›" - [u"‾"]=> - unicode(7) "‾" - [u"â„"]=> - unicode(7) "⁄" - [u"€"]=> - unicode(6) "€" - [u"â„‘"]=> - unicode(7) "ℑ" - [u"℘"]=> - unicode(8) "℘" - [u"â„œ"]=> - unicode(6) "ℜ" - [u"â„¢"]=> - unicode(7) "™" - [u"ℵ"]=> - unicode(9) "ℵ" - [u"â†"]=> - unicode(6) "←" - [u"↑"]=> - unicode(6) "↑" - [u"→"]=> - unicode(6) "→" - [u"↓"]=> - unicode(6) "↓" - [u"↔"]=> - unicode(6) "↔" - [u"↵"]=> - unicode(7) "↵" - [u"â‡"]=> - unicode(6) "⇐" - [u"⇑"]=> - unicode(6) "⇑" - [u"⇒"]=> - unicode(6) "⇒" - [u"⇓"]=> - unicode(6) "⇓" - [u"⇔"]=> - unicode(6) "⇔" - [u"⇕"]=> - unicode(6) "⇕" - [u"⇚"]=> - unicode(7) "⇚" - [u"⇛"]=> - unicode(7) "⇛" - [u"â‡"]=> - unicode(7) "↝" - [u"∀"]=> - unicode(8) "∀" - [u"âˆ"]=> - unicode(6) "∁" - [u"∂"]=> - unicode(6) "∂" - [u"∃"]=> - unicode(7) "∃" - [u"∄"]=> - unicode(8) "∄" - [u"∅"]=> - unicode(7) "∅" - [u"∇"]=> - unicode(7) "∇" - [u"∈"]=> - unicode(6) "∈" - [u"∉"]=> - unicode(7) "∉" - [u"∊"]=> - unicode(7) "&epsis;" - [u"∋"]=> - unicode(4) "∋" - [u"∌"]=> - unicode(7) "∌" - [u"âˆ"]=> - unicode(7) "϶" - [u"âˆ"]=> - unicode(6) "∏" - [u"âˆ"]=> - unicode(8) "∐" - [u"∑"]=> - unicode(5) "∑" - [u"−"]=> - unicode(7) "−" - [u"∓"]=> - unicode(8) "∓" - [u"∔"]=> - unicode(8) "∔" - [u"∖"]=> - unicode(7) "∖" - [u"∗"]=> - unicode(8) "∗" - [u"∘"]=> - unicode(8) "∘" - [u"√"]=> - unicode(7) "√" - [u"âˆ"]=> - unicode(6) "∝" - [u"∞"]=> - unicode(7) "∞" - [u"∟"]=> - unicode(7) "&ang90;" - [u"∠"]=> - unicode(5) "∠" - [u"∡"]=> - unicode(8) "∡" - [u"∢"]=> - unicode(8) "∢" - [u"∣"]=> - unicode(5) "∣" - [u"∤"]=> - unicode(6) "∤" - [u"∥"]=> - unicode(5) "∥" - [u"∦"]=> - unicode(6) "∦" - [u"∧"]=> - unicode(5) "∧" - [u"∨"]=> - unicode(4) "∨" - [u"∩"]=> - unicode(5) "∩" - [u"∪"]=> - unicode(5) "∪" - [u"∫"]=> - unicode(5) "∫" - [u"∮"]=> - unicode(8) "∮" - [u"∴"]=> - unicode(8) "∴" - [u"∵"]=> - unicode(8) "∵" - [u"∼"]=> - unicode(5) "∼" - [u"∽"]=> - unicode(6) "∽" - [u"≀"]=> - unicode(8) "≀" - [u"â‰"]=> - unicode(6) "≁" - [u"≃"]=> - unicode(6) "≃" - [u"≄"]=> - unicode(7) "≄" - [u"≅"]=> - unicode(6) "≅" - [u"≇"]=> - unicode(7) "≇" - [u"≈"]=> - unicode(7) "≈" - [u"≉"]=> - unicode(5) "≉" - [u"≊"]=> - unicode(5) "≊" - [u"≌"]=> - unicode(7) "≌" - [u"â‰"]=> - unicode(7) "≈" - [u"≎"]=> - unicode(6) "≎" - [u"â‰"]=> - unicode(7) "≏" - [u"≠"]=> - unicode(4) "≠" - [u"≡"]=> - unicode(7) "≡" - [u"≤"]=> - unicode(4) "≤" - [u"≥"]=> - unicode(4) "≥" - [u"≦"]=> - unicode(4) "≦" - [u"≧"]=> - unicode(4) "≧" - [u"≨"]=> - unicode(5) "≨" - [u"≩"]=> - unicode(5) "≩" - [u"≪"]=> - unicode(4) "≪" - [u"≫"]=> - unicode(4) "≫" - [u"≬"]=> - unicode(7) "≬" - [u"≮"]=> - unicode(5) "≮" - [u"≯"]=> - unicode(5) "≯" - [u"≰"]=> - unicode(6) "⩽̸" - [u"≱"]=> - unicode(6) "⩾̸" - [u"≲"]=> - unicode(6) "≲" - [u"≳"]=> - unicode(6) "≳" - [u"≶"]=> - unicode(4) "≶" - [u"≷"]=> - unicode(4) "≷" - [u"≺"]=> - unicode(4) "≺" - [u"≻"]=> - unicode(4) "≻" - [u"≼"]=> - unicode(7) "&cupre;" - [u"≽"]=> - unicode(7) "&sscue;" - [u"≾"]=> - unicode(7) "≾" - [u"≿"]=> - unicode(7) "≿" - [u"⊀"]=> - unicode(5) "⊀" - [u"âŠ"]=> - unicode(5) "⊁" - [u"⊂"]=> - unicode(5) "⊂" - [u"⊃"]=> - unicode(5) "⊃" - [u"⊄"]=> - unicode(6) "⊄" - [u"⊅"]=> - unicode(6) "⊅" - [u"⊆"]=> - unicode(6) "⊆" - [u"⊇"]=> - unicode(6) "⊇" - [u"⊕"]=> - unicode(7) "⊕" - [u"⊗"]=> - unicode(8) "⊗" - [u"⊥"]=> - unicode(6) "⊥" - [u"â‹…"]=> - unicode(6) "⋅" - [u"⌈"]=> - unicode(7) "⌈" - [u"⌉"]=> - unicode(7) "⌉" - [u"⌊"]=> - unicode(8) "⌊" - [u"⌋"]=> - unicode(8) "⌋" - [u"〈"]=> - unicode(6) "⟨" - [u"〉"]=> - unicode(6) "⟩" - [u"â—Š"]=> - unicode(5) "◊" - [u"â™ "]=> - unicode(8) "♠" - [u"♣"]=> - unicode(7) "♣" - [u"♥"]=> - unicode(8) "♥" - [u"♦"]=> - unicode(7) "♦" - [u"""]=> - unicode(6) """ - [u"'"]=> - unicode(5) "'" - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -Done diff --git a/ext/standard/tests/strings/get_html_translation_table_basic3-win32.phpt b/ext/standard/tests/strings/get_html_translation_table_basic3-win32.phpt deleted file mode 100644 index 6f7575ab06..0000000000 --- a/ext/standard/tests/strings/get_html_translation_table_basic3-win32.phpt +++ /dev/null @@ -1,867 +0,0 @@ ---TEST-- -Test get_html_translation_table() function : basic functionality - table as HTML_ENTITIES & quote_style(ENT_NOQUOTES) ---SKIPIF-- -<?php -if( substr(PHP_OS, 0, 3) != "WIN"){ - die('skip only for Windows'); -} - -if( ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); - -if( !setlocale(LC_ALL, "English_United States.1252") ) { - die('skip failed to set locale settings to "English_United States.1252"'); -} -?> ---FILE-- -<?php -/* Prototype : array get_html_translation_table ( [int $table [, int $quote_style]] ) - * Description: Returns the internal translation table used by htmlspecialchars and htmlentities - * Source code: ext/standard/html.c -*/ - -/* Test get_html_translation_table() when table is specified as HTML_ENTITIES */ - -//set locale -setlocale(LC_ALL, "English_United States.1252"); - -echo "*** Testing get_html_translation_table() : basic functionality ***\n"; - -echo "-- with table = HTML_ENTITIES & quote_style = ENT_NOQUOTES --\n"; -$table = HTML_ENTITIES; -$quote_style = ENT_NOQUOTES; -var_dump( get_html_translation_table($table, $quote_style) ); - - -echo "Done\n"; -?> ---EXPECTF-- -*** Testing get_html_translation_table() : basic functionality *** --- with table = HTML_ENTITIES & quote_style = ENT_NOQUOTES -- -array(99) { - [" "]=> - string(6) " " - ["¡"]=> - string(7) "¡" - ["¢"]=> - string(6) "¢" - ["£"]=> - string(7) "£" - ["¤"]=> - string(8) "¤" - ["¥"]=> - string(5) "¥" - ["¦"]=> - string(8) "¦" - ["§"]=> - string(6) "§" - ["¨"]=> - string(5) "¨" - ["©"]=> - string(6) "©" - ["ª"]=> - string(6) "ª" - ["«"]=> - string(7) "«" - ["¬"]=> - string(5) "¬" - [""]=> - string(5) "­" - ["®"]=> - string(5) "®" - ["¯"]=> - string(6) "¯" - ["°"]=> - string(5) "°" - ["±"]=> - string(8) "±" - ["²"]=> - string(6) "²" - ["³"]=> - string(6) "³" - ["´"]=> - string(7) "´" - ["µ"]=> - string(7) "µ" - ["¶"]=> - string(6) "¶" - ["·"]=> - string(8) "·" - ["¸"]=> - string(7) "¸" - ["¹"]=> - string(6) "¹" - ["º"]=> - string(6) "º" - ["»"]=> - string(7) "»" - ["¼"]=> - string(8) "¼" - ["½"]=> - string(8) "½" - ["¾"]=> - string(8) "¾" - ["¿"]=> - string(8) "¿" - ["À"]=> - string(8) "À" - ["Á"]=> - string(8) "Á" - ["Â"]=> - string(7) "Â" - ["Ã"]=> - string(8) "Ã" - ["Ä"]=> - string(6) "Ä" - ["Å"]=> - string(7) "Å" - ["Æ"]=> - string(7) "Æ" - ["Ç"]=> - string(8) "Ç" - ["È"]=> - string(8) "È" - ["É"]=> - string(8) "É" - ["Ê"]=> - string(7) "Ê" - ["Ë"]=> - string(6) "Ë" - ["Ì"]=> - string(8) "Ì" - ["Í"]=> - string(8) "Í" - ["Î"]=> - string(7) "Î" - ["Ï"]=> - string(6) "Ï" - ["Ð"]=> - string(5) "Ð" - ["Ñ"]=> - string(8) "Ñ" - ["Ò"]=> - string(8) "Ò" - ["Ó"]=> - string(8) "Ó" - ["Ô"]=> - string(7) "Ô" - ["Õ"]=> - string(8) "Õ" - ["Ö"]=> - string(6) "Ö" - ["×"]=> - string(7) "×" - ["Ø"]=> - string(8) "Ø" - ["Ù"]=> - string(8) "Ù" - ["Ú"]=> - string(8) "Ú" - ["Û"]=> - string(7) "Û" - ["Ü"]=> - string(6) "Ü" - ["Ý"]=> - string(8) "Ý" - ["Þ"]=> - string(7) "Þ" - ["ß"]=> - string(7) "ß" - ["à"]=> - string(8) "à" - ["á"]=> - string(8) "á" - ["â"]=> - string(7) "â" - ["ã"]=> - string(8) "ã" - ["ä"]=> - string(6) "ä" - ["å"]=> - string(7) "å" - ["æ"]=> - string(7) "æ" - ["ç"]=> - string(8) "ç" - ["è"]=> - string(8) "è" - ["é"]=> - string(8) "é" - ["ê"]=> - string(7) "ê" - ["ë"]=> - string(6) "ë" - ["ì"]=> - string(8) "ì" - ["í"]=> - string(8) "í" - ["î"]=> - string(7) "î" - ["ï"]=> - string(6) "ï" - ["ð"]=> - string(5) "ð" - ["ñ"]=> - string(8) "ñ" - ["ò"]=> - string(8) "ò" - ["ó"]=> - string(8) "ó" - ["ô"]=> - string(7) "ô" - ["õ"]=> - string(8) "õ" - ["ö"]=> - string(6) "ö" - ["÷"]=> - string(8) "÷" - ["ø"]=> - string(8) "ø" - ["ù"]=> - string(8) "ù" - ["ú"]=> - string(8) "ú" - ["û"]=> - string(7) "û" - ["ü"]=> - string(6) "ü" - ["ý"]=> - string(8) "ý" - ["þ"]=> - string(7) "þ" - ["ÿ"]=> - string(6) "ÿ" - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -Done ---UEXPECTF-- -*** Testing get_html_translation_table() : basic functionality *** --- with table = HTML_ENTITIES & quote_style = ENT_NOQUOTES -- -array(310) { - [u" "]=> - unicode(6) " " - [u"¡"]=> - unicode(7) "¡" - [u"¢"]=> - unicode(6) "¢" - [u"£"]=> - unicode(7) "£" - [u"¤"]=> - unicode(8) "¤" - [u"Â¥"]=> - unicode(5) "¥" - [u"¦"]=> - unicode(8) "¦" - [u"§"]=> - unicode(6) "§" - [u"¨"]=> - unicode(5) "¨" - [u"©"]=> - unicode(6) "©" - [u"ª"]=> - unicode(6) "ª" - [u"«"]=> - unicode(7) "«" - [u"¬"]=> - unicode(5) "¬" - [u"Â"]=> - unicode(5) "­" - [u"®"]=> - unicode(5) "®" - [u"¯"]=> - unicode(6) "¯" - [u"°"]=> - unicode(5) "°" - [u"±"]=> - unicode(8) "±" - [u"²"]=> - unicode(6) "²" - [u"³"]=> - unicode(6) "³" - [u"´"]=> - unicode(7) "´" - [u"µ"]=> - unicode(7) "µ" - [u"¶"]=> - unicode(6) "¶" - [u"·"]=> - unicode(8) "·" - [u"¸"]=> - unicode(7) "¸" - [u"¹"]=> - unicode(6) "¹" - [u"º"]=> - unicode(6) "º" - [u"»"]=> - unicode(7) "»" - [u"¼"]=> - unicode(8) "¼" - [u"½"]=> - unicode(8) "½" - [u"¾"]=> - unicode(8) "¾" - [u"¿"]=> - unicode(8) "¿" - [u"À"]=> - unicode(8) "À" - [u"Ã"]=> - unicode(8) "Á" - [u"Â"]=> - unicode(7) "Â" - [u"Ã"]=> - unicode(8) "Ã" - [u"Ä"]=> - unicode(6) "Ä" - [u"Ã…"]=> - unicode(7) "Å" - [u"Æ"]=> - unicode(7) "Æ" - [u"Ç"]=> - unicode(8) "Ç" - [u"È"]=> - unicode(8) "È" - [u"É"]=> - unicode(8) "É" - [u"Ê"]=> - unicode(7) "Ê" - [u"Ë"]=> - unicode(6) "Ë" - [u"ÃŒ"]=> - unicode(8) "Ì" - [u"Ã"]=> - unicode(8) "Í" - [u"ÃŽ"]=> - unicode(7) "Î" - [u"Ã"]=> - unicode(6) "Ï" - [u"Ã"]=> - unicode(5) "Ð" - [u"Ñ"]=> - unicode(8) "Ñ" - [u"Ã’"]=> - unicode(8) "Ò" - [u"Ó"]=> - unicode(8) "Ó" - [u"Ô"]=> - unicode(7) "Ô" - [u"Õ"]=> - unicode(8) "Õ" - [u"Ö"]=> - unicode(6) "Ö" - [u"×"]=> - unicode(7) "×" - [u"Ø"]=> - unicode(8) "Ø" - [u"Ù"]=> - unicode(8) "Ù" - [u"Ú"]=> - unicode(8) "Ú" - [u"Û"]=> - unicode(7) "Û" - [u"Ãœ"]=> - unicode(6) "Ü" - [u"Ã"]=> - unicode(8) "Ý" - [u"Þ"]=> - unicode(7) "Þ" - [u"ß"]=> - unicode(7) "ß" - [u"à "]=> - unicode(8) "à" - [u"á"]=> - unicode(8) "á" - [u"â"]=> - unicode(7) "â" - [u"ã"]=> - unicode(8) "ã" - [u"ä"]=> - unicode(6) "ä" - [u"Ã¥"]=> - unicode(7) "å" - [u"æ"]=> - unicode(7) "æ" - [u"ç"]=> - unicode(8) "ç" - [u"è"]=> - unicode(8) "è" - [u"é"]=> - unicode(8) "é" - [u"ê"]=> - unicode(7) "ê" - [u"ë"]=> - unicode(6) "ë" - [u"ì"]=> - unicode(8) "ì" - [u"Ã"]=> - unicode(8) "í" - [u"î"]=> - unicode(7) "î" - [u"ï"]=> - unicode(6) "ï" - [u"ð"]=> - unicode(5) "ð" - [u"ñ"]=> - unicode(8) "ñ" - [u"ò"]=> - unicode(8) "ò" - [u"ó"]=> - unicode(8) "ó" - [u"ô"]=> - unicode(7) "ô" - [u"õ"]=> - unicode(8) "õ" - [u"ö"]=> - unicode(6) "ö" - [u"÷"]=> - unicode(8) "÷" - [u"ø"]=> - unicode(8) "ø" - [u"ù"]=> - unicode(8) "ù" - [u"ú"]=> - unicode(8) "ú" - [u"û"]=> - unicode(7) "û" - [u"ü"]=> - unicode(6) "ü" - [u"ý"]=> - unicode(8) "ý" - [u"þ"]=> - unicode(7) "þ" - [u"ÿ"]=> - unicode(6) "ÿ" - [u"Å’"]=> - unicode(7) "Œ" - [u"Å“"]=> - unicode(7) "œ" - [u"Å "]=> - unicode(8) "Š" - [u"Å¡"]=> - unicode(8) "š" - [u"Ÿ"]=> - unicode(6) "Ÿ" - [u"Æ’"]=> - unicode(6) "ƒ" - [u"ˆ"]=> - unicode(6) "ˆ" - [u"Ëœ"]=> - unicode(7) "˜" - [u"Α"]=> - unicode(7) "Α" - [u"Î’"]=> - unicode(6) "Β" - [u"Γ"]=> - unicode(7) "Γ" - [u"Δ"]=> - unicode(7) "Δ" - [u"Ε"]=> - unicode(9) "Ε" - [u"Ζ"]=> - unicode(6) "Ζ" - [u"Η"]=> - unicode(5) "Η" - [u"Θ"]=> - unicode(7) "Θ" - [u"Ι"]=> - unicode(6) "Ι" - [u"Κ"]=> - unicode(7) "Κ" - [u"Λ"]=> - unicode(8) "Λ" - [u"Îœ"]=> - unicode(4) "Μ" - [u"Î"]=> - unicode(4) "Ν" - [u"Ξ"]=> - unicode(4) "Ξ" - [u"Ο"]=> - unicode(9) "Ο" - [u"Î "]=> - unicode(4) "Π" - [u"Ρ"]=> - unicode(5) "Ρ" - [u"Σ"]=> - unicode(7) "Σ" - [u"Τ"]=> - unicode(5) "Τ" - [u"Î¥"]=> - unicode(9) "Υ" - [u"Φ"]=> - unicode(5) "Φ" - [u"Χ"]=> - unicode(5) "Χ" - [u"Ψ"]=> - unicode(5) "Ψ" - [u"Ω"]=> - unicode(7) "Ω" - [u"α"]=> - unicode(7) "α" - [u"β"]=> - unicode(6) "β" - [u"γ"]=> - unicode(7) "γ" - [u"δ"]=> - unicode(7) "δ" - [u"ε"]=> - unicode(9) "ε" - [u"ζ"]=> - unicode(6) "ζ" - [u"η"]=> - unicode(5) "η" - [u"θ"]=> - unicode(7) "θ" - [u"ι"]=> - unicode(6) "ι" - [u"κ"]=> - unicode(7) "κ" - [u"λ"]=> - unicode(8) "λ" - [u"μ"]=> - unicode(4) "μ" - [u"ν"]=> - unicode(4) "ν" - [u"ξ"]=> - unicode(4) "ξ" - [u"ο"]=> - unicode(9) "ο" - [u"Ï€"]=> - unicode(4) "π" - [u"Ï"]=> - unicode(5) "ρ" - [u"Ï‚"]=> - unicode(8) "ς" - [u"σ"]=> - unicode(7) "σ" - [u"Ï„"]=> - unicode(5) "τ" - [u"Ï…"]=> - unicode(9) "υ" - [u"φ"]=> - unicode(5) "φ" - [u"χ"]=> - unicode(5) "χ" - [u"ψ"]=> - unicode(5) "ψ" - [u"ω"]=> - unicode(7) "ω" - [u"Ï‘"]=> - unicode(10) "ϑ" - [u"Ï’"]=> - unicode(7) "ϒ" - [u"Ï–"]=> - unicode(5) "ϖ" - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(8) " " - [u"‌"]=> - unicode(6) "‌" - [u"â€"]=> - unicode(5) "‍" - [u"‎"]=> - unicode(5) "‎" - [u"â€"]=> - unicode(5) "‏" - [u"–"]=> - unicode(7) "–" - [u"—"]=> - unicode(7) "—" - [u"‘"]=> - unicode(7) "‘" - [u"’"]=> - unicode(7) "’" - [u"‚"]=> - unicode(7) "‚" - [u"“"]=> - unicode(7) "“" - [u"â€"]=> - unicode(7) "”" - [u"„"]=> - unicode(7) "„" - [u"†"]=> - unicode(8) "†" - [u"‡"]=> - unicode(8) "‡" - [u"•"]=> - unicode(6) "•" - [u"…"]=> - unicode(8) "…" - [u"‰"]=> - unicode(8) "‰" - [u"′"]=> - unicode(7) "′" - [u"″"]=> - unicode(7) "″" - [u"‹"]=> - unicode(8) "‹" - [u"›"]=> - unicode(8) "›" - [u"‾"]=> - unicode(7) "‾" - [u"â„"]=> - unicode(7) "⁄" - [u"€"]=> - unicode(6) "€" - [u"â„‘"]=> - unicode(7) "ℑ" - [u"℘"]=> - unicode(8) "℘" - [u"â„œ"]=> - unicode(6) "ℜ" - [u"â„¢"]=> - unicode(7) "™" - [u"ℵ"]=> - unicode(9) "ℵ" - [u"â†"]=> - unicode(6) "←" - [u"↑"]=> - unicode(6) "↑" - [u"→"]=> - unicode(6) "→" - [u"↓"]=> - unicode(6) "↓" - [u"↔"]=> - unicode(6) "↔" - [u"↵"]=> - unicode(7) "↵" - [u"â‡"]=> - unicode(6) "⇐" - [u"⇑"]=> - unicode(6) "⇑" - [u"⇒"]=> - unicode(6) "⇒" - [u"⇓"]=> - unicode(6) "⇓" - [u"⇔"]=> - unicode(6) "⇔" - [u"⇕"]=> - unicode(6) "⇕" - [u"⇚"]=> - unicode(7) "⇚" - [u"⇛"]=> - unicode(7) "⇛" - [u"â‡"]=> - unicode(7) "↝" - [u"∀"]=> - unicode(8) "∀" - [u"âˆ"]=> - unicode(6) "∁" - [u"∂"]=> - unicode(6) "∂" - [u"∃"]=> - unicode(7) "∃" - [u"∄"]=> - unicode(8) "∄" - [u"∅"]=> - unicode(7) "∅" - [u"∇"]=> - unicode(7) "∇" - [u"∈"]=> - unicode(6) "∈" - [u"∉"]=> - unicode(7) "∉" - [u"∊"]=> - unicode(7) "&epsis;" - [u"∋"]=> - unicode(4) "∋" - [u"∌"]=> - unicode(7) "∌" - [u"âˆ"]=> - unicode(7) "϶" - [u"âˆ"]=> - unicode(6) "∏" - [u"âˆ"]=> - unicode(8) "∐" - [u"∑"]=> - unicode(5) "∑" - [u"−"]=> - unicode(7) "−" - [u"∓"]=> - unicode(8) "∓" - [u"∔"]=> - unicode(8) "∔" - [u"∖"]=> - unicode(7) "∖" - [u"∗"]=> - unicode(8) "∗" - [u"∘"]=> - unicode(8) "∘" - [u"√"]=> - unicode(7) "√" - [u"âˆ"]=> - unicode(6) "∝" - [u"∞"]=> - unicode(7) "∞" - [u"∟"]=> - unicode(7) "&ang90;" - [u"∠"]=> - unicode(5) "∠" - [u"∡"]=> - unicode(8) "∡" - [u"∢"]=> - unicode(8) "∢" - [u"∣"]=> - unicode(5) "∣" - [u"∤"]=> - unicode(6) "∤" - [u"∥"]=> - unicode(5) "∥" - [u"∦"]=> - unicode(6) "∦" - [u"∧"]=> - unicode(5) "∧" - [u"∨"]=> - unicode(4) "∨" - [u"∩"]=> - unicode(5) "∩" - [u"∪"]=> - unicode(5) "∪" - [u"∫"]=> - unicode(5) "∫" - [u"∮"]=> - unicode(8) "∮" - [u"∴"]=> - unicode(8) "∴" - [u"∵"]=> - unicode(8) "∵" - [u"∼"]=> - unicode(5) "∼" - [u"∽"]=> - unicode(6) "∽" - [u"≀"]=> - unicode(8) "≀" - [u"â‰"]=> - unicode(6) "≁" - [u"≃"]=> - unicode(6) "≃" - [u"≄"]=> - unicode(7) "≄" - [u"≅"]=> - unicode(6) "≅" - [u"≇"]=> - unicode(7) "≇" - [u"≈"]=> - unicode(7) "≈" - [u"≉"]=> - unicode(5) "≉" - [u"≊"]=> - unicode(5) "≊" - [u"≌"]=> - unicode(7) "≌" - [u"â‰"]=> - unicode(7) "≈" - [u"≎"]=> - unicode(6) "≎" - [u"â‰"]=> - unicode(7) "≏" - [u"≠"]=> - unicode(4) "≠" - [u"≡"]=> - unicode(7) "≡" - [u"≤"]=> - unicode(4) "≤" - [u"≥"]=> - unicode(4) "≥" - [u"≦"]=> - unicode(4) "≦" - [u"≧"]=> - unicode(4) "≧" - [u"≨"]=> - unicode(5) "≨" - [u"≩"]=> - unicode(5) "≩" - [u"≪"]=> - unicode(4) "≪" - [u"≫"]=> - unicode(4) "≫" - [u"≬"]=> - unicode(7) "≬" - [u"≮"]=> - unicode(5) "≮" - [u"≯"]=> - unicode(5) "≯" - [u"≰"]=> - unicode(6) "⩽̸" - [u"≱"]=> - unicode(6) "⩾̸" - [u"≲"]=> - unicode(6) "≲" - [u"≳"]=> - unicode(6) "≳" - [u"≶"]=> - unicode(4) "≶" - [u"≷"]=> - unicode(4) "≷" - [u"≺"]=> - unicode(4) "≺" - [u"≻"]=> - unicode(4) "≻" - [u"≼"]=> - unicode(7) "&cupre;" - [u"≽"]=> - unicode(7) "&sscue;" - [u"≾"]=> - unicode(7) "≾" - [u"≿"]=> - unicode(7) "≿" - [u"⊀"]=> - unicode(5) "⊀" - [u"âŠ"]=> - unicode(5) "⊁" - [u"⊂"]=> - unicode(5) "⊂" - [u"⊃"]=> - unicode(5) "⊃" - [u"⊄"]=> - unicode(6) "⊄" - [u"⊅"]=> - unicode(6) "⊅" - [u"⊆"]=> - unicode(6) "⊆" - [u"⊇"]=> - unicode(6) "⊇" - [u"⊕"]=> - unicode(7) "⊕" - [u"⊗"]=> - unicode(8) "⊗" - [u"⊥"]=> - unicode(6) "⊥" - [u"â‹…"]=> - unicode(6) "⋅" - [u"⌈"]=> - unicode(7) "⌈" - [u"⌉"]=> - unicode(7) "⌉" - [u"⌊"]=> - unicode(8) "⌊" - [u"⌋"]=> - unicode(8) "⌋" - [u"〈"]=> - unicode(6) "⟨" - [u"〉"]=> - unicode(6) "⟩" - [u"â—Š"]=> - unicode(5) "◊" - [u"â™ "]=> - unicode(8) "♠" - [u"♣"]=> - unicode(7) "♣" - [u"♥"]=> - unicode(8) "♥" - [u"♦"]=> - unicode(7) "♦" - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -Done diff --git a/ext/standard/tests/strings/get_html_translation_table_basic3.phpt b/ext/standard/tests/strings/get_html_translation_table_basic3.phpt deleted file mode 100644 index 72ed76419f..0000000000 --- a/ext/standard/tests/strings/get_html_translation_table_basic3.phpt +++ /dev/null @@ -1,867 +0,0 @@ ---TEST-- -Test get_html_translation_table() function : basic functionality - table as HTML_ENTITIES & quote_style(ENT_NOQUOTES) ---SKIPIF-- -<?php -if( substr(PHP_OS, 0, 3) == "WIN"){ - die('skip Not for Windows'); -} - -if( ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); - -if( !setlocale(LC_ALL, "en_US.UTF-8") ) { - die('skip failed to set locale settings to "en-US.UTF-8"'); -} -?> ---FILE-- -<?php -/* Prototype : array get_html_translation_table ( [int $table [, int $quote_style]] ) - * Description: Returns the internal translation table used by htmlspecialchars and htmlentities - * Source code: ext/standard/html.c -*/ - -/* Test get_html_translation_table() when table is specified as HTML_ENTITIES */ - -//set locale to en_US.UTF-8 -setlocale(LC_ALL, "en_US.UTF-8"); - -echo "*** Testing get_html_translation_table() : basic functionality ***\n"; - -echo "-- with table = HTML_ENTITIES & quote_style = ENT_NOQUOTES --\n"; -$table = HTML_ENTITIES; -$quote_style = ENT_NOQUOTES; -var_dump( get_html_translation_table($table, $quote_style) ); - - -echo "Done\n"; -?> ---EXPECTF-- -*** Testing get_html_translation_table() : basic functionality *** --- with table = HTML_ENTITIES & quote_style = ENT_NOQUOTES -- -array(99) { - [" "]=> - string(6) " " - ["¡"]=> - string(7) "¡" - ["¢"]=> - string(6) "¢" - ["£"]=> - string(7) "£" - ["¤"]=> - string(8) "¤" - ["¥"]=> - string(5) "¥" - ["¦"]=> - string(8) "¦" - ["§"]=> - string(6) "§" - ["¨"]=> - string(5) "¨" - ["©"]=> - string(6) "©" - ["ª"]=> - string(6) "ª" - ["«"]=> - string(7) "«" - ["¬"]=> - string(5) "¬" - [""]=> - string(5) "­" - ["®"]=> - string(5) "®" - ["¯"]=> - string(6) "¯" - ["°"]=> - string(5) "°" - ["±"]=> - string(8) "±" - ["²"]=> - string(6) "²" - ["³"]=> - string(6) "³" - ["´"]=> - string(7) "´" - ["µ"]=> - string(7) "µ" - ["¶"]=> - string(6) "¶" - ["·"]=> - string(8) "·" - ["¸"]=> - string(7) "¸" - ["¹"]=> - string(6) "¹" - ["º"]=> - string(6) "º" - ["»"]=> - string(7) "»" - ["¼"]=> - string(8) "¼" - ["½"]=> - string(8) "½" - ["¾"]=> - string(8) "¾" - ["¿"]=> - string(8) "¿" - ["À"]=> - string(8) "À" - ["Á"]=> - string(8) "Á" - ["Â"]=> - string(7) "Â" - ["Ã"]=> - string(8) "Ã" - ["Ä"]=> - string(6) "Ä" - ["Å"]=> - string(7) "Å" - ["Æ"]=> - string(7) "Æ" - ["Ç"]=> - string(8) "Ç" - ["È"]=> - string(8) "È" - ["É"]=> - string(8) "É" - ["Ê"]=> - string(7) "Ê" - ["Ë"]=> - string(6) "Ë" - ["Ì"]=> - string(8) "Ì" - ["Í"]=> - string(8) "Í" - ["Î"]=> - string(7) "Î" - ["Ï"]=> - string(6) "Ï" - ["Ð"]=> - string(5) "Ð" - ["Ñ"]=> - string(8) "Ñ" - ["Ò"]=> - string(8) "Ò" - ["Ó"]=> - string(8) "Ó" - ["Ô"]=> - string(7) "Ô" - ["Õ"]=> - string(8) "Õ" - ["Ö"]=> - string(6) "Ö" - ["×"]=> - string(7) "×" - ["Ø"]=> - string(8) "Ø" - ["Ù"]=> - string(8) "Ù" - ["Ú"]=> - string(8) "Ú" - ["Û"]=> - string(7) "Û" - ["Ü"]=> - string(6) "Ü" - ["Ý"]=> - string(8) "Ý" - ["Þ"]=> - string(7) "Þ" - ["ß"]=> - string(7) "ß" - ["à"]=> - string(8) "à" - ["á"]=> - string(8) "á" - ["â"]=> - string(7) "â" - ["ã"]=> - string(8) "ã" - ["ä"]=> - string(6) "ä" - ["å"]=> - string(7) "å" - ["æ"]=> - string(7) "æ" - ["ç"]=> - string(8) "ç" - ["è"]=> - string(8) "è" - ["é"]=> - string(8) "é" - ["ê"]=> - string(7) "ê" - ["ë"]=> - string(6) "ë" - ["ì"]=> - string(8) "ì" - ["í"]=> - string(8) "í" - ["î"]=> - string(7) "î" - ["ï"]=> - string(6) "ï" - ["ð"]=> - string(5) "ð" - ["ñ"]=> - string(8) "ñ" - ["ò"]=> - string(8) "ò" - ["ó"]=> - string(8) "ó" - ["ô"]=> - string(7) "ô" - ["õ"]=> - string(8) "õ" - ["ö"]=> - string(6) "ö" - ["÷"]=> - string(8) "÷" - ["ø"]=> - string(8) "ø" - ["ù"]=> - string(8) "ù" - ["ú"]=> - string(8) "ú" - ["û"]=> - string(7) "û" - ["ü"]=> - string(6) "ü" - ["ý"]=> - string(8) "ý" - ["þ"]=> - string(7) "þ" - ["ÿ"]=> - string(6) "ÿ" - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -Done ---UEXPECTF-- -*** Testing get_html_translation_table() : basic functionality *** --- with table = HTML_ENTITIES & quote_style = ENT_NOQUOTES -- -array(310) { - [u" "]=> - unicode(6) " " - [u"¡"]=> - unicode(7) "¡" - [u"¢"]=> - unicode(6) "¢" - [u"£"]=> - unicode(7) "£" - [u"¤"]=> - unicode(8) "¤" - [u"Â¥"]=> - unicode(5) "¥" - [u"¦"]=> - unicode(8) "¦" - [u"§"]=> - unicode(6) "§" - [u"¨"]=> - unicode(5) "¨" - [u"©"]=> - unicode(6) "©" - [u"ª"]=> - unicode(6) "ª" - [u"«"]=> - unicode(7) "«" - [u"¬"]=> - unicode(5) "¬" - [u"Â"]=> - unicode(5) "­" - [u"®"]=> - unicode(5) "®" - [u"¯"]=> - unicode(6) "¯" - [u"°"]=> - unicode(5) "°" - [u"±"]=> - unicode(8) "±" - [u"²"]=> - unicode(6) "²" - [u"³"]=> - unicode(6) "³" - [u"´"]=> - unicode(7) "´" - [u"µ"]=> - unicode(7) "µ" - [u"¶"]=> - unicode(6) "¶" - [u"·"]=> - unicode(8) "·" - [u"¸"]=> - unicode(7) "¸" - [u"¹"]=> - unicode(6) "¹" - [u"º"]=> - unicode(6) "º" - [u"»"]=> - unicode(7) "»" - [u"¼"]=> - unicode(8) "¼" - [u"½"]=> - unicode(8) "½" - [u"¾"]=> - unicode(8) "¾" - [u"¿"]=> - unicode(8) "¿" - [u"À"]=> - unicode(8) "À" - [u"Ã"]=> - unicode(8) "Á" - [u"Â"]=> - unicode(7) "Â" - [u"Ã"]=> - unicode(8) "Ã" - [u"Ä"]=> - unicode(6) "Ä" - [u"Ã…"]=> - unicode(7) "Å" - [u"Æ"]=> - unicode(7) "Æ" - [u"Ç"]=> - unicode(8) "Ç" - [u"È"]=> - unicode(8) "È" - [u"É"]=> - unicode(8) "É" - [u"Ê"]=> - unicode(7) "Ê" - [u"Ë"]=> - unicode(6) "Ë" - [u"ÃŒ"]=> - unicode(8) "Ì" - [u"Ã"]=> - unicode(8) "Í" - [u"ÃŽ"]=> - unicode(7) "Î" - [u"Ã"]=> - unicode(6) "Ï" - [u"Ã"]=> - unicode(5) "Ð" - [u"Ñ"]=> - unicode(8) "Ñ" - [u"Ã’"]=> - unicode(8) "Ò" - [u"Ó"]=> - unicode(8) "Ó" - [u"Ô"]=> - unicode(7) "Ô" - [u"Õ"]=> - unicode(8) "Õ" - [u"Ö"]=> - unicode(6) "Ö" - [u"×"]=> - unicode(7) "×" - [u"Ø"]=> - unicode(8) "Ø" - [u"Ù"]=> - unicode(8) "Ù" - [u"Ú"]=> - unicode(8) "Ú" - [u"Û"]=> - unicode(7) "Û" - [u"Ãœ"]=> - unicode(6) "Ü" - [u"Ã"]=> - unicode(8) "Ý" - [u"Þ"]=> - unicode(7) "Þ" - [u"ß"]=> - unicode(7) "ß" - [u"à "]=> - unicode(8) "à" - [u"á"]=> - unicode(8) "á" - [u"â"]=> - unicode(7) "â" - [u"ã"]=> - unicode(8) "ã" - [u"ä"]=> - unicode(6) "ä" - [u"Ã¥"]=> - unicode(7) "å" - [u"æ"]=> - unicode(7) "æ" - [u"ç"]=> - unicode(8) "ç" - [u"è"]=> - unicode(8) "è" - [u"é"]=> - unicode(8) "é" - [u"ê"]=> - unicode(7) "ê" - [u"ë"]=> - unicode(6) "ë" - [u"ì"]=> - unicode(8) "ì" - [u"Ã"]=> - unicode(8) "í" - [u"î"]=> - unicode(7) "î" - [u"ï"]=> - unicode(6) "ï" - [u"ð"]=> - unicode(5) "ð" - [u"ñ"]=> - unicode(8) "ñ" - [u"ò"]=> - unicode(8) "ò" - [u"ó"]=> - unicode(8) "ó" - [u"ô"]=> - unicode(7) "ô" - [u"õ"]=> - unicode(8) "õ" - [u"ö"]=> - unicode(6) "ö" - [u"÷"]=> - unicode(8) "÷" - [u"ø"]=> - unicode(8) "ø" - [u"ù"]=> - unicode(8) "ù" - [u"ú"]=> - unicode(8) "ú" - [u"û"]=> - unicode(7) "û" - [u"ü"]=> - unicode(6) "ü" - [u"ý"]=> - unicode(8) "ý" - [u"þ"]=> - unicode(7) "þ" - [u"ÿ"]=> - unicode(6) "ÿ" - [u"Å’"]=> - unicode(7) "Œ" - [u"Å“"]=> - unicode(7) "œ" - [u"Å "]=> - unicode(8) "Š" - [u"Å¡"]=> - unicode(8) "š" - [u"Ÿ"]=> - unicode(6) "Ÿ" - [u"Æ’"]=> - unicode(6) "ƒ" - [u"ˆ"]=> - unicode(6) "ˆ" - [u"Ëœ"]=> - unicode(7) "˜" - [u"Α"]=> - unicode(7) "Α" - [u"Î’"]=> - unicode(6) "Β" - [u"Γ"]=> - unicode(7) "Γ" - [u"Δ"]=> - unicode(7) "Δ" - [u"Ε"]=> - unicode(9) "Ε" - [u"Ζ"]=> - unicode(6) "Ζ" - [u"Η"]=> - unicode(5) "Η" - [u"Θ"]=> - unicode(7) "Θ" - [u"Ι"]=> - unicode(6) "Ι" - [u"Κ"]=> - unicode(7) "Κ" - [u"Λ"]=> - unicode(8) "Λ" - [u"Îœ"]=> - unicode(4) "Μ" - [u"Î"]=> - unicode(4) "Ν" - [u"Ξ"]=> - unicode(4) "Ξ" - [u"Ο"]=> - unicode(9) "Ο" - [u"Î "]=> - unicode(4) "Π" - [u"Ρ"]=> - unicode(5) "Ρ" - [u"Σ"]=> - unicode(7) "Σ" - [u"Τ"]=> - unicode(5) "Τ" - [u"Î¥"]=> - unicode(9) "Υ" - [u"Φ"]=> - unicode(5) "Φ" - [u"Χ"]=> - unicode(5) "Χ" - [u"Ψ"]=> - unicode(5) "Ψ" - [u"Ω"]=> - unicode(7) "Ω" - [u"α"]=> - unicode(7) "α" - [u"β"]=> - unicode(6) "β" - [u"γ"]=> - unicode(7) "γ" - [u"δ"]=> - unicode(7) "δ" - [u"ε"]=> - unicode(9) "ε" - [u"ζ"]=> - unicode(6) "ζ" - [u"η"]=> - unicode(5) "η" - [u"θ"]=> - unicode(7) "θ" - [u"ι"]=> - unicode(6) "ι" - [u"κ"]=> - unicode(7) "κ" - [u"λ"]=> - unicode(8) "λ" - [u"μ"]=> - unicode(4) "μ" - [u"ν"]=> - unicode(4) "ν" - [u"ξ"]=> - unicode(4) "ξ" - [u"ο"]=> - unicode(9) "ο" - [u"Ï€"]=> - unicode(4) "π" - [u"Ï"]=> - unicode(5) "ρ" - [u"Ï‚"]=> - unicode(8) "ς" - [u"σ"]=> - unicode(7) "σ" - [u"Ï„"]=> - unicode(5) "τ" - [u"Ï…"]=> - unicode(9) "υ" - [u"φ"]=> - unicode(5) "φ" - [u"χ"]=> - unicode(5) "χ" - [u"ψ"]=> - unicode(5) "ψ" - [u"ω"]=> - unicode(7) "ω" - [u"Ï‘"]=> - unicode(10) "ϑ" - [u"Ï’"]=> - unicode(7) "ϒ" - [u"Ï–"]=> - unicode(5) "ϖ" - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(8) " " - [u"‌"]=> - unicode(6) "‌" - [u"â€"]=> - unicode(5) "‍" - [u"‎"]=> - unicode(5) "‎" - [u"â€"]=> - unicode(5) "‏" - [u"–"]=> - unicode(7) "–" - [u"—"]=> - unicode(7) "—" - [u"‘"]=> - unicode(7) "‘" - [u"’"]=> - unicode(7) "’" - [u"‚"]=> - unicode(7) "‚" - [u"“"]=> - unicode(7) "“" - [u"â€"]=> - unicode(7) "”" - [u"„"]=> - unicode(7) "„" - [u"†"]=> - unicode(8) "†" - [u"‡"]=> - unicode(8) "‡" - [u"•"]=> - unicode(6) "•" - [u"…"]=> - unicode(8) "…" - [u"‰"]=> - unicode(8) "‰" - [u"′"]=> - unicode(7) "′" - [u"″"]=> - unicode(7) "″" - [u"‹"]=> - unicode(8) "‹" - [u"›"]=> - unicode(8) "›" - [u"‾"]=> - unicode(7) "‾" - [u"â„"]=> - unicode(7) "⁄" - [u"€"]=> - unicode(6) "€" - [u"â„‘"]=> - unicode(7) "ℑ" - [u"℘"]=> - unicode(8) "℘" - [u"â„œ"]=> - unicode(6) "ℜ" - [u"â„¢"]=> - unicode(7) "™" - [u"ℵ"]=> - unicode(9) "ℵ" - [u"â†"]=> - unicode(6) "←" - [u"↑"]=> - unicode(6) "↑" - [u"→"]=> - unicode(6) "→" - [u"↓"]=> - unicode(6) "↓" - [u"↔"]=> - unicode(6) "↔" - [u"↵"]=> - unicode(7) "↵" - [u"â‡"]=> - unicode(6) "⇐" - [u"⇑"]=> - unicode(6) "⇑" - [u"⇒"]=> - unicode(6) "⇒" - [u"⇓"]=> - unicode(6) "⇓" - [u"⇔"]=> - unicode(6) "⇔" - [u"⇕"]=> - unicode(6) "⇕" - [u"⇚"]=> - unicode(7) "⇚" - [u"⇛"]=> - unicode(7) "⇛" - [u"â‡"]=> - unicode(7) "↝" - [u"∀"]=> - unicode(8) "∀" - [u"âˆ"]=> - unicode(6) "∁" - [u"∂"]=> - unicode(6) "∂" - [u"∃"]=> - unicode(7) "∃" - [u"∄"]=> - unicode(8) "∄" - [u"∅"]=> - unicode(7) "∅" - [u"∇"]=> - unicode(7) "∇" - [u"∈"]=> - unicode(6) "∈" - [u"∉"]=> - unicode(7) "∉" - [u"∊"]=> - unicode(7) "&epsis;" - [u"∋"]=> - unicode(4) "∋" - [u"∌"]=> - unicode(7) "∌" - [u"âˆ"]=> - unicode(7) "϶" - [u"âˆ"]=> - unicode(6) "∏" - [u"âˆ"]=> - unicode(8) "∐" - [u"∑"]=> - unicode(5) "∑" - [u"−"]=> - unicode(7) "−" - [u"∓"]=> - unicode(8) "∓" - [u"∔"]=> - unicode(8) "∔" - [u"∖"]=> - unicode(7) "∖" - [u"∗"]=> - unicode(8) "∗" - [u"∘"]=> - unicode(8) "∘" - [u"√"]=> - unicode(7) "√" - [u"âˆ"]=> - unicode(6) "∝" - [u"∞"]=> - unicode(7) "∞" - [u"∟"]=> - unicode(7) "&ang90;" - [u"∠"]=> - unicode(5) "∠" - [u"∡"]=> - unicode(8) "∡" - [u"∢"]=> - unicode(8) "∢" - [u"∣"]=> - unicode(5) "∣" - [u"∤"]=> - unicode(6) "∤" - [u"∥"]=> - unicode(5) "∥" - [u"∦"]=> - unicode(6) "∦" - [u"∧"]=> - unicode(5) "∧" - [u"∨"]=> - unicode(4) "∨" - [u"∩"]=> - unicode(5) "∩" - [u"∪"]=> - unicode(5) "∪" - [u"∫"]=> - unicode(5) "∫" - [u"∮"]=> - unicode(8) "∮" - [u"∴"]=> - unicode(8) "∴" - [u"∵"]=> - unicode(8) "∵" - [u"∼"]=> - unicode(5) "∼" - [u"∽"]=> - unicode(6) "∽" - [u"≀"]=> - unicode(8) "≀" - [u"â‰"]=> - unicode(6) "≁" - [u"≃"]=> - unicode(6) "≃" - [u"≄"]=> - unicode(7) "≄" - [u"≅"]=> - unicode(6) "≅" - [u"≇"]=> - unicode(7) "≇" - [u"≈"]=> - unicode(7) "≈" - [u"≉"]=> - unicode(5) "≉" - [u"≊"]=> - unicode(5) "≊" - [u"≌"]=> - unicode(7) "≌" - [u"â‰"]=> - unicode(7) "≈" - [u"≎"]=> - unicode(6) "≎" - [u"â‰"]=> - unicode(7) "≏" - [u"≠"]=> - unicode(4) "≠" - [u"≡"]=> - unicode(7) "≡" - [u"≤"]=> - unicode(4) "≤" - [u"≥"]=> - unicode(4) "≥" - [u"≦"]=> - unicode(4) "≦" - [u"≧"]=> - unicode(4) "≧" - [u"≨"]=> - unicode(5) "≨" - [u"≩"]=> - unicode(5) "≩" - [u"≪"]=> - unicode(4) "≪" - [u"≫"]=> - unicode(4) "≫" - [u"≬"]=> - unicode(7) "≬" - [u"≮"]=> - unicode(5) "≮" - [u"≯"]=> - unicode(5) "≯" - [u"≰"]=> - unicode(6) "⩽̸" - [u"≱"]=> - unicode(6) "⩾̸" - [u"≲"]=> - unicode(6) "≲" - [u"≳"]=> - unicode(6) "≳" - [u"≶"]=> - unicode(4) "≶" - [u"≷"]=> - unicode(4) "≷" - [u"≺"]=> - unicode(4) "≺" - [u"≻"]=> - unicode(4) "≻" - [u"≼"]=> - unicode(7) "&cupre;" - [u"≽"]=> - unicode(7) "&sscue;" - [u"≾"]=> - unicode(7) "≾" - [u"≿"]=> - unicode(7) "≿" - [u"⊀"]=> - unicode(5) "⊀" - [u"âŠ"]=> - unicode(5) "⊁" - [u"⊂"]=> - unicode(5) "⊂" - [u"⊃"]=> - unicode(5) "⊃" - [u"⊄"]=> - unicode(6) "⊄" - [u"⊅"]=> - unicode(6) "⊅" - [u"⊆"]=> - unicode(6) "⊆" - [u"⊇"]=> - unicode(6) "⊇" - [u"⊕"]=> - unicode(7) "⊕" - [u"⊗"]=> - unicode(8) "⊗" - [u"⊥"]=> - unicode(6) "⊥" - [u"â‹…"]=> - unicode(6) "⋅" - [u"⌈"]=> - unicode(7) "⌈" - [u"⌉"]=> - unicode(7) "⌉" - [u"⌊"]=> - unicode(8) "⌊" - [u"⌋"]=> - unicode(8) "⌋" - [u"〈"]=> - unicode(6) "⟨" - [u"〉"]=> - unicode(6) "⟩" - [u"â—Š"]=> - unicode(5) "◊" - [u"â™ "]=> - unicode(8) "♠" - [u"♣"]=> - unicode(7) "♣" - [u"♥"]=> - unicode(8) "♥" - [u"♦"]=> - unicode(7) "♦" - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -Done diff --git a/ext/standard/tests/strings/get_html_translation_table_basic4-win32.phpt b/ext/standard/tests/strings/get_html_translation_table_basic4-win32.phpt deleted file mode 100644 index d2d65ddc20..0000000000 --- a/ext/standard/tests/strings/get_html_translation_table_basic4-win32.phpt +++ /dev/null @@ -1,117 +0,0 @@ ---TEST-- -Test get_html_translation_table() function : basic functionality - table as HTML_SPECIALCHARS ---SKIPIF-- -<?php -if( substr(PHP_OS, 0, 3) != "WIN"){ - die('skip only for Windows'); -} - -if( ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); - -if( !setlocale(LC_ALL, "English_United States.1252") ) { - die('skip failed to set locale settings to "English_United States.1252"'); -} -?> ---FILE-- -<?php -/* Prototype : array get_html_translation_table ( [int $table [, int $quote_style]] ) - * Description: Returns the internal translation table used by htmlspecialchars and htmlentities - * Source code: ext/standard/html.c -*/ - -/* test get_html_translation_table() when $table argument is specified as HTML_SPECIALCHARS */ - -//set locale -setlocale(LC_ALL, "English_United States.1252"); - -echo "*** Testing get_html_translation_table() : basic functionality ***\n"; - -// $table as HTML_SEPCIALCHARS and different quote style -echo "-- with table = HTML_SPECIALCHARS & quote_style = ENT_COMPAT --\n"; -$table = HTML_SPECIALCHARS; -$quote_style = ENT_COMPAT; -var_dump( get_html_translation_table($table, $quote_style) ); - -echo "-- with table = HTML_SPECIALCHARS & quote_style = ENT_QUOTE --\n"; -$quote_style = ENT_QUOTES; -var_dump( get_html_translation_table($table, $quote_style) ); - -echo "-- with table = HTML_SPECIALCHARS & quote_style = ENT_NOQUOTE --\n"; -$quote_style = ENT_NOQUOTES; -var_dump( get_html_translation_table($table, $quote_style) ); - -echo "Done\n"; -?> ---EXPECTF-- -*** Testing get_html_translation_table() : basic functionality *** --- with table = HTML_SPECIALCHARS & quote_style = ENT_COMPAT -- -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- with table = HTML_SPECIALCHARS & quote_style = ENT_QUOTE -- -array(5) { - ["""]=> - string(6) """ - ["'"]=> - string(5) "'" - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- with table = HTML_SPECIALCHARS & quote_style = ENT_NOQUOTE -- -array(3) { - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -Done ---UEXPECT-- -*** Testing get_html_translation_table() : basic functionality *** --- with table = HTML_SPECIALCHARS & quote_style = ENT_COMPAT -- -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- with table = HTML_SPECIALCHARS & quote_style = ENT_QUOTE -- -array(5) { - [u"""]=> - unicode(6) """ - [u"'"]=> - unicode(5) "'" - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- with table = HTML_SPECIALCHARS & quote_style = ENT_NOQUOTE -- -array(3) { - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -Done diff --git a/ext/standard/tests/strings/get_html_translation_table_basic4.phpt b/ext/standard/tests/strings/get_html_translation_table_basic4.phpt deleted file mode 100644 index 69df17bb85..0000000000 --- a/ext/standard/tests/strings/get_html_translation_table_basic4.phpt +++ /dev/null @@ -1,117 +0,0 @@ ---TEST-- -Test get_html_translation_table() function : basic functionality - table as HTML_SPECIALCHARS ---SKIPIF-- -<?php -if( substr(PHP_OS, 0, 3) == "WIN"){ - die('skip Not for Windows'); -} - -if( ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); - -if( !setlocale(LC_ALL, "en_US.UTF-8") ) { - die('skip failed to set locale settings to "en-US.UTF-8"'); -} -?> ---FILE-- -<?php -/* Prototype : array get_html_translation_table ( [int $table [, int $quote_style]] ) - * Description: Returns the internal translation table used by htmlspecialchars and htmlentities - * Source code: ext/standard/html.c -*/ - -/* test get_html_translation_table() when $table argument is specified as HTML_SPECIALCHARS */ - -//set locale to en_US.UTF-8 -setlocale(LC_ALL, "en_US.UTF-8"); - -echo "*** Testing get_html_translation_table() : basic functionality ***\n"; - -// $table as HTML_SEPCIALCHARS and different quote style -echo "-- with table = HTML_SPECIALCHARS & quote_style = ENT_COMPAT --\n"; -$table = HTML_SPECIALCHARS; -$quote_style = ENT_COMPAT; -var_dump( get_html_translation_table($table, $quote_style) ); - -echo "-- with table = HTML_SPECIALCHARS & quote_style = ENT_QUOTE --\n"; -$quote_style = ENT_QUOTES; -var_dump( get_html_translation_table($table, $quote_style) ); - -echo "-- with table = HTML_SPECIALCHARS & quote_style = ENT_NOQUOTE --\n"; -$quote_style = ENT_NOQUOTES; -var_dump( get_html_translation_table($table, $quote_style) ); - -echo "Done\n"; -?> ---EXPECTF-- -*** Testing get_html_translation_table() : basic functionality *** --- with table = HTML_SPECIALCHARS & quote_style = ENT_COMPAT -- -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- with table = HTML_SPECIALCHARS & quote_style = ENT_QUOTE -- -array(5) { - ["""]=> - string(6) """ - ["'"]=> - string(5) "'" - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- with table = HTML_SPECIALCHARS & quote_style = ENT_NOQUOTE -- -array(3) { - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -Done ---UEXPECT-- -*** Testing get_html_translation_table() : basic functionality *** --- with table = HTML_SPECIALCHARS & quote_style = ENT_COMPAT -- -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- with table = HTML_SPECIALCHARS & quote_style = ENT_QUOTE -- -array(5) { - [u"""]=> - unicode(6) """ - [u"'"]=> - unicode(5) "'" - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- with table = HTML_SPECIALCHARS & quote_style = ENT_NOQUOTE -- -array(3) { - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -Done diff --git a/ext/standard/tests/strings/get_html_translation_table_error.phpt b/ext/standard/tests/strings/get_html_translation_table_error.phpt deleted file mode 100644 index fd4e3a27cb..0000000000 --- a/ext/standard/tests/strings/get_html_translation_table_error.phpt +++ /dev/null @@ -1,37 +0,0 @@ ---TEST-- -Test get_html_translation_table() function : error conditions ---FILE-- -<?php -/* Prototype : array get_html_translation_table ( [int $table [, int $quote_style]] ) - * Description: Returns the internal translation table used by htmlspecialchars and htmlentities - * Source code: ext/standard/html.c -*/ - -echo "*** Testing get_html_translation_table() : error conditions ***\n"; - -// More than expected number of arguments -echo "\n-- Testing get_html_translation_table() function with more than expected no. of arguments --\n"; -$table = HTML_ENTITIES; -$quote_style = ENT_COMPAT; -$extra_arg = 10; - -var_dump( get_html_translation_table($table, $quote_style, $extra_arg) ); - -echo "Done\n"; -?> ---EXPECTF-- -*** Testing get_html_translation_table() : error conditions *** - --- Testing get_html_translation_table() function with more than expected no. of arguments -- - -Warning: get_html_translation_table() expects at most 2 parameters, 3 given in %s on line %d -NULL -Done ---UEXPECTF-- -*** Testing get_html_translation_table() : error conditions *** - --- Testing get_html_translation_table() function with more than expected no. of arguments -- - -Warning: get_html_translation_table() expects at most 2 parameters, 3 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/get_html_translation_table_variation1-win32.phpt b/ext/standard/tests/strings/get_html_translation_table_variation1-win32.phpt deleted file mode 100644 index 926ddba390..0000000000 --- a/ext/standard/tests/strings/get_html_translation_table_variation1-win32.phpt +++ /dev/null @@ -1,2127 +0,0 @@ ---TEST-- -Test get_html_translation_table() function : usage variations - unexpected table values ---SKIPIF-- -<?php -if( substr(PHP_OS, 0, 3) != "WIN"){ - die('skip only for Windows'); -} - -if( ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); - -if( !setlocale(LC_ALL, "English_United States.1252") ) { - die('skip failed to set locale settings to "English_United States.1252"'); -} -?> ---FILE-- -<?php -/* Prototype : array get_html_translation_table ( [int $table [, int $quote_style]] ) - * Description: Returns the internal translation table used by htmlspecialchars and htmlentities - * Source code: ext/standard/html.c -*/ - -/* - * test get_html_translation_table() with unexpected value for argument $table -*/ - -//set locale -setlocale(LC_ALL, "English_United States.1252"); - -echo "*** Testing get_html_translation_table() : usage variations ***\n"; -// initialize all required variables -$quote_style = ENT_COMPAT; - -// get an unset variable -$unset_var = 10; -unset($unset_var); - -// a resource variable -$fp = fopen(__FILE__, "r"); - -// array with different values -$values = array ( - - // array values - array(), - array(0), - array(1), - array(1, 2), - array('color' => 'red', 'item' => 'pen'), - - // boolean values - true, - FALSE, - - // string values - "string", - 'string', - - // objects - new stdclass(), - - // empty string - "", - '', - - // null vlaues - NULL, - null, - - // resource var - $fp, - - // undefined variable - @$undefined_var, - - // unset variable - @$unset_var -); - - -// loop through each element of the array and check the working of get_html_translation_table() -// when $table arugment is supplied with different values -echo "\n--- Testing get_html_translation_table() by supplying different values for 'table' argument ---\n"; -$counter = 1; -for($index = 0; $index < count($values); $index ++) { - echo "-- Iteration $counter --\n"; - $table = $values [$index]; - - var_dump( get_html_translation_table($table) ); - var_dump( get_html_translation_table($table, $quote_style) ); - - $counter ++; -} - -// close resource -fclose($fp); - -echo "Done\n"; -?> ---EXPECTF-- -*** Testing get_html_translation_table() : usage variations *** - ---- Testing get_html_translation_table() by supplying different values for 'table' argument --- --- Iteration 1 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 2 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 3 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 4 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 5 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 6 -- -array(100) { - [" "]=> - string(6) " " - ["¡"]=> - string(7) "¡" - ["¢"]=> - string(6) "¢" - ["£"]=> - string(7) "£" - ["¤"]=> - string(8) "¤" - ["¥"]=> - string(5) "¥" - ["¦"]=> - string(8) "¦" - ["§"]=> - string(6) "§" - ["¨"]=> - string(5) "¨" - ["©"]=> - string(6) "©" - ["ª"]=> - string(6) "ª" - ["«"]=> - string(7) "«" - ["¬"]=> - string(5) "¬" - [""]=> - string(5) "­" - ["®"]=> - string(5) "®" - ["¯"]=> - string(6) "¯" - ["°"]=> - string(5) "°" - ["±"]=> - string(8) "±" - ["²"]=> - string(6) "²" - ["³"]=> - string(6) "³" - ["´"]=> - string(7) "´" - ["µ"]=> - string(7) "µ" - ["¶"]=> - string(6) "¶" - ["·"]=> - string(8) "·" - ["¸"]=> - string(7) "¸" - ["¹"]=> - string(6) "¹" - ["º"]=> - string(6) "º" - ["»"]=> - string(7) "»" - ["¼"]=> - string(8) "¼" - ["½"]=> - string(8) "½" - ["¾"]=> - string(8) "¾" - ["¿"]=> - string(8) "¿" - ["À"]=> - string(8) "À" - ["Á"]=> - string(8) "Á" - ["Â"]=> - string(7) "Â" - ["Ã"]=> - string(8) "Ã" - ["Ä"]=> - string(6) "Ä" - ["Å"]=> - string(7) "Å" - ["Æ"]=> - string(7) "Æ" - ["Ç"]=> - string(8) "Ç" - ["È"]=> - string(8) "È" - ["É"]=> - string(8) "É" - ["Ê"]=> - string(7) "Ê" - ["Ë"]=> - string(6) "Ë" - ["Ì"]=> - string(8) "Ì" - ["Í"]=> - string(8) "Í" - ["Î"]=> - string(7) "Î" - ["Ï"]=> - string(6) "Ï" - ["Ð"]=> - string(5) "Ð" - ["Ñ"]=> - string(8) "Ñ" - ["Ò"]=> - string(8) "Ò" - ["Ó"]=> - string(8) "Ó" - ["Ô"]=> - string(7) "Ô" - ["Õ"]=> - string(8) "Õ" - ["Ö"]=> - string(6) "Ö" - ["×"]=> - string(7) "×" - ["Ø"]=> - string(8) "Ø" - ["Ù"]=> - string(8) "Ù" - ["Ú"]=> - string(8) "Ú" - ["Û"]=> - string(7) "Û" - ["Ü"]=> - string(6) "Ü" - ["Ý"]=> - string(8) "Ý" - ["Þ"]=> - string(7) "Þ" - ["ß"]=> - string(7) "ß" - ["à"]=> - string(8) "à" - ["á"]=> - string(8) "á" - ["â"]=> - string(7) "â" - ["ã"]=> - string(8) "ã" - ["ä"]=> - string(6) "ä" - ["å"]=> - string(7) "å" - ["æ"]=> - string(7) "æ" - ["ç"]=> - string(8) "ç" - ["è"]=> - string(8) "è" - ["é"]=> - string(8) "é" - ["ê"]=> - string(7) "ê" - ["ë"]=> - string(6) "ë" - ["ì"]=> - string(8) "ì" - ["í"]=> - string(8) "í" - ["î"]=> - string(7) "î" - ["ï"]=> - string(6) "ï" - ["ð"]=> - string(5) "ð" - ["ñ"]=> - string(8) "ñ" - ["ò"]=> - string(8) "ò" - ["ó"]=> - string(8) "ó" - ["ô"]=> - string(7) "ô" - ["õ"]=> - string(8) "õ" - ["ö"]=> - string(6) "ö" - ["÷"]=> - string(8) "÷" - ["ø"]=> - string(8) "ø" - ["ù"]=> - string(8) "ù" - ["ú"]=> - string(8) "ú" - ["û"]=> - string(7) "û" - ["ü"]=> - string(6) "ü" - ["ý"]=> - string(8) "ý" - ["þ"]=> - string(7) "þ" - ["ÿ"]=> - string(6) "ÿ" - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -array(100) { - [" "]=> - string(6) " " - ["¡"]=> - string(7) "¡" - ["¢"]=> - string(6) "¢" - ["£"]=> - string(7) "£" - ["¤"]=> - string(8) "¤" - ["¥"]=> - string(5) "¥" - ["¦"]=> - string(8) "¦" - ["§"]=> - string(6) "§" - ["¨"]=> - string(5) "¨" - ["©"]=> - string(6) "©" - ["ª"]=> - string(6) "ª" - ["«"]=> - string(7) "«" - ["¬"]=> - string(5) "¬" - [""]=> - string(5) "­" - ["®"]=> - string(5) "®" - ["¯"]=> - string(6) "¯" - ["°"]=> - string(5) "°" - ["±"]=> - string(8) "±" - ["²"]=> - string(6) "²" - ["³"]=> - string(6) "³" - ["´"]=> - string(7) "´" - ["µ"]=> - string(7) "µ" - ["¶"]=> - string(6) "¶" - ["·"]=> - string(8) "·" - ["¸"]=> - string(7) "¸" - ["¹"]=> - string(6) "¹" - ["º"]=> - string(6) "º" - ["»"]=> - string(7) "»" - ["¼"]=> - string(8) "¼" - ["½"]=> - string(8) "½" - ["¾"]=> - string(8) "¾" - ["¿"]=> - string(8) "¿" - ["À"]=> - string(8) "À" - ["Á"]=> - string(8) "Á" - ["Â"]=> - string(7) "Â" - ["Ã"]=> - string(8) "Ã" - ["Ä"]=> - string(6) "Ä" - ["Å"]=> - string(7) "Å" - ["Æ"]=> - string(7) "Æ" - ["Ç"]=> - string(8) "Ç" - ["È"]=> - string(8) "È" - ["É"]=> - string(8) "É" - ["Ê"]=> - string(7) "Ê" - ["Ë"]=> - string(6) "Ë" - ["Ì"]=> - string(8) "Ì" - ["Í"]=> - string(8) "Í" - ["Î"]=> - string(7) "Î" - ["Ï"]=> - string(6) "Ï" - ["Ð"]=> - string(5) "Ð" - ["Ñ"]=> - string(8) "Ñ" - ["Ò"]=> - string(8) "Ò" - ["Ó"]=> - string(8) "Ó" - ["Ô"]=> - string(7) "Ô" - ["Õ"]=> - string(8) "Õ" - ["Ö"]=> - string(6) "Ö" - ["×"]=> - string(7) "×" - ["Ø"]=> - string(8) "Ø" - ["Ù"]=> - string(8) "Ù" - ["Ú"]=> - string(8) "Ú" - ["Û"]=> - string(7) "Û" - ["Ü"]=> - string(6) "Ü" - ["Ý"]=> - string(8) "Ý" - ["Þ"]=> - string(7) "Þ" - ["ß"]=> - string(7) "ß" - ["à"]=> - string(8) "à" - ["á"]=> - string(8) "á" - ["â"]=> - string(7) "â" - ["ã"]=> - string(8) "ã" - ["ä"]=> - string(6) "ä" - ["å"]=> - string(7) "å" - ["æ"]=> - string(7) "æ" - ["ç"]=> - string(8) "ç" - ["è"]=> - string(8) "è" - ["é"]=> - string(8) "é" - ["ê"]=> - string(7) "ê" - ["ë"]=> - string(6) "ë" - ["ì"]=> - string(8) "ì" - ["í"]=> - string(8) "í" - ["î"]=> - string(7) "î" - ["ï"]=> - string(6) "ï" - ["ð"]=> - string(5) "ð" - ["ñ"]=> - string(8) "ñ" - ["ò"]=> - string(8) "ò" - ["ó"]=> - string(8) "ó" - ["ô"]=> - string(7) "ô" - ["õ"]=> - string(8) "õ" - ["ö"]=> - string(6) "ö" - ["÷"]=> - string(8) "÷" - ["ø"]=> - string(8) "ø" - ["ù"]=> - string(8) "ù" - ["ú"]=> - string(8) "ú" - ["û"]=> - string(7) "û" - ["ü"]=> - string(6) "ü" - ["ý"]=> - string(8) "ý" - ["þ"]=> - string(7) "þ" - ["ÿ"]=> - string(6) "ÿ" - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 7 -- -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 8 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, string given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, string given in %s on line %d -NULL --- Iteration 9 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, string given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, string given in %s on line %d -NULL --- Iteration 10 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, object given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, object given in %s on line %d -NULL --- Iteration 11 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, string given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, string given in %s on line %d -NULL --- Iteration 12 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, string given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, string given in %s on line %d -NULL --- Iteration 13 -- -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 14 -- -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 15 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, resource given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, resource given in %s on line %d -NULL --- Iteration 16 -- -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 17 -- -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -Done ---UEXPECTF-- -*** Testing get_html_translation_table() : usage variations *** - ---- Testing get_html_translation_table() by supplying different values for 'table' argument --- --- Iteration 1 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 2 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 3 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 4 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 5 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 6 -- -array(311) { - [u" "]=> - unicode(6) " " - [u"¡"]=> - unicode(7) "¡" - [u"¢"]=> - unicode(6) "¢" - [u"£"]=> - unicode(7) "£" - [u"¤"]=> - unicode(8) "¤" - [u"Â¥"]=> - unicode(5) "¥" - [u"¦"]=> - unicode(8) "¦" - [u"§"]=> - unicode(6) "§" - [u"¨"]=> - unicode(5) "¨" - [u"©"]=> - unicode(6) "©" - [u"ª"]=> - unicode(6) "ª" - [u"«"]=> - unicode(7) "«" - [u"¬"]=> - unicode(5) "¬" - [u"Â"]=> - unicode(5) "­" - [u"®"]=> - unicode(5) "®" - [u"¯"]=> - unicode(6) "¯" - [u"°"]=> - unicode(5) "°" - [u"±"]=> - unicode(8) "±" - [u"²"]=> - unicode(6) "²" - [u"³"]=> - unicode(6) "³" - [u"´"]=> - unicode(7) "´" - [u"µ"]=> - unicode(7) "µ" - [u"¶"]=> - unicode(6) "¶" - [u"·"]=> - unicode(8) "·" - [u"¸"]=> - unicode(7) "¸" - [u"¹"]=> - unicode(6) "¹" - [u"º"]=> - unicode(6) "º" - [u"»"]=> - unicode(7) "»" - [u"¼"]=> - unicode(8) "¼" - [u"½"]=> - unicode(8) "½" - [u"¾"]=> - unicode(8) "¾" - [u"¿"]=> - unicode(8) "¿" - [u"À"]=> - unicode(8) "À" - [u"Ã"]=> - unicode(8) "Á" - [u"Â"]=> - unicode(7) "Â" - [u"Ã"]=> - unicode(8) "Ã" - [u"Ä"]=> - unicode(6) "Ä" - [u"Ã…"]=> - unicode(7) "Å" - [u"Æ"]=> - unicode(7) "Æ" - [u"Ç"]=> - unicode(8) "Ç" - [u"È"]=> - unicode(8) "È" - [u"É"]=> - unicode(8) "É" - [u"Ê"]=> - unicode(7) "Ê" - [u"Ë"]=> - unicode(6) "Ë" - [u"ÃŒ"]=> - unicode(8) "Ì" - [u"Ã"]=> - unicode(8) "Í" - [u"ÃŽ"]=> - unicode(7) "Î" - [u"Ã"]=> - unicode(6) "Ï" - [u"Ã"]=> - unicode(5) "Ð" - [u"Ñ"]=> - unicode(8) "Ñ" - [u"Ã’"]=> - unicode(8) "Ò" - [u"Ó"]=> - unicode(8) "Ó" - [u"Ô"]=> - unicode(7) "Ô" - [u"Õ"]=> - unicode(8) "Õ" - [u"Ö"]=> - unicode(6) "Ö" - [u"×"]=> - unicode(7) "×" - [u"Ø"]=> - unicode(8) "Ø" - [u"Ù"]=> - unicode(8) "Ù" - [u"Ú"]=> - unicode(8) "Ú" - [u"Û"]=> - unicode(7) "Û" - [u"Ãœ"]=> - unicode(6) "Ü" - [u"Ã"]=> - unicode(8) "Ý" - [u"Þ"]=> - unicode(7) "Þ" - [u"ß"]=> - unicode(7) "ß" - [u"à "]=> - unicode(8) "à" - [u"á"]=> - unicode(8) "á" - [u"â"]=> - unicode(7) "â" - [u"ã"]=> - unicode(8) "ã" - [u"ä"]=> - unicode(6) "ä" - [u"Ã¥"]=> - unicode(7) "å" - [u"æ"]=> - unicode(7) "æ" - [u"ç"]=> - unicode(8) "ç" - [u"è"]=> - unicode(8) "è" - [u"é"]=> - unicode(8) "é" - [u"ê"]=> - unicode(7) "ê" - [u"ë"]=> - unicode(6) "ë" - [u"ì"]=> - unicode(8) "ì" - [u"Ã"]=> - unicode(8) "í" - [u"î"]=> - unicode(7) "î" - [u"ï"]=> - unicode(6) "ï" - [u"ð"]=> - unicode(5) "ð" - [u"ñ"]=> - unicode(8) "ñ" - [u"ò"]=> - unicode(8) "ò" - [u"ó"]=> - unicode(8) "ó" - [u"ô"]=> - unicode(7) "ô" - [u"õ"]=> - unicode(8) "õ" - [u"ö"]=> - unicode(6) "ö" - [u"÷"]=> - unicode(8) "÷" - [u"ø"]=> - unicode(8) "ø" - [u"ù"]=> - unicode(8) "ù" - [u"ú"]=> - unicode(8) "ú" - [u"û"]=> - unicode(7) "û" - [u"ü"]=> - unicode(6) "ü" - [u"ý"]=> - unicode(8) "ý" - [u"þ"]=> - unicode(7) "þ" - [u"ÿ"]=> - unicode(6) "ÿ" - [u"Å’"]=> - unicode(7) "Œ" - [u"Å“"]=> - unicode(7) "œ" - [u"Å "]=> - unicode(8) "Š" - [u"Å¡"]=> - unicode(8) "š" - [u"Ÿ"]=> - unicode(6) "Ÿ" - [u"Æ’"]=> - unicode(6) "ƒ" - [u"ˆ"]=> - unicode(6) "ˆ" - [u"Ëœ"]=> - unicode(7) "˜" - [u"Α"]=> - unicode(7) "Α" - [u"Î’"]=> - unicode(6) "Β" - [u"Γ"]=> - unicode(7) "Γ" - [u"Δ"]=> - unicode(7) "Δ" - [u"Ε"]=> - unicode(9) "Ε" - [u"Ζ"]=> - unicode(6) "Ζ" - [u"Η"]=> - unicode(5) "Η" - [u"Θ"]=> - unicode(7) "Θ" - [u"Ι"]=> - unicode(6) "Ι" - [u"Κ"]=> - unicode(7) "Κ" - [u"Λ"]=> - unicode(8) "Λ" - [u"Îœ"]=> - unicode(4) "Μ" - [u"Î"]=> - unicode(4) "Ν" - [u"Ξ"]=> - unicode(4) "Ξ" - [u"Ο"]=> - unicode(9) "Ο" - [u"Î "]=> - unicode(4) "Π" - [u"Ρ"]=> - unicode(5) "Ρ" - [u"Σ"]=> - unicode(7) "Σ" - [u"Τ"]=> - unicode(5) "Τ" - [u"Î¥"]=> - unicode(9) "Υ" - [u"Φ"]=> - unicode(5) "Φ" - [u"Χ"]=> - unicode(5) "Χ" - [u"Ψ"]=> - unicode(5) "Ψ" - [u"Ω"]=> - unicode(7) "Ω" - [u"α"]=> - unicode(7) "α" - [u"β"]=> - unicode(6) "β" - [u"γ"]=> - unicode(7) "γ" - [u"δ"]=> - unicode(7) "δ" - [u"ε"]=> - unicode(9) "ε" - [u"ζ"]=> - unicode(6) "ζ" - [u"η"]=> - unicode(5) "η" - [u"θ"]=> - unicode(7) "θ" - [u"ι"]=> - unicode(6) "ι" - [u"κ"]=> - unicode(7) "κ" - [u"λ"]=> - unicode(8) "λ" - [u"μ"]=> - unicode(4) "μ" - [u"ν"]=> - unicode(4) "ν" - [u"ξ"]=> - unicode(4) "ξ" - [u"ο"]=> - unicode(9) "ο" - [u"Ï€"]=> - unicode(4) "π" - [u"Ï"]=> - unicode(5) "ρ" - [u"Ï‚"]=> - unicode(8) "ς" - [u"σ"]=> - unicode(7) "σ" - [u"Ï„"]=> - unicode(5) "τ" - [u"Ï…"]=> - unicode(9) "υ" - [u"φ"]=> - unicode(5) "φ" - [u"χ"]=> - unicode(5) "χ" - [u"ψ"]=> - unicode(5) "ψ" - [u"ω"]=> - unicode(7) "ω" - [u"Ï‘"]=> - unicode(10) "ϑ" - [u"Ï’"]=> - unicode(7) "ϒ" - [u"Ï–"]=> - unicode(5) "ϖ" - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(8) " " - [u"‌"]=> - unicode(6) "‌" - [u"â€"]=> - unicode(5) "‍" - [u"‎"]=> - unicode(5) "‎" - [u"â€"]=> - unicode(5) "‏" - [u"–"]=> - unicode(7) "–" - [u"—"]=> - unicode(7) "—" - [u"‘"]=> - unicode(7) "‘" - [u"’"]=> - unicode(7) "’" - [u"‚"]=> - unicode(7) "‚" - [u"“"]=> - unicode(7) "“" - [u"â€"]=> - unicode(7) "”" - [u"„"]=> - unicode(7) "„" - [u"†"]=> - unicode(8) "†" - [u"‡"]=> - unicode(8) "‡" - [u"•"]=> - unicode(6) "•" - [u"…"]=> - unicode(8) "…" - [u"‰"]=> - unicode(8) "‰" - [u"′"]=> - unicode(7) "′" - [u"″"]=> - unicode(7) "″" - [u"‹"]=> - unicode(8) "‹" - [u"›"]=> - unicode(8) "›" - [u"‾"]=> - unicode(7) "‾" - [u"â„"]=> - unicode(7) "⁄" - [u"€"]=> - unicode(6) "€" - [u"â„‘"]=> - unicode(7) "ℑ" - [u"℘"]=> - unicode(8) "℘" - [u"â„œ"]=> - unicode(6) "ℜ" - [u"â„¢"]=> - unicode(7) "™" - [u"ℵ"]=> - unicode(9) "ℵ" - [u"â†"]=> - unicode(6) "←" - [u"↑"]=> - unicode(6) "↑" - [u"→"]=> - unicode(6) "→" - [u"↓"]=> - unicode(6) "↓" - [u"↔"]=> - unicode(6) "↔" - [u"↵"]=> - unicode(7) "↵" - [u"â‡"]=> - unicode(6) "⇐" - [u"⇑"]=> - unicode(6) "⇑" - [u"⇒"]=> - unicode(6) "⇒" - [u"⇓"]=> - unicode(6) "⇓" - [u"⇔"]=> - unicode(6) "⇔" - [u"⇕"]=> - unicode(6) "⇕" - [u"⇚"]=> - unicode(7) "⇚" - [u"⇛"]=> - unicode(7) "⇛" - [u"â‡"]=> - unicode(7) "↝" - [u"∀"]=> - unicode(8) "∀" - [u"âˆ"]=> - unicode(6) "∁" - [u"∂"]=> - unicode(6) "∂" - [u"∃"]=> - unicode(7) "∃" - [u"∄"]=> - unicode(8) "∄" - [u"∅"]=> - unicode(7) "∅" - [u"∇"]=> - unicode(7) "∇" - [u"∈"]=> - unicode(6) "∈" - [u"∉"]=> - unicode(7) "∉" - [u"∊"]=> - unicode(7) "&epsis;" - [u"∋"]=> - unicode(4) "∋" - [u"∌"]=> - unicode(7) "∌" - [u"âˆ"]=> - unicode(7) "϶" - [u"âˆ"]=> - unicode(6) "∏" - [u"âˆ"]=> - unicode(8) "∐" - [u"∑"]=> - unicode(5) "∑" - [u"−"]=> - unicode(7) "−" - [u"∓"]=> - unicode(8) "∓" - [u"∔"]=> - unicode(8) "∔" - [u"∖"]=> - unicode(7) "∖" - [u"∗"]=> - unicode(8) "∗" - [u"∘"]=> - unicode(8) "∘" - [u"√"]=> - unicode(7) "√" - [u"âˆ"]=> - unicode(6) "∝" - [u"∞"]=> - unicode(7) "∞" - [u"∟"]=> - unicode(7) "&ang90;" - [u"∠"]=> - unicode(5) "∠" - [u"∡"]=> - unicode(8) "∡" - [u"∢"]=> - unicode(8) "∢" - [u"∣"]=> - unicode(5) "∣" - [u"∤"]=> - unicode(6) "∤" - [u"∥"]=> - unicode(5) "∥" - [u"∦"]=> - unicode(6) "∦" - [u"∧"]=> - unicode(5) "∧" - [u"∨"]=> - unicode(4) "∨" - [u"∩"]=> - unicode(5) "∩" - [u"∪"]=> - unicode(5) "∪" - [u"∫"]=> - unicode(5) "∫" - [u"∮"]=> - unicode(8) "∮" - [u"∴"]=> - unicode(8) "∴" - [u"∵"]=> - unicode(8) "∵" - [u"∼"]=> - unicode(5) "∼" - [u"∽"]=> - unicode(6) "∽" - [u"≀"]=> - unicode(8) "≀" - [u"â‰"]=> - unicode(6) "≁" - [u"≃"]=> - unicode(6) "≃" - [u"≄"]=> - unicode(7) "≄" - [u"≅"]=> - unicode(6) "≅" - [u"≇"]=> - unicode(7) "≇" - [u"≈"]=> - unicode(7) "≈" - [u"≉"]=> - unicode(5) "≉" - [u"≊"]=> - unicode(5) "≊" - [u"≌"]=> - unicode(7) "≌" - [u"â‰"]=> - unicode(7) "≈" - [u"≎"]=> - unicode(6) "≎" - [u"â‰"]=> - unicode(7) "≏" - [u"≠"]=> - unicode(4) "≠" - [u"≡"]=> - unicode(7) "≡" - [u"≤"]=> - unicode(4) "≤" - [u"≥"]=> - unicode(4) "≥" - [u"≦"]=> - unicode(4) "≦" - [u"≧"]=> - unicode(4) "≧" - [u"≨"]=> - unicode(5) "≨" - [u"≩"]=> - unicode(5) "≩" - [u"≪"]=> - unicode(4) "≪" - [u"≫"]=> - unicode(4) "≫" - [u"≬"]=> - unicode(7) "≬" - [u"≮"]=> - unicode(5) "≮" - [u"≯"]=> - unicode(5) "≯" - [u"≰"]=> - unicode(6) "⩽̸" - [u"≱"]=> - unicode(6) "⩾̸" - [u"≲"]=> - unicode(6) "≲" - [u"≳"]=> - unicode(6) "≳" - [u"≶"]=> - unicode(4) "≶" - [u"≷"]=> - unicode(4) "≷" - [u"≺"]=> - unicode(4) "≺" - [u"≻"]=> - unicode(4) "≻" - [u"≼"]=> - unicode(7) "&cupre;" - [u"≽"]=> - unicode(7) "&sscue;" - [u"≾"]=> - unicode(7) "≾" - [u"≿"]=> - unicode(7) "≿" - [u"⊀"]=> - unicode(5) "⊀" - [u"âŠ"]=> - unicode(5) "⊁" - [u"⊂"]=> - unicode(5) "⊂" - [u"⊃"]=> - unicode(5) "⊃" - [u"⊄"]=> - unicode(6) "⊄" - [u"⊅"]=> - unicode(6) "⊅" - [u"⊆"]=> - unicode(6) "⊆" - [u"⊇"]=> - unicode(6) "⊇" - [u"⊕"]=> - unicode(7) "⊕" - [u"⊗"]=> - unicode(8) "⊗" - [u"⊥"]=> - unicode(6) "⊥" - [u"â‹…"]=> - unicode(6) "⋅" - [u"⌈"]=> - unicode(7) "⌈" - [u"⌉"]=> - unicode(7) "⌉" - [u"⌊"]=> - unicode(8) "⌊" - [u"⌋"]=> - unicode(8) "⌋" - [u"〈"]=> - unicode(6) "⟨" - [u"〉"]=> - unicode(6) "⟩" - [u"â—Š"]=> - unicode(5) "◊" - [u"â™ "]=> - unicode(8) "♠" - [u"♣"]=> - unicode(7) "♣" - [u"♥"]=> - unicode(8) "♥" - [u"♦"]=> - unicode(7) "♦" - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -array(311) { - [u" "]=> - unicode(6) " " - [u"¡"]=> - unicode(7) "¡" - [u"¢"]=> - unicode(6) "¢" - [u"£"]=> - unicode(7) "£" - [u"¤"]=> - unicode(8) "¤" - [u"Â¥"]=> - unicode(5) "¥" - [u"¦"]=> - unicode(8) "¦" - [u"§"]=> - unicode(6) "§" - [u"¨"]=> - unicode(5) "¨" - [u"©"]=> - unicode(6) "©" - [u"ª"]=> - unicode(6) "ª" - [u"«"]=> - unicode(7) "«" - [u"¬"]=> - unicode(5) "¬" - [u"Â"]=> - unicode(5) "­" - [u"®"]=> - unicode(5) "®" - [u"¯"]=> - unicode(6) "¯" - [u"°"]=> - unicode(5) "°" - [u"±"]=> - unicode(8) "±" - [u"²"]=> - unicode(6) "²" - [u"³"]=> - unicode(6) "³" - [u"´"]=> - unicode(7) "´" - [u"µ"]=> - unicode(7) "µ" - [u"¶"]=> - unicode(6) "¶" - [u"·"]=> - unicode(8) "·" - [u"¸"]=> - unicode(7) "¸" - [u"¹"]=> - unicode(6) "¹" - [u"º"]=> - unicode(6) "º" - [u"»"]=> - unicode(7) "»" - [u"¼"]=> - unicode(8) "¼" - [u"½"]=> - unicode(8) "½" - [u"¾"]=> - unicode(8) "¾" - [u"¿"]=> - unicode(8) "¿" - [u"À"]=> - unicode(8) "À" - [u"Ã"]=> - unicode(8) "Á" - [u"Â"]=> - unicode(7) "Â" - [u"Ã"]=> - unicode(8) "Ã" - [u"Ä"]=> - unicode(6) "Ä" - [u"Ã…"]=> - unicode(7) "Å" - [u"Æ"]=> - unicode(7) "Æ" - [u"Ç"]=> - unicode(8) "Ç" - [u"È"]=> - unicode(8) "È" - [u"É"]=> - unicode(8) "É" - [u"Ê"]=> - unicode(7) "Ê" - [u"Ë"]=> - unicode(6) "Ë" - [u"ÃŒ"]=> - unicode(8) "Ì" - [u"Ã"]=> - unicode(8) "Í" - [u"ÃŽ"]=> - unicode(7) "Î" - [u"Ã"]=> - unicode(6) "Ï" - [u"Ã"]=> - unicode(5) "Ð" - [u"Ñ"]=> - unicode(8) "Ñ" - [u"Ã’"]=> - unicode(8) "Ò" - [u"Ó"]=> - unicode(8) "Ó" - [u"Ô"]=> - unicode(7) "Ô" - [u"Õ"]=> - unicode(8) "Õ" - [u"Ö"]=> - unicode(6) "Ö" - [u"×"]=> - unicode(7) "×" - [u"Ø"]=> - unicode(8) "Ø" - [u"Ù"]=> - unicode(8) "Ù" - [u"Ú"]=> - unicode(8) "Ú" - [u"Û"]=> - unicode(7) "Û" - [u"Ãœ"]=> - unicode(6) "Ü" - [u"Ã"]=> - unicode(8) "Ý" - [u"Þ"]=> - unicode(7) "Þ" - [u"ß"]=> - unicode(7) "ß" - [u"à "]=> - unicode(8) "à" - [u"á"]=> - unicode(8) "á" - [u"â"]=> - unicode(7) "â" - [u"ã"]=> - unicode(8) "ã" - [u"ä"]=> - unicode(6) "ä" - [u"Ã¥"]=> - unicode(7) "å" - [u"æ"]=> - unicode(7) "æ" - [u"ç"]=> - unicode(8) "ç" - [u"è"]=> - unicode(8) "è" - [u"é"]=> - unicode(8) "é" - [u"ê"]=> - unicode(7) "ê" - [u"ë"]=> - unicode(6) "ë" - [u"ì"]=> - unicode(8) "ì" - [u"Ã"]=> - unicode(8) "í" - [u"î"]=> - unicode(7) "î" - [u"ï"]=> - unicode(6) "ï" - [u"ð"]=> - unicode(5) "ð" - [u"ñ"]=> - unicode(8) "ñ" - [u"ò"]=> - unicode(8) "ò" - [u"ó"]=> - unicode(8) "ó" - [u"ô"]=> - unicode(7) "ô" - [u"õ"]=> - unicode(8) "õ" - [u"ö"]=> - unicode(6) "ö" - [u"÷"]=> - unicode(8) "÷" - [u"ø"]=> - unicode(8) "ø" - [u"ù"]=> - unicode(8) "ù" - [u"ú"]=> - unicode(8) "ú" - [u"û"]=> - unicode(7) "û" - [u"ü"]=> - unicode(6) "ü" - [u"ý"]=> - unicode(8) "ý" - [u"þ"]=> - unicode(7) "þ" - [u"ÿ"]=> - unicode(6) "ÿ" - [u"Å’"]=> - unicode(7) "Œ" - [u"Å“"]=> - unicode(7) "œ" - [u"Å "]=> - unicode(8) "Š" - [u"Å¡"]=> - unicode(8) "š" - [u"Ÿ"]=> - unicode(6) "Ÿ" - [u"Æ’"]=> - unicode(6) "ƒ" - [u"ˆ"]=> - unicode(6) "ˆ" - [u"Ëœ"]=> - unicode(7) "˜" - [u"Α"]=> - unicode(7) "Α" - [u"Î’"]=> - unicode(6) "Β" - [u"Γ"]=> - unicode(7) "Γ" - [u"Δ"]=> - unicode(7) "Δ" - [u"Ε"]=> - unicode(9) "Ε" - [u"Ζ"]=> - unicode(6) "Ζ" - [u"Η"]=> - unicode(5) "Η" - [u"Θ"]=> - unicode(7) "Θ" - [u"Ι"]=> - unicode(6) "Ι" - [u"Κ"]=> - unicode(7) "Κ" - [u"Λ"]=> - unicode(8) "Λ" - [u"Îœ"]=> - unicode(4) "Μ" - [u"Î"]=> - unicode(4) "Ν" - [u"Ξ"]=> - unicode(4) "Ξ" - [u"Ο"]=> - unicode(9) "Ο" - [u"Î "]=> - unicode(4) "Π" - [u"Ρ"]=> - unicode(5) "Ρ" - [u"Σ"]=> - unicode(7) "Σ" - [u"Τ"]=> - unicode(5) "Τ" - [u"Î¥"]=> - unicode(9) "Υ" - [u"Φ"]=> - unicode(5) "Φ" - [u"Χ"]=> - unicode(5) "Χ" - [u"Ψ"]=> - unicode(5) "Ψ" - [u"Ω"]=> - unicode(7) "Ω" - [u"α"]=> - unicode(7) "α" - [u"β"]=> - unicode(6) "β" - [u"γ"]=> - unicode(7) "γ" - [u"δ"]=> - unicode(7) "δ" - [u"ε"]=> - unicode(9) "ε" - [u"ζ"]=> - unicode(6) "ζ" - [u"η"]=> - unicode(5) "η" - [u"θ"]=> - unicode(7) "θ" - [u"ι"]=> - unicode(6) "ι" - [u"κ"]=> - unicode(7) "κ" - [u"λ"]=> - unicode(8) "λ" - [u"μ"]=> - unicode(4) "μ" - [u"ν"]=> - unicode(4) "ν" - [u"ξ"]=> - unicode(4) "ξ" - [u"ο"]=> - unicode(9) "ο" - [u"Ï€"]=> - unicode(4) "π" - [u"Ï"]=> - unicode(5) "ρ" - [u"Ï‚"]=> - unicode(8) "ς" - [u"σ"]=> - unicode(7) "σ" - [u"Ï„"]=> - unicode(5) "τ" - [u"Ï…"]=> - unicode(9) "υ" - [u"φ"]=> - unicode(5) "φ" - [u"χ"]=> - unicode(5) "χ" - [u"ψ"]=> - unicode(5) "ψ" - [u"ω"]=> - unicode(7) "ω" - [u"Ï‘"]=> - unicode(10) "ϑ" - [u"Ï’"]=> - unicode(7) "ϒ" - [u"Ï–"]=> - unicode(5) "ϖ" - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(8) " " - [u"‌"]=> - unicode(6) "‌" - [u"â€"]=> - unicode(5) "‍" - [u"‎"]=> - unicode(5) "‎" - [u"â€"]=> - unicode(5) "‏" - [u"–"]=> - unicode(7) "–" - [u"—"]=> - unicode(7) "—" - [u"‘"]=> - unicode(7) "‘" - [u"’"]=> - unicode(7) "’" - [u"‚"]=> - unicode(7) "‚" - [u"“"]=> - unicode(7) "“" - [u"â€"]=> - unicode(7) "”" - [u"„"]=> - unicode(7) "„" - [u"†"]=> - unicode(8) "†" - [u"‡"]=> - unicode(8) "‡" - [u"•"]=> - unicode(6) "•" - [u"…"]=> - unicode(8) "…" - [u"‰"]=> - unicode(8) "‰" - [u"′"]=> - unicode(7) "′" - [u"″"]=> - unicode(7) "″" - [u"‹"]=> - unicode(8) "‹" - [u"›"]=> - unicode(8) "›" - [u"‾"]=> - unicode(7) "‾" - [u"â„"]=> - unicode(7) "⁄" - [u"€"]=> - unicode(6) "€" - [u"â„‘"]=> - unicode(7) "ℑ" - [u"℘"]=> - unicode(8) "℘" - [u"â„œ"]=> - unicode(6) "ℜ" - [u"â„¢"]=> - unicode(7) "™" - [u"ℵ"]=> - unicode(9) "ℵ" - [u"â†"]=> - unicode(6) "←" - [u"↑"]=> - unicode(6) "↑" - [u"→"]=> - unicode(6) "→" - [u"↓"]=> - unicode(6) "↓" - [u"↔"]=> - unicode(6) "↔" - [u"↵"]=> - unicode(7) "↵" - [u"â‡"]=> - unicode(6) "⇐" - [u"⇑"]=> - unicode(6) "⇑" - [u"⇒"]=> - unicode(6) "⇒" - [u"⇓"]=> - unicode(6) "⇓" - [u"⇔"]=> - unicode(6) "⇔" - [u"⇕"]=> - unicode(6) "⇕" - [u"⇚"]=> - unicode(7) "⇚" - [u"⇛"]=> - unicode(7) "⇛" - [u"â‡"]=> - unicode(7) "↝" - [u"∀"]=> - unicode(8) "∀" - [u"âˆ"]=> - unicode(6) "∁" - [u"∂"]=> - unicode(6) "∂" - [u"∃"]=> - unicode(7) "∃" - [u"∄"]=> - unicode(8) "∄" - [u"∅"]=> - unicode(7) "∅" - [u"∇"]=> - unicode(7) "∇" - [u"∈"]=> - unicode(6) "∈" - [u"∉"]=> - unicode(7) "∉" - [u"∊"]=> - unicode(7) "&epsis;" - [u"∋"]=> - unicode(4) "∋" - [u"∌"]=> - unicode(7) "∌" - [u"âˆ"]=> - unicode(7) "϶" - [u"âˆ"]=> - unicode(6) "∏" - [u"âˆ"]=> - unicode(8) "∐" - [u"∑"]=> - unicode(5) "∑" - [u"−"]=> - unicode(7) "−" - [u"∓"]=> - unicode(8) "∓" - [u"∔"]=> - unicode(8) "∔" - [u"∖"]=> - unicode(7) "∖" - [u"∗"]=> - unicode(8) "∗" - [u"∘"]=> - unicode(8) "∘" - [u"√"]=> - unicode(7) "√" - [u"âˆ"]=> - unicode(6) "∝" - [u"∞"]=> - unicode(7) "∞" - [u"∟"]=> - unicode(7) "&ang90;" - [u"∠"]=> - unicode(5) "∠" - [u"∡"]=> - unicode(8) "∡" - [u"∢"]=> - unicode(8) "∢" - [u"∣"]=> - unicode(5) "∣" - [u"∤"]=> - unicode(6) "∤" - [u"∥"]=> - unicode(5) "∥" - [u"∦"]=> - unicode(6) "∦" - [u"∧"]=> - unicode(5) "∧" - [u"∨"]=> - unicode(4) "∨" - [u"∩"]=> - unicode(5) "∩" - [u"∪"]=> - unicode(5) "∪" - [u"∫"]=> - unicode(5) "∫" - [u"∮"]=> - unicode(8) "∮" - [u"∴"]=> - unicode(8) "∴" - [u"∵"]=> - unicode(8) "∵" - [u"∼"]=> - unicode(5) "∼" - [u"∽"]=> - unicode(6) "∽" - [u"≀"]=> - unicode(8) "≀" - [u"â‰"]=> - unicode(6) "≁" - [u"≃"]=> - unicode(6) "≃" - [u"≄"]=> - unicode(7) "≄" - [u"≅"]=> - unicode(6) "≅" - [u"≇"]=> - unicode(7) "≇" - [u"≈"]=> - unicode(7) "≈" - [u"≉"]=> - unicode(5) "≉" - [u"≊"]=> - unicode(5) "≊" - [u"≌"]=> - unicode(7) "≌" - [u"â‰"]=> - unicode(7) "≈" - [u"≎"]=> - unicode(6) "≎" - [u"â‰"]=> - unicode(7) "≏" - [u"≠"]=> - unicode(4) "≠" - [u"≡"]=> - unicode(7) "≡" - [u"≤"]=> - unicode(4) "≤" - [u"≥"]=> - unicode(4) "≥" - [u"≦"]=> - unicode(4) "≦" - [u"≧"]=> - unicode(4) "≧" - [u"≨"]=> - unicode(5) "≨" - [u"≩"]=> - unicode(5) "≩" - [u"≪"]=> - unicode(4) "≪" - [u"≫"]=> - unicode(4) "≫" - [u"≬"]=> - unicode(7) "≬" - [u"≮"]=> - unicode(5) "≮" - [u"≯"]=> - unicode(5) "≯" - [u"≰"]=> - unicode(6) "⩽̸" - [u"≱"]=> - unicode(6) "⩾̸" - [u"≲"]=> - unicode(6) "≲" - [u"≳"]=> - unicode(6) "≳" - [u"≶"]=> - unicode(4) "≶" - [u"≷"]=> - unicode(4) "≷" - [u"≺"]=> - unicode(4) "≺" - [u"≻"]=> - unicode(4) "≻" - [u"≼"]=> - unicode(7) "&cupre;" - [u"≽"]=> - unicode(7) "&sscue;" - [u"≾"]=> - unicode(7) "≾" - [u"≿"]=> - unicode(7) "≿" - [u"⊀"]=> - unicode(5) "⊀" - [u"âŠ"]=> - unicode(5) "⊁" - [u"⊂"]=> - unicode(5) "⊂" - [u"⊃"]=> - unicode(5) "⊃" - [u"⊄"]=> - unicode(6) "⊄" - [u"⊅"]=> - unicode(6) "⊅" - [u"⊆"]=> - unicode(6) "⊆" - [u"⊇"]=> - unicode(6) "⊇" - [u"⊕"]=> - unicode(7) "⊕" - [u"⊗"]=> - unicode(8) "⊗" - [u"⊥"]=> - unicode(6) "⊥" - [u"â‹…"]=> - unicode(6) "⋅" - [u"⌈"]=> - unicode(7) "⌈" - [u"⌉"]=> - unicode(7) "⌉" - [u"⌊"]=> - unicode(8) "⌊" - [u"⌋"]=> - unicode(8) "⌋" - [u"〈"]=> - unicode(6) "⟨" - [u"〉"]=> - unicode(6) "⟩" - [u"â—Š"]=> - unicode(5) "◊" - [u"â™ "]=> - unicode(8) "♠" - [u"♣"]=> - unicode(7) "♣" - [u"♥"]=> - unicode(8) "♥" - [u"♦"]=> - unicode(7) "♦" - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 7 -- -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 8 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, Unicode string given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, Unicode string given in %s on line %d -NULL --- Iteration 9 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, Unicode string given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, Unicode string given in %s on line %d -NULL --- Iteration 10 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, object given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, object given in %s on line %d -NULL --- Iteration 11 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, Unicode string given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, Unicode string given in %s on line %d -NULL --- Iteration 12 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, Unicode string given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, Unicode string given in %s on line %d -NULL --- Iteration 13 -- -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 14 -- -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 15 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, resource given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, resource given in %s on line %d -NULL --- Iteration 16 -- -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 17 -- -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -Done diff --git a/ext/standard/tests/strings/get_html_translation_table_variation1.phpt b/ext/standard/tests/strings/get_html_translation_table_variation1.phpt deleted file mode 100644 index 4390ad2031..0000000000 --- a/ext/standard/tests/strings/get_html_translation_table_variation1.phpt +++ /dev/null @@ -1,2127 +0,0 @@ ---TEST-- -Test get_html_translation_table() function : usage variations - unexpected table values ---SKIPIF-- -<?php -if( substr(PHP_OS, 0, 3) == "WIN"){ - die('skip Not for Windows'); -} - -if( ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); - -if( !setlocale(LC_ALL, "en_US.UTF-8") ) { - die('skip failed to set locale settings to "en-US.UTF-8"'); -} -?> ---FILE-- -<?php -/* Prototype : array get_html_translation_table ( [int $table [, int $quote_style]] ) - * Description: Returns the internal translation table used by htmlspecialchars and htmlentities - * Source code: ext/standard/html.c -*/ - -/* - * test get_html_translation_table() with unexpected value for argument $table -*/ - -//set locale to en_US.UTF-8 -setlocale(LC_ALL, "en_US.UTF-8"); - -echo "*** Testing get_html_translation_table() : usage variations ***\n"; -// initialize all required variables -$quote_style = ENT_COMPAT; - -// get an unset variable -$unset_var = 10; -unset($unset_var); - -// a resource variable -$fp = fopen(__FILE__, "r"); - -// array with different values -$values = array ( - - // array values - array(), - array(0), - array(1), - array(1, 2), - array('color' => 'red', 'item' => 'pen'), - - // boolean values - true, - FALSE, - - // string values - "string", - 'string', - - // objects - new stdclass(), - - // empty string - "", - '', - - // null vlaues - NULL, - null, - - // resource var - $fp, - - // undefined variable - @$undefined_var, - - // unset variable - @$unset_var -); - - -// loop through each element of the array and check the working of get_html_translation_table() -// when $table arugment is supplied with different values -echo "\n--- Testing get_html_translation_table() by supplying different values for 'table' argument ---\n"; -$counter = 1; -for($index = 0; $index < count($values); $index ++) { - echo "-- Iteration $counter --\n"; - $table = $values [$index]; - - var_dump( get_html_translation_table($table) ); - var_dump( get_html_translation_table($table, $quote_style) ); - - $counter ++; -} - -// close resource -fclose($fp); - -echo "Done\n"; -?> ---EXPECTF-- -*** Testing get_html_translation_table() : usage variations *** - ---- Testing get_html_translation_table() by supplying different values for 'table' argument --- --- Iteration 1 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 2 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 3 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 4 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 5 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 6 -- -array(100) { - [" "]=> - string(6) " " - ["¡"]=> - string(7) "¡" - ["¢"]=> - string(6) "¢" - ["£"]=> - string(7) "£" - ["¤"]=> - string(8) "¤" - ["¥"]=> - string(5) "¥" - ["¦"]=> - string(8) "¦" - ["§"]=> - string(6) "§" - ["¨"]=> - string(5) "¨" - ["©"]=> - string(6) "©" - ["ª"]=> - string(6) "ª" - ["«"]=> - string(7) "«" - ["¬"]=> - string(5) "¬" - [""]=> - string(5) "­" - ["®"]=> - string(5) "®" - ["¯"]=> - string(6) "¯" - ["°"]=> - string(5) "°" - ["±"]=> - string(8) "±" - ["²"]=> - string(6) "²" - ["³"]=> - string(6) "³" - ["´"]=> - string(7) "´" - ["µ"]=> - string(7) "µ" - ["¶"]=> - string(6) "¶" - ["·"]=> - string(8) "·" - ["¸"]=> - string(7) "¸" - ["¹"]=> - string(6) "¹" - ["º"]=> - string(6) "º" - ["»"]=> - string(7) "»" - ["¼"]=> - string(8) "¼" - ["½"]=> - string(8) "½" - ["¾"]=> - string(8) "¾" - ["¿"]=> - string(8) "¿" - ["À"]=> - string(8) "À" - ["Á"]=> - string(8) "Á" - ["Â"]=> - string(7) "Â" - ["Ã"]=> - string(8) "Ã" - ["Ä"]=> - string(6) "Ä" - ["Å"]=> - string(7) "Å" - ["Æ"]=> - string(7) "Æ" - ["Ç"]=> - string(8) "Ç" - ["È"]=> - string(8) "È" - ["É"]=> - string(8) "É" - ["Ê"]=> - string(7) "Ê" - ["Ë"]=> - string(6) "Ë" - ["Ì"]=> - string(8) "Ì" - ["Í"]=> - string(8) "Í" - ["Î"]=> - string(7) "Î" - ["Ï"]=> - string(6) "Ï" - ["Ð"]=> - string(5) "Ð" - ["Ñ"]=> - string(8) "Ñ" - ["Ò"]=> - string(8) "Ò" - ["Ó"]=> - string(8) "Ó" - ["Ô"]=> - string(7) "Ô" - ["Õ"]=> - string(8) "Õ" - ["Ö"]=> - string(6) "Ö" - ["×"]=> - string(7) "×" - ["Ø"]=> - string(8) "Ø" - ["Ù"]=> - string(8) "Ù" - ["Ú"]=> - string(8) "Ú" - ["Û"]=> - string(7) "Û" - ["Ü"]=> - string(6) "Ü" - ["Ý"]=> - string(8) "Ý" - ["Þ"]=> - string(7) "Þ" - ["ß"]=> - string(7) "ß" - ["à"]=> - string(8) "à" - ["á"]=> - string(8) "á" - ["â"]=> - string(7) "â" - ["ã"]=> - string(8) "ã" - ["ä"]=> - string(6) "ä" - ["å"]=> - string(7) "å" - ["æ"]=> - string(7) "æ" - ["ç"]=> - string(8) "ç" - ["è"]=> - string(8) "è" - ["é"]=> - string(8) "é" - ["ê"]=> - string(7) "ê" - ["ë"]=> - string(6) "ë" - ["ì"]=> - string(8) "ì" - ["í"]=> - string(8) "í" - ["î"]=> - string(7) "î" - ["ï"]=> - string(6) "ï" - ["ð"]=> - string(5) "ð" - ["ñ"]=> - string(8) "ñ" - ["ò"]=> - string(8) "ò" - ["ó"]=> - string(8) "ó" - ["ô"]=> - string(7) "ô" - ["õ"]=> - string(8) "õ" - ["ö"]=> - string(6) "ö" - ["÷"]=> - string(8) "÷" - ["ø"]=> - string(8) "ø" - ["ù"]=> - string(8) "ù" - ["ú"]=> - string(8) "ú" - ["û"]=> - string(7) "û" - ["ü"]=> - string(6) "ü" - ["ý"]=> - string(8) "ý" - ["þ"]=> - string(7) "þ" - ["ÿ"]=> - string(6) "ÿ" - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -array(100) { - [" "]=> - string(6) " " - ["¡"]=> - string(7) "¡" - ["¢"]=> - string(6) "¢" - ["£"]=> - string(7) "£" - ["¤"]=> - string(8) "¤" - ["¥"]=> - string(5) "¥" - ["¦"]=> - string(8) "¦" - ["§"]=> - string(6) "§" - ["¨"]=> - string(5) "¨" - ["©"]=> - string(6) "©" - ["ª"]=> - string(6) "ª" - ["«"]=> - string(7) "«" - ["¬"]=> - string(5) "¬" - [""]=> - string(5) "­" - ["®"]=> - string(5) "®" - ["¯"]=> - string(6) "¯" - ["°"]=> - string(5) "°" - ["±"]=> - string(8) "±" - ["²"]=> - string(6) "²" - ["³"]=> - string(6) "³" - ["´"]=> - string(7) "´" - ["µ"]=> - string(7) "µ" - ["¶"]=> - string(6) "¶" - ["·"]=> - string(8) "·" - ["¸"]=> - string(7) "¸" - ["¹"]=> - string(6) "¹" - ["º"]=> - string(6) "º" - ["»"]=> - string(7) "»" - ["¼"]=> - string(8) "¼" - ["½"]=> - string(8) "½" - ["¾"]=> - string(8) "¾" - ["¿"]=> - string(8) "¿" - ["À"]=> - string(8) "À" - ["Á"]=> - string(8) "Á" - ["Â"]=> - string(7) "Â" - ["Ã"]=> - string(8) "Ã" - ["Ä"]=> - string(6) "Ä" - ["Å"]=> - string(7) "Å" - ["Æ"]=> - string(7) "Æ" - ["Ç"]=> - string(8) "Ç" - ["È"]=> - string(8) "È" - ["É"]=> - string(8) "É" - ["Ê"]=> - string(7) "Ê" - ["Ë"]=> - string(6) "Ë" - ["Ì"]=> - string(8) "Ì" - ["Í"]=> - string(8) "Í" - ["Î"]=> - string(7) "Î" - ["Ï"]=> - string(6) "Ï" - ["Ð"]=> - string(5) "Ð" - ["Ñ"]=> - string(8) "Ñ" - ["Ò"]=> - string(8) "Ò" - ["Ó"]=> - string(8) "Ó" - ["Ô"]=> - string(7) "Ô" - ["Õ"]=> - string(8) "Õ" - ["Ö"]=> - string(6) "Ö" - ["×"]=> - string(7) "×" - ["Ø"]=> - string(8) "Ø" - ["Ù"]=> - string(8) "Ù" - ["Ú"]=> - string(8) "Ú" - ["Û"]=> - string(7) "Û" - ["Ü"]=> - string(6) "Ü" - ["Ý"]=> - string(8) "Ý" - ["Þ"]=> - string(7) "Þ" - ["ß"]=> - string(7) "ß" - ["à"]=> - string(8) "à" - ["á"]=> - string(8) "á" - ["â"]=> - string(7) "â" - ["ã"]=> - string(8) "ã" - ["ä"]=> - string(6) "ä" - ["å"]=> - string(7) "å" - ["æ"]=> - string(7) "æ" - ["ç"]=> - string(8) "ç" - ["è"]=> - string(8) "è" - ["é"]=> - string(8) "é" - ["ê"]=> - string(7) "ê" - ["ë"]=> - string(6) "ë" - ["ì"]=> - string(8) "ì" - ["í"]=> - string(8) "í" - ["î"]=> - string(7) "î" - ["ï"]=> - string(6) "ï" - ["ð"]=> - string(5) "ð" - ["ñ"]=> - string(8) "ñ" - ["ò"]=> - string(8) "ò" - ["ó"]=> - string(8) "ó" - ["ô"]=> - string(7) "ô" - ["õ"]=> - string(8) "õ" - ["ö"]=> - string(6) "ö" - ["÷"]=> - string(8) "÷" - ["ø"]=> - string(8) "ø" - ["ù"]=> - string(8) "ù" - ["ú"]=> - string(8) "ú" - ["û"]=> - string(7) "û" - ["ü"]=> - string(6) "ü" - ["ý"]=> - string(8) "ý" - ["þ"]=> - string(7) "þ" - ["ÿ"]=> - string(6) "ÿ" - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 7 -- -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 8 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, string given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, string given in %s on line %d -NULL --- Iteration 9 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, string given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, string given in %s on line %d -NULL --- Iteration 10 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, object given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, object given in %s on line %d -NULL --- Iteration 11 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, string given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, string given in %s on line %d -NULL --- Iteration 12 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, string given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, string given in %s on line %d -NULL --- Iteration 13 -- -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 14 -- -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 15 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, resource given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, resource given in %s on line %d -NULL --- Iteration 16 -- -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 17 -- -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -array(4) { - ["""]=> - string(6) """ - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -Done ---UEXPECTF-- -*** Testing get_html_translation_table() : usage variations *** - ---- Testing get_html_translation_table() by supplying different values for 'table' argument --- --- Iteration 1 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 2 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 3 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 4 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 5 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, array given in %s on line %d -NULL --- Iteration 6 -- -array(311) { - [u" "]=> - unicode(6) " " - [u"¡"]=> - unicode(7) "¡" - [u"¢"]=> - unicode(6) "¢" - [u"£"]=> - unicode(7) "£" - [u"¤"]=> - unicode(8) "¤" - [u"Â¥"]=> - unicode(5) "¥" - [u"¦"]=> - unicode(8) "¦" - [u"§"]=> - unicode(6) "§" - [u"¨"]=> - unicode(5) "¨" - [u"©"]=> - unicode(6) "©" - [u"ª"]=> - unicode(6) "ª" - [u"«"]=> - unicode(7) "«" - [u"¬"]=> - unicode(5) "¬" - [u"Â"]=> - unicode(5) "­" - [u"®"]=> - unicode(5) "®" - [u"¯"]=> - unicode(6) "¯" - [u"°"]=> - unicode(5) "°" - [u"±"]=> - unicode(8) "±" - [u"²"]=> - unicode(6) "²" - [u"³"]=> - unicode(6) "³" - [u"´"]=> - unicode(7) "´" - [u"µ"]=> - unicode(7) "µ" - [u"¶"]=> - unicode(6) "¶" - [u"·"]=> - unicode(8) "·" - [u"¸"]=> - unicode(7) "¸" - [u"¹"]=> - unicode(6) "¹" - [u"º"]=> - unicode(6) "º" - [u"»"]=> - unicode(7) "»" - [u"¼"]=> - unicode(8) "¼" - [u"½"]=> - unicode(8) "½" - [u"¾"]=> - unicode(8) "¾" - [u"¿"]=> - unicode(8) "¿" - [u"À"]=> - unicode(8) "À" - [u"Ã"]=> - unicode(8) "Á" - [u"Â"]=> - unicode(7) "Â" - [u"Ã"]=> - unicode(8) "Ã" - [u"Ä"]=> - unicode(6) "Ä" - [u"Ã…"]=> - unicode(7) "Å" - [u"Æ"]=> - unicode(7) "Æ" - [u"Ç"]=> - unicode(8) "Ç" - [u"È"]=> - unicode(8) "È" - [u"É"]=> - unicode(8) "É" - [u"Ê"]=> - unicode(7) "Ê" - [u"Ë"]=> - unicode(6) "Ë" - [u"ÃŒ"]=> - unicode(8) "Ì" - [u"Ã"]=> - unicode(8) "Í" - [u"ÃŽ"]=> - unicode(7) "Î" - [u"Ã"]=> - unicode(6) "Ï" - [u"Ã"]=> - unicode(5) "Ð" - [u"Ñ"]=> - unicode(8) "Ñ" - [u"Ã’"]=> - unicode(8) "Ò" - [u"Ó"]=> - unicode(8) "Ó" - [u"Ô"]=> - unicode(7) "Ô" - [u"Õ"]=> - unicode(8) "Õ" - [u"Ö"]=> - unicode(6) "Ö" - [u"×"]=> - unicode(7) "×" - [u"Ø"]=> - unicode(8) "Ø" - [u"Ù"]=> - unicode(8) "Ù" - [u"Ú"]=> - unicode(8) "Ú" - [u"Û"]=> - unicode(7) "Û" - [u"Ãœ"]=> - unicode(6) "Ü" - [u"Ã"]=> - unicode(8) "Ý" - [u"Þ"]=> - unicode(7) "Þ" - [u"ß"]=> - unicode(7) "ß" - [u"à "]=> - unicode(8) "à" - [u"á"]=> - unicode(8) "á" - [u"â"]=> - unicode(7) "â" - [u"ã"]=> - unicode(8) "ã" - [u"ä"]=> - unicode(6) "ä" - [u"Ã¥"]=> - unicode(7) "å" - [u"æ"]=> - unicode(7) "æ" - [u"ç"]=> - unicode(8) "ç" - [u"è"]=> - unicode(8) "è" - [u"é"]=> - unicode(8) "é" - [u"ê"]=> - unicode(7) "ê" - [u"ë"]=> - unicode(6) "ë" - [u"ì"]=> - unicode(8) "ì" - [u"Ã"]=> - unicode(8) "í" - [u"î"]=> - unicode(7) "î" - [u"ï"]=> - unicode(6) "ï" - [u"ð"]=> - unicode(5) "ð" - [u"ñ"]=> - unicode(8) "ñ" - [u"ò"]=> - unicode(8) "ò" - [u"ó"]=> - unicode(8) "ó" - [u"ô"]=> - unicode(7) "ô" - [u"õ"]=> - unicode(8) "õ" - [u"ö"]=> - unicode(6) "ö" - [u"÷"]=> - unicode(8) "÷" - [u"ø"]=> - unicode(8) "ø" - [u"ù"]=> - unicode(8) "ù" - [u"ú"]=> - unicode(8) "ú" - [u"û"]=> - unicode(7) "û" - [u"ü"]=> - unicode(6) "ü" - [u"ý"]=> - unicode(8) "ý" - [u"þ"]=> - unicode(7) "þ" - [u"ÿ"]=> - unicode(6) "ÿ" - [u"Å’"]=> - unicode(7) "Œ" - [u"Å“"]=> - unicode(7) "œ" - [u"Å "]=> - unicode(8) "Š" - [u"Å¡"]=> - unicode(8) "š" - [u"Ÿ"]=> - unicode(6) "Ÿ" - [u"Æ’"]=> - unicode(6) "ƒ" - [u"ˆ"]=> - unicode(6) "ˆ" - [u"Ëœ"]=> - unicode(7) "˜" - [u"Α"]=> - unicode(7) "Α" - [u"Î’"]=> - unicode(6) "Β" - [u"Γ"]=> - unicode(7) "Γ" - [u"Δ"]=> - unicode(7) "Δ" - [u"Ε"]=> - unicode(9) "Ε" - [u"Ζ"]=> - unicode(6) "Ζ" - [u"Η"]=> - unicode(5) "Η" - [u"Θ"]=> - unicode(7) "Θ" - [u"Ι"]=> - unicode(6) "Ι" - [u"Κ"]=> - unicode(7) "Κ" - [u"Λ"]=> - unicode(8) "Λ" - [u"Îœ"]=> - unicode(4) "Μ" - [u"Î"]=> - unicode(4) "Ν" - [u"Ξ"]=> - unicode(4) "Ξ" - [u"Ο"]=> - unicode(9) "Ο" - [u"Î "]=> - unicode(4) "Π" - [u"Ρ"]=> - unicode(5) "Ρ" - [u"Σ"]=> - unicode(7) "Σ" - [u"Τ"]=> - unicode(5) "Τ" - [u"Î¥"]=> - unicode(9) "Υ" - [u"Φ"]=> - unicode(5) "Φ" - [u"Χ"]=> - unicode(5) "Χ" - [u"Ψ"]=> - unicode(5) "Ψ" - [u"Ω"]=> - unicode(7) "Ω" - [u"α"]=> - unicode(7) "α" - [u"β"]=> - unicode(6) "β" - [u"γ"]=> - unicode(7) "γ" - [u"δ"]=> - unicode(7) "δ" - [u"ε"]=> - unicode(9) "ε" - [u"ζ"]=> - unicode(6) "ζ" - [u"η"]=> - unicode(5) "η" - [u"θ"]=> - unicode(7) "θ" - [u"ι"]=> - unicode(6) "ι" - [u"κ"]=> - unicode(7) "κ" - [u"λ"]=> - unicode(8) "λ" - [u"μ"]=> - unicode(4) "μ" - [u"ν"]=> - unicode(4) "ν" - [u"ξ"]=> - unicode(4) "ξ" - [u"ο"]=> - unicode(9) "ο" - [u"Ï€"]=> - unicode(4) "π" - [u"Ï"]=> - unicode(5) "ρ" - [u"Ï‚"]=> - unicode(8) "ς" - [u"σ"]=> - unicode(7) "σ" - [u"Ï„"]=> - unicode(5) "τ" - [u"Ï…"]=> - unicode(9) "υ" - [u"φ"]=> - unicode(5) "φ" - [u"χ"]=> - unicode(5) "χ" - [u"ψ"]=> - unicode(5) "ψ" - [u"ω"]=> - unicode(7) "ω" - [u"Ï‘"]=> - unicode(10) "ϑ" - [u"Ï’"]=> - unicode(7) "ϒ" - [u"Ï–"]=> - unicode(5) "ϖ" - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(8) " " - [u"‌"]=> - unicode(6) "‌" - [u"â€"]=> - unicode(5) "‍" - [u"‎"]=> - unicode(5) "‎" - [u"â€"]=> - unicode(5) "‏" - [u"–"]=> - unicode(7) "–" - [u"—"]=> - unicode(7) "—" - [u"‘"]=> - unicode(7) "‘" - [u"’"]=> - unicode(7) "’" - [u"‚"]=> - unicode(7) "‚" - [u"“"]=> - unicode(7) "“" - [u"â€"]=> - unicode(7) "”" - [u"„"]=> - unicode(7) "„" - [u"†"]=> - unicode(8) "†" - [u"‡"]=> - unicode(8) "‡" - [u"•"]=> - unicode(6) "•" - [u"…"]=> - unicode(8) "…" - [u"‰"]=> - unicode(8) "‰" - [u"′"]=> - unicode(7) "′" - [u"″"]=> - unicode(7) "″" - [u"‹"]=> - unicode(8) "‹" - [u"›"]=> - unicode(8) "›" - [u"‾"]=> - unicode(7) "‾" - [u"â„"]=> - unicode(7) "⁄" - [u"€"]=> - unicode(6) "€" - [u"â„‘"]=> - unicode(7) "ℑ" - [u"℘"]=> - unicode(8) "℘" - [u"â„œ"]=> - unicode(6) "ℜ" - [u"â„¢"]=> - unicode(7) "™" - [u"ℵ"]=> - unicode(9) "ℵ" - [u"â†"]=> - unicode(6) "←" - [u"↑"]=> - unicode(6) "↑" - [u"→"]=> - unicode(6) "→" - [u"↓"]=> - unicode(6) "↓" - [u"↔"]=> - unicode(6) "↔" - [u"↵"]=> - unicode(7) "↵" - [u"â‡"]=> - unicode(6) "⇐" - [u"⇑"]=> - unicode(6) "⇑" - [u"⇒"]=> - unicode(6) "⇒" - [u"⇓"]=> - unicode(6) "⇓" - [u"⇔"]=> - unicode(6) "⇔" - [u"⇕"]=> - unicode(6) "⇕" - [u"⇚"]=> - unicode(7) "⇚" - [u"⇛"]=> - unicode(7) "⇛" - [u"â‡"]=> - unicode(7) "↝" - [u"∀"]=> - unicode(8) "∀" - [u"âˆ"]=> - unicode(6) "∁" - [u"∂"]=> - unicode(6) "∂" - [u"∃"]=> - unicode(7) "∃" - [u"∄"]=> - unicode(8) "∄" - [u"∅"]=> - unicode(7) "∅" - [u"∇"]=> - unicode(7) "∇" - [u"∈"]=> - unicode(6) "∈" - [u"∉"]=> - unicode(7) "∉" - [u"∊"]=> - unicode(7) "&epsis;" - [u"∋"]=> - unicode(4) "∋" - [u"∌"]=> - unicode(7) "∌" - [u"âˆ"]=> - unicode(7) "϶" - [u"âˆ"]=> - unicode(6) "∏" - [u"âˆ"]=> - unicode(8) "∐" - [u"∑"]=> - unicode(5) "∑" - [u"−"]=> - unicode(7) "−" - [u"∓"]=> - unicode(8) "∓" - [u"∔"]=> - unicode(8) "∔" - [u"∖"]=> - unicode(7) "∖" - [u"∗"]=> - unicode(8) "∗" - [u"∘"]=> - unicode(8) "∘" - [u"√"]=> - unicode(7) "√" - [u"âˆ"]=> - unicode(6) "∝" - [u"∞"]=> - unicode(7) "∞" - [u"∟"]=> - unicode(7) "&ang90;" - [u"∠"]=> - unicode(5) "∠" - [u"∡"]=> - unicode(8) "∡" - [u"∢"]=> - unicode(8) "∢" - [u"∣"]=> - unicode(5) "∣" - [u"∤"]=> - unicode(6) "∤" - [u"∥"]=> - unicode(5) "∥" - [u"∦"]=> - unicode(6) "∦" - [u"∧"]=> - unicode(5) "∧" - [u"∨"]=> - unicode(4) "∨" - [u"∩"]=> - unicode(5) "∩" - [u"∪"]=> - unicode(5) "∪" - [u"∫"]=> - unicode(5) "∫" - [u"∮"]=> - unicode(8) "∮" - [u"∴"]=> - unicode(8) "∴" - [u"∵"]=> - unicode(8) "∵" - [u"∼"]=> - unicode(5) "∼" - [u"∽"]=> - unicode(6) "∽" - [u"≀"]=> - unicode(8) "≀" - [u"â‰"]=> - unicode(6) "≁" - [u"≃"]=> - unicode(6) "≃" - [u"≄"]=> - unicode(7) "≄" - [u"≅"]=> - unicode(6) "≅" - [u"≇"]=> - unicode(7) "≇" - [u"≈"]=> - unicode(7) "≈" - [u"≉"]=> - unicode(5) "≉" - [u"≊"]=> - unicode(5) "≊" - [u"≌"]=> - unicode(7) "≌" - [u"â‰"]=> - unicode(7) "≈" - [u"≎"]=> - unicode(6) "≎" - [u"â‰"]=> - unicode(7) "≏" - [u"≠"]=> - unicode(4) "≠" - [u"≡"]=> - unicode(7) "≡" - [u"≤"]=> - unicode(4) "≤" - [u"≥"]=> - unicode(4) "≥" - [u"≦"]=> - unicode(4) "≦" - [u"≧"]=> - unicode(4) "≧" - [u"≨"]=> - unicode(5) "≨" - [u"≩"]=> - unicode(5) "≩" - [u"≪"]=> - unicode(4) "≪" - [u"≫"]=> - unicode(4) "≫" - [u"≬"]=> - unicode(7) "≬" - [u"≮"]=> - unicode(5) "≮" - [u"≯"]=> - unicode(5) "≯" - [u"≰"]=> - unicode(6) "⩽̸" - [u"≱"]=> - unicode(6) "⩾̸" - [u"≲"]=> - unicode(6) "≲" - [u"≳"]=> - unicode(6) "≳" - [u"≶"]=> - unicode(4) "≶" - [u"≷"]=> - unicode(4) "≷" - [u"≺"]=> - unicode(4) "≺" - [u"≻"]=> - unicode(4) "≻" - [u"≼"]=> - unicode(7) "&cupre;" - [u"≽"]=> - unicode(7) "&sscue;" - [u"≾"]=> - unicode(7) "≾" - [u"≿"]=> - unicode(7) "≿" - [u"⊀"]=> - unicode(5) "⊀" - [u"âŠ"]=> - unicode(5) "⊁" - [u"⊂"]=> - unicode(5) "⊂" - [u"⊃"]=> - unicode(5) "⊃" - [u"⊄"]=> - unicode(6) "⊄" - [u"⊅"]=> - unicode(6) "⊅" - [u"⊆"]=> - unicode(6) "⊆" - [u"⊇"]=> - unicode(6) "⊇" - [u"⊕"]=> - unicode(7) "⊕" - [u"⊗"]=> - unicode(8) "⊗" - [u"⊥"]=> - unicode(6) "⊥" - [u"â‹…"]=> - unicode(6) "⋅" - [u"⌈"]=> - unicode(7) "⌈" - [u"⌉"]=> - unicode(7) "⌉" - [u"⌊"]=> - unicode(8) "⌊" - [u"⌋"]=> - unicode(8) "⌋" - [u"〈"]=> - unicode(6) "⟨" - [u"〉"]=> - unicode(6) "⟩" - [u"â—Š"]=> - unicode(5) "◊" - [u"â™ "]=> - unicode(8) "♠" - [u"♣"]=> - unicode(7) "♣" - [u"♥"]=> - unicode(8) "♥" - [u"♦"]=> - unicode(7) "♦" - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -array(311) { - [u" "]=> - unicode(6) " " - [u"¡"]=> - unicode(7) "¡" - [u"¢"]=> - unicode(6) "¢" - [u"£"]=> - unicode(7) "£" - [u"¤"]=> - unicode(8) "¤" - [u"Â¥"]=> - unicode(5) "¥" - [u"¦"]=> - unicode(8) "¦" - [u"§"]=> - unicode(6) "§" - [u"¨"]=> - unicode(5) "¨" - [u"©"]=> - unicode(6) "©" - [u"ª"]=> - unicode(6) "ª" - [u"«"]=> - unicode(7) "«" - [u"¬"]=> - unicode(5) "¬" - [u"Â"]=> - unicode(5) "­" - [u"®"]=> - unicode(5) "®" - [u"¯"]=> - unicode(6) "¯" - [u"°"]=> - unicode(5) "°" - [u"±"]=> - unicode(8) "±" - [u"²"]=> - unicode(6) "²" - [u"³"]=> - unicode(6) "³" - [u"´"]=> - unicode(7) "´" - [u"µ"]=> - unicode(7) "µ" - [u"¶"]=> - unicode(6) "¶" - [u"·"]=> - unicode(8) "·" - [u"¸"]=> - unicode(7) "¸" - [u"¹"]=> - unicode(6) "¹" - [u"º"]=> - unicode(6) "º" - [u"»"]=> - unicode(7) "»" - [u"¼"]=> - unicode(8) "¼" - [u"½"]=> - unicode(8) "½" - [u"¾"]=> - unicode(8) "¾" - [u"¿"]=> - unicode(8) "¿" - [u"À"]=> - unicode(8) "À" - [u"Ã"]=> - unicode(8) "Á" - [u"Â"]=> - unicode(7) "Â" - [u"Ã"]=> - unicode(8) "Ã" - [u"Ä"]=> - unicode(6) "Ä" - [u"Ã…"]=> - unicode(7) "Å" - [u"Æ"]=> - unicode(7) "Æ" - [u"Ç"]=> - unicode(8) "Ç" - [u"È"]=> - unicode(8) "È" - [u"É"]=> - unicode(8) "É" - [u"Ê"]=> - unicode(7) "Ê" - [u"Ë"]=> - unicode(6) "Ë" - [u"ÃŒ"]=> - unicode(8) "Ì" - [u"Ã"]=> - unicode(8) "Í" - [u"ÃŽ"]=> - unicode(7) "Î" - [u"Ã"]=> - unicode(6) "Ï" - [u"Ã"]=> - unicode(5) "Ð" - [u"Ñ"]=> - unicode(8) "Ñ" - [u"Ã’"]=> - unicode(8) "Ò" - [u"Ó"]=> - unicode(8) "Ó" - [u"Ô"]=> - unicode(7) "Ô" - [u"Õ"]=> - unicode(8) "Õ" - [u"Ö"]=> - unicode(6) "Ö" - [u"×"]=> - unicode(7) "×" - [u"Ø"]=> - unicode(8) "Ø" - [u"Ù"]=> - unicode(8) "Ù" - [u"Ú"]=> - unicode(8) "Ú" - [u"Û"]=> - unicode(7) "Û" - [u"Ãœ"]=> - unicode(6) "Ü" - [u"Ã"]=> - unicode(8) "Ý" - [u"Þ"]=> - unicode(7) "Þ" - [u"ß"]=> - unicode(7) "ß" - [u"à "]=> - unicode(8) "à" - [u"á"]=> - unicode(8) "á" - [u"â"]=> - unicode(7) "â" - [u"ã"]=> - unicode(8) "ã" - [u"ä"]=> - unicode(6) "ä" - [u"Ã¥"]=> - unicode(7) "å" - [u"æ"]=> - unicode(7) "æ" - [u"ç"]=> - unicode(8) "ç" - [u"è"]=> - unicode(8) "è" - [u"é"]=> - unicode(8) "é" - [u"ê"]=> - unicode(7) "ê" - [u"ë"]=> - unicode(6) "ë" - [u"ì"]=> - unicode(8) "ì" - [u"Ã"]=> - unicode(8) "í" - [u"î"]=> - unicode(7) "î" - [u"ï"]=> - unicode(6) "ï" - [u"ð"]=> - unicode(5) "ð" - [u"ñ"]=> - unicode(8) "ñ" - [u"ò"]=> - unicode(8) "ò" - [u"ó"]=> - unicode(8) "ó" - [u"ô"]=> - unicode(7) "ô" - [u"õ"]=> - unicode(8) "õ" - [u"ö"]=> - unicode(6) "ö" - [u"÷"]=> - unicode(8) "÷" - [u"ø"]=> - unicode(8) "ø" - [u"ù"]=> - unicode(8) "ù" - [u"ú"]=> - unicode(8) "ú" - [u"û"]=> - unicode(7) "û" - [u"ü"]=> - unicode(6) "ü" - [u"ý"]=> - unicode(8) "ý" - [u"þ"]=> - unicode(7) "þ" - [u"ÿ"]=> - unicode(6) "ÿ" - [u"Å’"]=> - unicode(7) "Œ" - [u"Å“"]=> - unicode(7) "œ" - [u"Å "]=> - unicode(8) "Š" - [u"Å¡"]=> - unicode(8) "š" - [u"Ÿ"]=> - unicode(6) "Ÿ" - [u"Æ’"]=> - unicode(6) "ƒ" - [u"ˆ"]=> - unicode(6) "ˆ" - [u"Ëœ"]=> - unicode(7) "˜" - [u"Α"]=> - unicode(7) "Α" - [u"Î’"]=> - unicode(6) "Β" - [u"Γ"]=> - unicode(7) "Γ" - [u"Δ"]=> - unicode(7) "Δ" - [u"Ε"]=> - unicode(9) "Ε" - [u"Ζ"]=> - unicode(6) "Ζ" - [u"Η"]=> - unicode(5) "Η" - [u"Θ"]=> - unicode(7) "Θ" - [u"Ι"]=> - unicode(6) "Ι" - [u"Κ"]=> - unicode(7) "Κ" - [u"Λ"]=> - unicode(8) "Λ" - [u"Îœ"]=> - unicode(4) "Μ" - [u"Î"]=> - unicode(4) "Ν" - [u"Ξ"]=> - unicode(4) "Ξ" - [u"Ο"]=> - unicode(9) "Ο" - [u"Î "]=> - unicode(4) "Π" - [u"Ρ"]=> - unicode(5) "Ρ" - [u"Σ"]=> - unicode(7) "Σ" - [u"Τ"]=> - unicode(5) "Τ" - [u"Î¥"]=> - unicode(9) "Υ" - [u"Φ"]=> - unicode(5) "Φ" - [u"Χ"]=> - unicode(5) "Χ" - [u"Ψ"]=> - unicode(5) "Ψ" - [u"Ω"]=> - unicode(7) "Ω" - [u"α"]=> - unicode(7) "α" - [u"β"]=> - unicode(6) "β" - [u"γ"]=> - unicode(7) "γ" - [u"δ"]=> - unicode(7) "δ" - [u"ε"]=> - unicode(9) "ε" - [u"ζ"]=> - unicode(6) "ζ" - [u"η"]=> - unicode(5) "η" - [u"θ"]=> - unicode(7) "θ" - [u"ι"]=> - unicode(6) "ι" - [u"κ"]=> - unicode(7) "κ" - [u"λ"]=> - unicode(8) "λ" - [u"μ"]=> - unicode(4) "μ" - [u"ν"]=> - unicode(4) "ν" - [u"ξ"]=> - unicode(4) "ξ" - [u"ο"]=> - unicode(9) "ο" - [u"Ï€"]=> - unicode(4) "π" - [u"Ï"]=> - unicode(5) "ρ" - [u"Ï‚"]=> - unicode(8) "ς" - [u"σ"]=> - unicode(7) "σ" - [u"Ï„"]=> - unicode(5) "τ" - [u"Ï…"]=> - unicode(9) "υ" - [u"φ"]=> - unicode(5) "φ" - [u"χ"]=> - unicode(5) "χ" - [u"ψ"]=> - unicode(5) "ψ" - [u"ω"]=> - unicode(7) "ω" - [u"Ï‘"]=> - unicode(10) "ϑ" - [u"Ï’"]=> - unicode(7) "ϒ" - [u"Ï–"]=> - unicode(5) "ϖ" - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(6) " " - [u" "]=> - unicode(8) " " - [u"‌"]=> - unicode(6) "‌" - [u"â€"]=> - unicode(5) "‍" - [u"‎"]=> - unicode(5) "‎" - [u"â€"]=> - unicode(5) "‏" - [u"–"]=> - unicode(7) "–" - [u"—"]=> - unicode(7) "—" - [u"‘"]=> - unicode(7) "‘" - [u"’"]=> - unicode(7) "’" - [u"‚"]=> - unicode(7) "‚" - [u"“"]=> - unicode(7) "“" - [u"â€"]=> - unicode(7) "”" - [u"„"]=> - unicode(7) "„" - [u"†"]=> - unicode(8) "†" - [u"‡"]=> - unicode(8) "‡" - [u"•"]=> - unicode(6) "•" - [u"…"]=> - unicode(8) "…" - [u"‰"]=> - unicode(8) "‰" - [u"′"]=> - unicode(7) "′" - [u"″"]=> - unicode(7) "″" - [u"‹"]=> - unicode(8) "‹" - [u"›"]=> - unicode(8) "›" - [u"‾"]=> - unicode(7) "‾" - [u"â„"]=> - unicode(7) "⁄" - [u"€"]=> - unicode(6) "€" - [u"â„‘"]=> - unicode(7) "ℑ" - [u"℘"]=> - unicode(8) "℘" - [u"â„œ"]=> - unicode(6) "ℜ" - [u"â„¢"]=> - unicode(7) "™" - [u"ℵ"]=> - unicode(9) "ℵ" - [u"â†"]=> - unicode(6) "←" - [u"↑"]=> - unicode(6) "↑" - [u"→"]=> - unicode(6) "→" - [u"↓"]=> - unicode(6) "↓" - [u"↔"]=> - unicode(6) "↔" - [u"↵"]=> - unicode(7) "↵" - [u"â‡"]=> - unicode(6) "⇐" - [u"⇑"]=> - unicode(6) "⇑" - [u"⇒"]=> - unicode(6) "⇒" - [u"⇓"]=> - unicode(6) "⇓" - [u"⇔"]=> - unicode(6) "⇔" - [u"⇕"]=> - unicode(6) "⇕" - [u"⇚"]=> - unicode(7) "⇚" - [u"⇛"]=> - unicode(7) "⇛" - [u"â‡"]=> - unicode(7) "↝" - [u"∀"]=> - unicode(8) "∀" - [u"âˆ"]=> - unicode(6) "∁" - [u"∂"]=> - unicode(6) "∂" - [u"∃"]=> - unicode(7) "∃" - [u"∄"]=> - unicode(8) "∄" - [u"∅"]=> - unicode(7) "∅" - [u"∇"]=> - unicode(7) "∇" - [u"∈"]=> - unicode(6) "∈" - [u"∉"]=> - unicode(7) "∉" - [u"∊"]=> - unicode(7) "&epsis;" - [u"∋"]=> - unicode(4) "∋" - [u"∌"]=> - unicode(7) "∌" - [u"âˆ"]=> - unicode(7) "϶" - [u"âˆ"]=> - unicode(6) "∏" - [u"âˆ"]=> - unicode(8) "∐" - [u"∑"]=> - unicode(5) "∑" - [u"−"]=> - unicode(7) "−" - [u"∓"]=> - unicode(8) "∓" - [u"∔"]=> - unicode(8) "∔" - [u"∖"]=> - unicode(7) "∖" - [u"∗"]=> - unicode(8) "∗" - [u"∘"]=> - unicode(8) "∘" - [u"√"]=> - unicode(7) "√" - [u"âˆ"]=> - unicode(6) "∝" - [u"∞"]=> - unicode(7) "∞" - [u"∟"]=> - unicode(7) "&ang90;" - [u"∠"]=> - unicode(5) "∠" - [u"∡"]=> - unicode(8) "∡" - [u"∢"]=> - unicode(8) "∢" - [u"∣"]=> - unicode(5) "∣" - [u"∤"]=> - unicode(6) "∤" - [u"∥"]=> - unicode(5) "∥" - [u"∦"]=> - unicode(6) "∦" - [u"∧"]=> - unicode(5) "∧" - [u"∨"]=> - unicode(4) "∨" - [u"∩"]=> - unicode(5) "∩" - [u"∪"]=> - unicode(5) "∪" - [u"∫"]=> - unicode(5) "∫" - [u"∮"]=> - unicode(8) "∮" - [u"∴"]=> - unicode(8) "∴" - [u"∵"]=> - unicode(8) "∵" - [u"∼"]=> - unicode(5) "∼" - [u"∽"]=> - unicode(6) "∽" - [u"≀"]=> - unicode(8) "≀" - [u"â‰"]=> - unicode(6) "≁" - [u"≃"]=> - unicode(6) "≃" - [u"≄"]=> - unicode(7) "≄" - [u"≅"]=> - unicode(6) "≅" - [u"≇"]=> - unicode(7) "≇" - [u"≈"]=> - unicode(7) "≈" - [u"≉"]=> - unicode(5) "≉" - [u"≊"]=> - unicode(5) "≊" - [u"≌"]=> - unicode(7) "≌" - [u"â‰"]=> - unicode(7) "≈" - [u"≎"]=> - unicode(6) "≎" - [u"â‰"]=> - unicode(7) "≏" - [u"≠"]=> - unicode(4) "≠" - [u"≡"]=> - unicode(7) "≡" - [u"≤"]=> - unicode(4) "≤" - [u"≥"]=> - unicode(4) "≥" - [u"≦"]=> - unicode(4) "≦" - [u"≧"]=> - unicode(4) "≧" - [u"≨"]=> - unicode(5) "≨" - [u"≩"]=> - unicode(5) "≩" - [u"≪"]=> - unicode(4) "≪" - [u"≫"]=> - unicode(4) "≫" - [u"≬"]=> - unicode(7) "≬" - [u"≮"]=> - unicode(5) "≮" - [u"≯"]=> - unicode(5) "≯" - [u"≰"]=> - unicode(6) "⩽̸" - [u"≱"]=> - unicode(6) "⩾̸" - [u"≲"]=> - unicode(6) "≲" - [u"≳"]=> - unicode(6) "≳" - [u"≶"]=> - unicode(4) "≶" - [u"≷"]=> - unicode(4) "≷" - [u"≺"]=> - unicode(4) "≺" - [u"≻"]=> - unicode(4) "≻" - [u"≼"]=> - unicode(7) "&cupre;" - [u"≽"]=> - unicode(7) "&sscue;" - [u"≾"]=> - unicode(7) "≾" - [u"≿"]=> - unicode(7) "≿" - [u"⊀"]=> - unicode(5) "⊀" - [u"âŠ"]=> - unicode(5) "⊁" - [u"⊂"]=> - unicode(5) "⊂" - [u"⊃"]=> - unicode(5) "⊃" - [u"⊄"]=> - unicode(6) "⊄" - [u"⊅"]=> - unicode(6) "⊅" - [u"⊆"]=> - unicode(6) "⊆" - [u"⊇"]=> - unicode(6) "⊇" - [u"⊕"]=> - unicode(7) "⊕" - [u"⊗"]=> - unicode(8) "⊗" - [u"⊥"]=> - unicode(6) "⊥" - [u"â‹…"]=> - unicode(6) "⋅" - [u"⌈"]=> - unicode(7) "⌈" - [u"⌉"]=> - unicode(7) "⌉" - [u"⌊"]=> - unicode(8) "⌊" - [u"⌋"]=> - unicode(8) "⌋" - [u"〈"]=> - unicode(6) "⟨" - [u"〉"]=> - unicode(6) "⟩" - [u"â—Š"]=> - unicode(5) "◊" - [u"â™ "]=> - unicode(8) "♠" - [u"♣"]=> - unicode(7) "♣" - [u"♥"]=> - unicode(8) "♥" - [u"♦"]=> - unicode(7) "♦" - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 7 -- -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 8 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, Unicode string given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, Unicode string given in %s on line %d -NULL --- Iteration 9 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, Unicode string given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, Unicode string given in %s on line %d -NULL --- Iteration 10 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, object given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, object given in %s on line %d -NULL --- Iteration 11 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, Unicode string given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, Unicode string given in %s on line %d -NULL --- Iteration 12 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, Unicode string given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, Unicode string given in %s on line %d -NULL --- Iteration 13 -- -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 14 -- -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 15 -- - -Warning: get_html_translation_table() expects parameter 1 to be long, resource given in %s on line %d -NULL - -Warning: get_html_translation_table() expects parameter 1 to be long, resource given in %s on line %d -NULL --- Iteration 16 -- -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 17 -- -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -array(4) { - [u"""]=> - unicode(6) """ - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -Done diff --git a/ext/standard/tests/strings/get_html_translation_table_variation2-win32.phpt b/ext/standard/tests/strings/get_html_translation_table_variation2-win32.phpt deleted file mode 100644 index 5334d39b13..0000000000 --- a/ext/standard/tests/strings/get_html_translation_table_variation2-win32.phpt +++ /dev/null @@ -1,306 +0,0 @@ ---TEST-- -Test get_html_translation_table() function : usage variations - unexpected quote_style values ---SKIPIF-- -<?php -if( substr(PHP_OS, 0, 3) != "WIN"){ - die('skip only for Windows'); -} - -if( ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); - -if( !setlocale(LC_ALL, "English_United States.1252") ) { - die('skip failed to set locale settings to "English_United States.1252"'); -} - -?> ---FILE-- -<?php -/* Prototype : array get_html_translation_table ( [int $table [, int $quote_style]] ) - * Description: Returns the internal translation table used by htmlspecialchars and htmlentities - * Source code: ext/standard/html.c -*/ - -/* - * test get_html_translation_table() with unexpteced value for argument $quote_style -*/ - -//set locale -setlocale(LC_ALL, "English_United States.1252"); - -echo "*** Testing get_html_translation_table() : usage variations ***\n"; -// initialize all required variables -$table = HTML_SPECIALCHARS; - -// get an unset variable -$unset_var = 10; -unset($unset_var); - -// a resource var -$fp = fopen(__FILE__, "r"); - -// array with different values -$values = array ( - - // array values - array(), - array(0), - array(1), - array(1, 2), - array('color' => 'red', 'item' => 'pen'), - - // boolean values - true, - FALSE, - - // string values - "string", - 'string', - - // objects - new stdclass(), - - // empty string - "", - '', - - // null vlaues - NULL, - null, - - // resource var - $fp, - - // undefined variable - @$undefined_var, - - // unset variable - @$unset_var -); - - -// loop through each element of the array and check the working of get_html_translation_table() -// when $quote_style arugment is supplied with different values -echo "\n--- Testing get_html_translation_table() by supplying different values for 'quote_style' argument ---\n"; -$counter = 1; -for($index = 0; $index < count($values); $index ++) { - echo "-- Iteration $counter --\n"; - $quote_style = $values [$index]; - - var_dump( get_html_translation_table($table, $quote_style) ); - - $counter ++; -} - -echo "Done\n"; -?> ---EXPECTF-- -*** Testing get_html_translation_table() : usage variations *** - ---- Testing get_html_translation_table() by supplying different values for 'quote_style' argument --- --- Iteration 1 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 2 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 3 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 4 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 5 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 6 -- -array(4) { - ["'"]=> - string(5) "'" - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 7 -- -array(3) { - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 8 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, string given in %s on line %d -NULL --- Iteration 9 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, string given in %s on line %d -NULL --- Iteration 10 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, object given in %s on line %d -NULL --- Iteration 11 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, string given in %s on line %d -NULL --- Iteration 12 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, string given in %s on line %d -NULL --- Iteration 13 -- -array(3) { - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 14 -- -array(3) { - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 15 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, resource given in %s on line %d -NULL --- Iteration 16 -- -array(3) { - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 17 -- -array(3) { - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -Done ---UEXPECTF-- -*** Testing get_html_translation_table() : usage variations *** - ---- Testing get_html_translation_table() by supplying different values for 'quote_style' argument --- --- Iteration 1 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 2 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 3 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 4 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 5 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 6 -- -array(4) { - [u"'"]=> - unicode(5) "'" - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 7 -- -array(3) { - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 8 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, Unicode string given in %s on line %d -NULL --- Iteration 9 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, Unicode string given in %s on line %d -NULL --- Iteration 10 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, object given in %s on line %d -NULL --- Iteration 11 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, Unicode string given in %s on line %d -NULL --- Iteration 12 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, Unicode string given in %s on line %d -NULL --- Iteration 13 -- -array(3) { - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 14 -- -array(3) { - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 15 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, resource given in %s on line %d -NULL --- Iteration 16 -- -array(3) { - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 17 -- -array(3) { - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -Done diff --git a/ext/standard/tests/strings/get_html_translation_table_variation2.phpt b/ext/standard/tests/strings/get_html_translation_table_variation2.phpt deleted file mode 100644 index 47b8e6fc83..0000000000 --- a/ext/standard/tests/strings/get_html_translation_table_variation2.phpt +++ /dev/null @@ -1,305 +0,0 @@ ---TEST-- -Test get_html_translation_table() function : usage variations - unexpected quote_style values ---SKIPIF-- -<?php -if( substr(PHP_OS, 0, 3) == "WIN"){ - die('skip Not for Windows'); -} - -if( ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); - -if( !setlocale(LC_ALL, "en_US.UTF-8") ) { - die('skip failed to set locale settings to "en-US.UTF-8"'); -} -?> ---FILE-- -<?php -/* Prototype : array get_html_translation_table ( [int $table [, int $quote_style]] ) - * Description: Returns the internal translation table used by htmlspecialchars and htmlentities - * Source code: ext/standard/html.c -*/ - -/* - * test get_html_translation_table() with unexpteced value for argument $quote_style -*/ - -//set locale to en_US.UTF-8 -setlocale(LC_ALL, "en_US.UTF-8"); - -echo "*** Testing get_html_translation_table() : usage variations ***\n"; -// initialize all required variables -$table = HTML_SPECIALCHARS; - -// get an unset variable -$unset_var = 10; -unset($unset_var); - -// a resource var -$fp = fopen(__FILE__, "r"); - -// array with different values -$values = array ( - - // array values - array(), - array(0), - array(1), - array(1, 2), - array('color' => 'red', 'item' => 'pen'), - - // boolean values - true, - FALSE, - - // string values - "string", - 'string', - - // objects - new stdclass(), - - // empty string - "", - '', - - // null vlaues - NULL, - null, - - // resource var - $fp, - - // undefined variable - @$undefined_var, - - // unset variable - @$unset_var -); - - -// loop through each element of the array and check the working of get_html_translation_table() -// when $quote_style arugment is supplied with different values -echo "\n--- Testing get_html_translation_table() by supplying different values for 'quote_style' argument ---\n"; -$counter = 1; -for($index = 0; $index < count($values); $index ++) { - echo "-- Iteration $counter --\n"; - $quote_style = $values [$index]; - - var_dump( get_html_translation_table($table, $quote_style) ); - - $counter ++; -} - -echo "Done\n"; -?> ---EXPECTF-- -*** Testing get_html_translation_table() : usage variations *** - ---- Testing get_html_translation_table() by supplying different values for 'quote_style' argument --- --- Iteration 1 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 2 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 3 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 4 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 5 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 6 -- -array(4) { - ["'"]=> - string(5) "'" - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 7 -- -array(3) { - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 8 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, string given in %s on line %d -NULL --- Iteration 9 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, string given in %s on line %d -NULL --- Iteration 10 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, object given in %s on line %d -NULL --- Iteration 11 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, string given in %s on line %d -NULL --- Iteration 12 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, string given in %s on line %d -NULL --- Iteration 13 -- -array(3) { - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 14 -- -array(3) { - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 15 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, resource given in %s on line %d -NULL --- Iteration 16 -- -array(3) { - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} --- Iteration 17 -- -array(3) { - ["<"]=> - string(4) "<" - [">"]=> - string(4) ">" - ["&"]=> - string(5) "&" -} -Done ---UEXPECTF-- -*** Testing get_html_translation_table() : usage variations *** - ---- Testing get_html_translation_table() by supplying different values for 'quote_style' argument --- --- Iteration 1 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 2 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 3 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 4 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 5 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 6 -- -array(4) { - [u"'"]=> - unicode(5) "'" - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 7 -- -array(3) { - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 8 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, Unicode string given in %s on line %d -NULL --- Iteration 9 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, Unicode string given in %s on line %d -NULL --- Iteration 10 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, object given in %s on line %d -NULL --- Iteration 11 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, Unicode string given in %s on line %d -NULL --- Iteration 12 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, Unicode string given in %s on line %d -NULL --- Iteration 13 -- -array(3) { - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 14 -- -array(3) { - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 15 -- - -Warning: get_html_translation_table() expects parameter 2 to be long, resource given in %s on line %d -NULL --- Iteration 16 -- -array(3) { - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} --- Iteration 17 -- -array(3) { - [u"<"]=> - unicode(4) "<" - [u">"]=> - unicode(4) ">" - [u"&"]=> - unicode(5) "&" -} -Done diff --git a/ext/standard/tests/strings/get_meta_tags.phpt b/ext/standard/tests/strings/get_meta_tags.phpt index 7d6fe27ae1..46e2f66bc5 100644 --- a/ext/standard/tests/strings/get_meta_tags.phpt +++ b/ext/standard/tests/strings/get_meta_tags.phpt @@ -55,45 +55,7 @@ foreach ($array as $html) { echo "Done\n"; ?> ---EXPECTF-- -array(4) { - ["author"]=> - string(4) "name" - ["keywords"]=> - string(17) "php documentation" - ["description"]=> - string(12) "a php manual" - ["geo_position"]=> - string(12) "49.33;-86.59" -} -array(4) { - ["author"]=> - string(4) "name" - ["keywords"]=> - string(17) "php documentation" - ["description"]=> - string(12) "a php manual" - ["geo_position"]=> - string(12) "49.33;-86.59" -} -array(1) { - ["keywords"]=> - string(17) "php documentation" -} -array(1) { - ["keywords"]=> - string(17) "php documentation" -} -array(0) { -} -array(0) { -} -array(0) { -} -array(0) { -} -Done ---UEXPECTF-- +--EXPECT-- array(4) { ["author"]=> unicode(4) "name" diff --git a/ext/standard/tests/strings/highlight_file.phpt b/ext/standard/tests/strings/highlight_file.phpt index 937354924e..e4da8b51a3 100644 --- a/ext/standard/tests/strings/highlight_file.phpt +++ b/ext/standard/tests/strings/highlight_file.phpt @@ -36,7 +36,7 @@ var_dump(highlight_file($filename)); @unlink($filename); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: highlight_file() expects at least 1 parameter, 0 given in %s on line %d bool(false) diff --git a/ext/standard/tests/strings/htmlentities-utf.phpt b/ext/standard/tests/strings/htmlentities-utf.phpt index 6b83afc778..456508c8f7 100755 --- a/ext/standard/tests/strings/htmlentities-utf.phpt +++ b/ext/standard/tests/strings/htmlentities-utf.phpt @@ -31,4 +31,4 @@ string(0) "" string(0) "" string(0) "" string(8) "2667743b" -string(8) "2667743b"
\ No newline at end of file +string(8) "2667743b" diff --git a/ext/standard/tests/strings/htmlentities.phpt b/ext/standard/tests/strings/htmlentities.phpt index bce9ac9bc4..bbfaa0d469 100644 --- a/ext/standard/tests/strings/htmlentities.phpt +++ b/ext/standard/tests/strings/htmlentities.phpt @@ -14,12 +14,7 @@ echo $ent_encoded; echo html_entity_decode($sc_encoded); echo html_entity_decode($ent_encoded); ?> ---EXPECT-- -<>"&åÄ -<>"&åÄ -<>"&åÄ -<>"&åÄ ---UEXPECTF-- +--EXPECTF-- Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d <>"&åÄ <>"&åÄ diff --git a/ext/standard/tests/strings/htmlentities02.phpt b/ext/standard/tests/strings/htmlentities02.phpt index 158db112f5..935bf51719 100644 --- a/ext/standard/tests/strings/htmlentities02.phpt +++ b/ext/standard/tests/strings/htmlentities02.phpt @@ -17,8 +17,6 @@ mbstring.internal_encoding=none setlocale(LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15", 'fr_FR@euro'); var_dump(htmlentities("\xbc\xbd\xbe", ENT_QUOTES, '')); ?> ---EXPECT-- -string(20) "ŒœŸ" ---UEXPECTF-- +--EXPECTF-- Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d unicode(24) "¼½¾" diff --git a/ext/standard/tests/strings/htmlentities03.phpt b/ext/standard/tests/strings/htmlentities03.phpt index 9cee26a468..49542a5817 100644 --- a/ext/standard/tests/strings/htmlentities03.phpt +++ b/ext/standard/tests/strings/htmlentities03.phpt @@ -16,8 +16,6 @@ mbstring.internal_encoding=none setlocale( LC_CTYPE, "de_DE.ISO-8859-1", "de_DE.ISO8859-1"); var_dump(htmlentities("\xe4\xf6\xfc", ENT_QUOTES, '')); ?> ---EXPECT-- -string(18) "äöü" ---UEXPECTF-- +--EXPECTF-- Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d unicode(18) "äöü" diff --git a/ext/standard/tests/strings/htmlentities04.phpt b/ext/standard/tests/strings/htmlentities04.phpt index a2723f87bd..726bb9f57f 100644 --- a/ext/standard/tests/strings/htmlentities04.phpt +++ b/ext/standard/tests/strings/htmlentities04.phpt @@ -17,8 +17,6 @@ mbstring.internal_encoding=none setlocale( LC_CTYPE, "ja_JP.EUC-JP", "ja_JP.eucJP" ); var_dump(htmlentities("\xa1\xa2\xa1\xa3\xa1\xa4", ENT_QUOTES, '')); ?> ---EXPECT-- -string(6) "¡¢¡£¡¤" ---UEXPECTF-- +--EXPECTF-- Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d unicode(42) "¡¢¡£¡¤" diff --git a/ext/standard/tests/strings/htmlentities10.phpt b/ext/standard/tests/strings/htmlentities10.phpt index 126048a907..804c18d094 100644 --- a/ext/standard/tests/strings/htmlentities10.phpt +++ b/ext/standard/tests/strings/htmlentities10.phpt @@ -12,9 +12,5 @@ default_charset=cp1252 ?> --EXPECT-- cp1252 -string(28) "‚†™Ÿ" -string(32) "€¢£¤¥" ---UEXPECTF-- -cp1252 unicode(4) "‚†™Ÿ" unicode(27) "€¢£¤¥" diff --git a/ext/standard/tests/strings/htmlentities15.phpt b/ext/standard/tests/strings/htmlentities15.phpt index 3d7153ecbb..83e0d5df4f 100644 --- a/ext/standard/tests/strings/htmlentities15.phpt +++ b/ext/standard/tests/strings/htmlentities15.phpt @@ -20,10 +20,7 @@ setlocale(LC_CTYPE, "ru_RU.koi8r", "ru_RU.KOI8-R"); $str = "ÒÏÓËÏÛÎÙÊ"; var_dump($str, htmlentities($str, ENT_QUOTES, '')); ?> ---EXPECT-- -string(9) "ÒÏÓËÏÛÎÙÊ" -string(63) "роскошный" ---UEXPECTF-- +--EXPECTF-- Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d unicode(9) "ÒÏÓËÏÛÎÙÊ" unicode(9) "ÒÏÓËÏÛÎÙÊ" diff --git a/ext/standard/tests/strings/htmlspecialchars_decode_basic.phpt b/ext/standard/tests/strings/htmlspecialchars_decode_basic.phpt index 4acff8b61f..987e8d2a42 100644 --- a/ext/standard/tests/strings/htmlspecialchars_decode_basic.phpt +++ b/ext/standard/tests/strings/htmlspecialchars_decode_basic.phpt @@ -29,18 +29,7 @@ var_dump( htmlspecialchars_decode($double_quote_string, ENT_QUOTES) ); echo "Done"; ?> ---EXPECTF-- -*** Testing htmlspecialchars_decode() : basic functionality *** -string(92) "Roy's height > Sam's height. 13 < 25. 1111 & 0000 = 0000. " double quoted string "" -string(92) "Roy's height > Sam's height. 13 < 25. 1111 & 0000 = 0000. " double quoted string "" -string(92) "Roy's height > Sam's height. 13 < 25. 1111 & 0000 = 0000. " double quoted string "" -string(92) "Roy's height > Sam's height. 13 < 25. 1111 & 0000 = 0000. " double quoted string "" -string(102) "Roy's height > Sam's height. 13 < 25. 1111 & 0000 = 0000. " double quoted string "" -string(102) "Roy's height > Sam's height. 13 < 25. 1111 & 0000 = 0000. " double quoted string "" -string(82) "Roy's height > Sam's height. 13 < 25. 1111 & 0000 = 0000. " double quoted string "" -string(82) "Roy's height > Sam's height. 13 < 25. 1111 & 0000 = 0000. " double quoted string "" -Done ---UEXPECTF-- +--EXPECT-- *** Testing htmlspecialchars_decode() : basic functionality *** unicode(92) "Roy's height > Sam's height. 13 < 25. 1111 & 0000 = 0000. " double quoted string "" unicode(92) "Roy's height > Sam's height. 13 < 25. 1111 & 0000 = 0000. " double quoted string "" diff --git a/ext/standard/tests/strings/htmlspecialchars_decode_variation1.phpt b/ext/standard/tests/strings/htmlspecialchars_decode_variation1.phpt index 6773340853..137af5243f 100644 --- a/ext/standard/tests/strings/htmlspecialchars_decode_variation1.phpt +++ b/ext/standard/tests/strings/htmlspecialchars_decode_variation1.phpt @@ -94,73 +94,6 @@ echo "Done"; --EXPECTF-- *** Testing htmlspecialchars_decode() : usage variations *** -- Iterator 1 -- -string(1) "0" --- Iterator 2 -- -string(1) "1" --- Iterator 3 -- -string(5) "12345" --- Iterator 4 -- -string(5) "-2345" --- Iterator 5 -- -string(4) "10.5" --- Iterator 6 -- -string(5) "-10.5" --- Iterator 7 -- -string(12) "105000000000" --- Iterator 8 -- -string(7) "1.06E-9" --- Iterator 9 -- -string(3) "0.5" --- Iterator 10 -- - -Warning: htmlspecialchars_decode() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iterator 11 -- - -Warning: htmlspecialchars_decode() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iterator 12 -- - -Warning: htmlspecialchars_decode() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iterator 13 -- - -Warning: htmlspecialchars_decode() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iterator 14 -- - -Warning: htmlspecialchars_decode() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iterator 15 -- -string(0) "" --- Iterator 16 -- -string(0) "" --- Iterator 17 -- -string(1) "1" --- Iterator 18 -- -string(0) "" --- Iterator 19 -- -string(1) "1" --- Iterator 20 -- -string(0) "" --- Iterator 21 -- -string(0) "" --- Iterator 22 -- -string(0) "" --- Iterator 23 -- -string(12) "ClassAObject" --- Iterator 24 -- -string(0) "" --- Iterator 25 -- -string(0) "" --- Iterator 26 -- - -Warning: htmlspecialchars_decode() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL -Done ---UEXPECTF-- -*** Testing htmlspecialchars_decode() : usage variations *** --- Iterator 1 -- unicode(1) "0" -- Iterator 2 -- unicode(1) "1" diff --git a/ext/standard/tests/strings/htmlspecialchars_decode_variation2.phpt b/ext/standard/tests/strings/htmlspecialchars_decode_variation2.phpt index dd731faba2..25a2cbf073 100644 --- a/ext/standard/tests/strings/htmlspecialchars_decode_variation2.phpt +++ b/ext/standard/tests/strings/htmlspecialchars_decode_variation2.phpt @@ -96,103 +96,6 @@ echo "Done"; *** Testing htmlspecialchars_decode() : usage variations *** -- Iteration 1 -- -string(104) "<html>Roy's height > Sam's height. 13 < 15. 1111 & 0000 = 0000. " double quote string "</html>" - --- Iteration 2 -- -string(104) "<html>Roy's height > Sam's height. 13 < 15. 1111 & 0000 = 0000. " double quote string "</html>" - --- Iteration 3 -- -string(94) "<html>Roy's height > Sam's height. 13 < 15. 1111 & 0000 = 0000. " double quote string "</html>" - --- Iteration 4 -- -string(114) "<html>Roy's height > Sam's height. 13 < 15. 1111 & 0000 = 0000. " double quote string "</html>" - --- Iteration 5 -- -string(114) "<html>Roy's height > Sam's height. 13 < 15. 1111 & 0000 = 0000. " double quote string "</html>" - --- Iteration 6 -- - -Warning: htmlspecialchars_decode() expects parameter 2 to be long, array given in %shtmlspecialchars_decode_variation2.php on line %d -NULL - --- Iteration 7 -- - -Warning: htmlspecialchars_decode() expects parameter 2 to be long, array given in %shtmlspecialchars_decode_variation2.php on line %d -NULL - --- Iteration 8 -- - -Warning: htmlspecialchars_decode() expects parameter 2 to be long, array given in %shtmlspecialchars_decode_variation2.php on line %d -NULL - --- Iteration 9 -- - -Warning: htmlspecialchars_decode() expects parameter 2 to be long, array given in %shtmlspecialchars_decode_variation2.php on line %d -NULL - --- Iteration 10 -- - -Warning: htmlspecialchars_decode() expects parameter 2 to be long, array given in %shtmlspecialchars_decode_variation2.php on line %d -NULL - --- Iteration 11 -- -string(114) "<html>Roy's height > Sam's height. 13 < 15. 1111 & 0000 = 0000. " double quote string "</html>" - --- Iteration 12 -- -string(114) "<html>Roy's height > Sam's height. 13 < 15. 1111 & 0000 = 0000. " double quote string "</html>" - --- Iteration 13 -- -string(104) "<html>Roy's height > Sam's height. 13 < 15. 1111 & 0000 = 0000. " double quote string "</html>" - --- Iteration 14 -- -string(114) "<html>Roy's height > Sam's height. 13 < 15. 1111 & 0000 = 0000. " double quote string "</html>" - --- Iteration 15 -- -string(104) "<html>Roy's height > Sam's height. 13 < 15. 1111 & 0000 = 0000. " double quote string "</html>" - --- Iteration 16 -- -string(114) "<html>Roy's height > Sam's height. 13 < 15. 1111 & 0000 = 0000. " double quote string "</html>" - --- Iteration 17 -- - -Warning: htmlspecialchars_decode() expects parameter 2 to be long, string given in %shtmlspecialchars_decode_variation2.php on line %d -NULL - --- Iteration 18 -- - -Warning: htmlspecialchars_decode() expects parameter 2 to be long, string given in %shtmlspecialchars_decode_variation2.php on line %d -NULL - --- Iteration 19 -- - -Warning: htmlspecialchars_decode() expects parameter 2 to be long, string given in %shtmlspecialchars_decode_variation2.php on line %d -NULL - --- Iteration 20 -- - -Warning: htmlspecialchars_decode() expects parameter 2 to be long, string given in %shtmlspecialchars_decode_variation2.php on line %d -NULL - --- Iteration 21 -- - -Warning: htmlspecialchars_decode() expects parameter 2 to be long, object given in %shtmlspecialchars_decode_variation2.php on line %d -NULL - --- Iteration 22 -- -string(114) "<html>Roy's height > Sam's height. 13 < 15. 1111 & 0000 = 0000. " double quote string "</html>" - --- Iteration 23 -- -string(114) "<html>Roy's height > Sam's height. 13 < 15. 1111 & 0000 = 0000. " double quote string "</html>" - --- Iteration 24 -- - -Warning: htmlspecialchars_decode() expects parameter 2 to be long, resource given in %shtmlspecialchars_decode_variation2.php on line %d -NULL -Done ---UEXPECTF-- -*** Testing htmlspecialchars_decode() : usage variations *** - --- Iteration 1 -- unicode(104) "<html>Roy's height > Sam's height. 13 < 15. 1111 & 0000 = 0000. " double quote string "</html>" -- Iteration 2 -- diff --git a/ext/standard/tests/strings/htmlspecialchars_decode_variation3.phpt b/ext/standard/tests/strings/htmlspecialchars_decode_variation3.phpt index cab643a7a9..609f07b66d 100644 --- a/ext/standard/tests/strings/htmlspecialchars_decode_variation3.phpt +++ b/ext/standard/tests/strings/htmlspecialchars_decode_variation3.phpt @@ -71,34 +71,7 @@ for($index =0; $index < count($res_heredoc_strings); $index ++) { echo "Done\n"; ?> ---EXPECTF-- -*** Testing htmlspecialchars_decode() : usage variations *** --- Iteration 1 -- -string(0) "" --- Iteration 2 -- -string(0) "" --- Iteration 3 -- -string(103) "<html>Roy's height > Sam's height -13 < 25 -1111 & 0000 = 0000 -"This is a double quoted string"" --- Iteration 4 -- -string(130) "<html>Roy's height - > Sam 's height -1111 & 0000 = 0000 -" heredoc -double quoted string. withdifferentwhitespaces"" --- Iteration 5 -- -string(62) "<html>11 < 12. 123 string 4567 -"string" 1111 & 0000 = 0000 -;" --- Iteration 6 -- -string(153) "<html>< This's a string with quotes: -"strings in double quote" & -'strings in single quote' " -this\line is 'single quoted' /with\slashes </html>" -Done ---UEXPECTF-- +--EXPECT-- *** Testing htmlspecialchars_decode() : usage variations *** -- Iteration 1 -- unicode(0) "" diff --git a/ext/standard/tests/strings/htmlspecialchars_decode_variation4.phpt b/ext/standard/tests/strings/htmlspecialchars_decode_variation4.phpt index 43f91bfd6c..f4bb6aa0f6 100644 --- a/ext/standard/tests/strings/htmlspecialchars_decode_variation4.phpt +++ b/ext/standard/tests/strings/htmlspecialchars_decode_variation4.phpt @@ -35,35 +35,7 @@ foreach($values as $value) { echo "Done"; ?> ---EXPECTF-- -*** Testing htmlspecialchars_decode() : usage variations *** --- Iteration 1 -- -string(90) "Roy's height > Sam's \$height... 1111 ≈ 0000 = 0000... " double quote string "" -string(90) "Roy's height > Sam's \$height... 1111 ≈ 0000 = 0000... " double quote string "" -string(100) "Roy's height > Sam's \$height... 1111 ≈ 0000 = 0000... " double quote string "" -string(85) "Roy's height > Sam's \$height... 1111 ≈ 0000 = 0000... " double quote string "" --- Iteration 2 -- -string(88) "Roy's height > Sam's height... \t\t 13 < 15...\n\r " double quote\f\v string "" -string(88) "Roy's height > Sam's height... \t\t 13 < 15...\n\r " double quote\f\v string "" -string(98) "Roy's height > Sam's height... \t\t 13 < 15...\n\r " double quote\f\v string "" -string(78) "Roy's height > Sam's height... \t\t 13 < 15...\n\r " double quote\f\v string "" --- Iteration 3 -- -string(48) "\nRoy's height >\t; Sam's\v height\f" -string(48) "\nRoy's height >\t; Sam's\v height\f" -string(48) "\nRoy's height >\t; Sam's\v height\f" -string(38) "\nRoy's height >\t; Sam's\v height\f" --- Iteration 4 -- -string(48) "\r\tRoy's height >\r; Sam\t's height" -string(48) "\r\tRoy's height >\r; Sam\t's height" -string(48) "\r\tRoy's height >\r; Sam\t's height" -string(38) "\r\tRoy's height >\r; Sam\t's height" --- Iteration 5 -- -string(34) "\n 1\t3 &\tgt; 11 but 11 &\tlt; 12" -string(34) "\n 1\t3 &\tgt; 11 but 11 &\tlt; 12" -string(34) "\n 1\t3 &\tgt; 11 but 11 &\tlt; 12" -string(34) "\n 1\t3 &\tgt; 11 but 11 &\tlt; 12" -Done ---UEXPECTF-- +--EXPECT-- *** Testing htmlspecialchars_decode() : usage variations *** -- Iteration 1 -- unicode(90) "Roy's height > Sam's \$height... 1111 ≈ 0000 = 0000... " double quote string "" diff --git a/ext/standard/tests/strings/htmlspecialchars_decode_variation5.phpt b/ext/standard/tests/strings/htmlspecialchars_decode_variation5.phpt index 0f14a92503..60195b303c 100644 --- a/ext/standard/tests/strings/htmlspecialchars_decode_variation5.phpt +++ b/ext/standard/tests/strings/htmlspecialchars_decode_variation5.phpt @@ -34,59 +34,7 @@ foreach($strings as $value) { echo "Done"; ?> ---EXPECTF-- -*** Testing htmlspecialchars_decode() : usage variations *** --- Iteration 1 -- -string(89) "Roy's height > Sam's $height... 1111 ≈ 0000 = 0000... " double quote string "" -string(89) "Roy's height > Sam's $height... 1111 ≈ 0000 = 0000... " double quote string "" -string(99) "Roy's height > Sam's $height... 1111 ≈ 0000 = 0000... " double quote string "" -string(84) "Roy's height > Sam's $height... 1111 ≈ 0000 = 0000... " double quote string "" --- Iteration 2 -- -string(82) "Roy's height > Sam's height... 13 < 15... - - " double quote string "" -string(82) "Roy's height > Sam's height... 13 < 15... - - " double quote string "" -string(92) "Roy's height > Sam's height... 13 < 15... - - " double quote string "" -string(72) "Roy's height > Sam's height... 13 < 15... - - " double quote string "" --- Iteration 3 -- -string(44) " -Roy's height > ; Sam's height" -string(44) " -Roy's height > ; Sam's height" -string(44) " -Roy's height > ; Sam's height" -string(34) " -Roy's height > ; Sam's height" --- Iteration 4 -- -string(44) " - Roy's height > -; Sam 's height" -string(44) " - Roy's height > -; Sam 's height" -string(44) " - Roy's height > -; Sam 's height" -string(34) " - Roy's height > -; Sam 's height" --- Iteration 5 -- -string(30) " - 1 3 & gt; 11 but 11 & lt; 12" -string(30) " - 1 3 & gt; 11 but 11 & lt; 12" -string(30) " - 1 3 & gt; 11 but 11 & lt; 12" -string(30) " - 1 3 & gt; 11 but 11 & lt; 12" -Done ---UEXPECTF-- +--EXPECT-- *** Testing htmlspecialchars_decode() : usage variations *** -- Iteration 1 -- unicode(89) "Roy's height > Sam's $height... 1111 ≈ 0000 = 0000... " double quote string "" @@ -137,4 +85,4 @@ unicode(30) " 1 3 & gt; 11 but 11 & lt; 12" unicode(30) " 1 3 & gt; 11 but 11 & lt; 12" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/htmlspecialchars_decode_variation6.phpt b/ext/standard/tests/strings/htmlspecialchars_decode_variation6.phpt Binary files differindex 454c61f63a..fcaa6ea6f4 100644 --- a/ext/standard/tests/strings/htmlspecialchars_decode_variation6.phpt +++ b/ext/standard/tests/strings/htmlspecialchars_decode_variation6.phpt diff --git a/ext/standard/tests/strings/http_build_query.phpt b/ext/standard/tests/strings/http_build_query.phpt index 8b33134fdf..0caf0dcb30 100644 --- a/ext/standard/tests/strings/http_build_query.phpt +++ b/ext/standard/tests/strings/http_build_query.phpt @@ -10,10 +10,6 @@ var_dump(http_build_query($array, 'foo', ';')); ?> --EXPECT-- -string(35) "foo=bar&baz=1&test=a+%27+%22+&0=abc" -string(38) "foo=bar&baz=1&test=a+%27+%22+&foo0=abc" -string(38) "foo=bar;baz=1;test=a+%27+%22+;foo0=abc" ---UEXPECT-- unicode(35) "foo=bar&baz=1&test=a+%27+%22+&0=abc" unicode(38) "foo=bar&baz=1&test=a+%27+%22+&foo0=abc" unicode(38) "foo=bar;baz=1;test=a+%27+%22+;foo0=abc" diff --git a/ext/standard/tests/strings/implode.phpt b/ext/standard/tests/strings/implode.phpt index 36be0f395c..277b90db1c 100644 --- a/ext/standard/tests/strings/implode.phpt +++ b/ext/standard/tests/strings/implode.phpt @@ -14,7 +14,7 @@ echo implode(':', array('foo', 'bar', 'baz'))."\n"; echo implode(':', array('foo', array('bar', 'baz'), 'burp'))."\n"; echo $php_errormsg."\n"; ?> ---EXPECTF-- +--EXPECT-- foobarbaz diff --git a/ext/standard/tests/strings/implode1.phpt b/ext/standard/tests/strings/implode1.phpt Binary files differindex f8e2d2021f..8db45df208 100644 --- a/ext/standard/tests/strings/implode1.phpt +++ b/ext/standard/tests/strings/implode1.phpt diff --git a/ext/standard/tests/strings/join_basic.phpt b/ext/standard/tests/strings/join_basic.phpt index c823470032..161a07664e 100644 --- a/ext/standard/tests/strings/join_basic.phpt +++ b/ext/standard/tests/strings/join_basic.phpt @@ -34,14 +34,7 @@ var_dump( join($glue, $pieces) ); echo "Done\n"; ?> ---EXPECTF-- -*** Testing join() : basic functionality *** -string(7) "1,2,3,4" -string(30) "Red, Green, Blue, Black, White" -string(8) "10:20:40" -string(21) "Friday/September/2007" -Done ---UEXPECTF-- +--EXPECT-- *** Testing join() : basic functionality *** unicode(7) "1,2,3,4" unicode(30) "Red, Green, Blue, Black, White" diff --git a/ext/standard/tests/strings/join_error.phpt b/ext/standard/tests/strings/join_error.phpt index 943b36ac21..aa6bdc2306 100644 --- a/ext/standard/tests/strings/join_error.phpt +++ b/ext/standard/tests/strings/join_error.phpt @@ -48,21 +48,3 @@ NULL Warning: join(): Argument must be an array in %s on line %d NULL Done ---UEXPECTF-- -*** Testing join() : error conditions *** - --- Testing join() function with Zero arguments -- - -Warning: Wrong parameter count for join() in %s on line %d -NULL - --- Testing join() function with more than expected no. of arguments -- - -Warning: Wrong parameter count for join() in %s on line %d -NULL - --- Testing join() with less than expected no. of arguments -- - -Warning: join(): Argument must be an array in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/join_variation1.phpt b/ext/standard/tests/strings/join_variation1.phpt index 853b3ca1c1..b7dd9bc03e 100644 --- a/ext/standard/tests/strings/join_variation1.phpt +++ b/ext/standard/tests/strings/join_variation1.phpt @@ -103,73 +103,6 @@ echo "Done\n"; --- Testing join() by supplying different values for 'glue' argument --- -- Iteration 1 -- -string(17) "element10element2" --- Iteration 2 -- -string(17) "element11element2" --- Iteration 3 -- -string(21) "element112345element2" --- Iteration 4 -- -string(21) "element1-2345element2" --- Iteration 5 -- -string(20) "element110.5element2" --- Iteration 6 -- -string(21) "element1-10.5element2" --- Iteration 7 -- -string(28) "element1101234567000element2" --- Iteration 8 -- -string(29) "element11.07654321E-9element2" --- Iteration 9 -- -string(19) "element10.5element2" --- Iteration 10 -- - -Notice: Array to string conversion in %s on line %d -string(0) "" --- Iteration 11 -- - -Notice: Array to string conversion in %s on line %d -string(1) "0" --- Iteration 12 -- - -Notice: Array to string conversion in %s on line %d -string(1) "1" --- Iteration 13 -- - -Notice: Array to string conversion in %s on line %d -string(7) "1Array2" --- Iteration 14 -- - -Notice: Array to string conversion in %s on line %d -string(11) "redArraypen" --- Iteration 15 -- -string(17) "element11element2" --- Iteration 16 -- -string(16) "element1element2" --- Iteration 17 -- -string(17) "element11element2" --- Iteration 18 -- -string(16) "element1element2" --- Iteration 19 -- -string(26) "element1testObjectelement2" --- Iteration 20 -- -string(16) "element1element2" --- Iteration 21 -- -string(16) "element1element2" --- Iteration 22 -- -string(16) "element1element2" --- Iteration 23 -- -string(16) "element1element2" --- Iteration 24 -- -string(%d) "element1Resource id #%delement2" --- Iteration 25 -- -string(16) "element1element2" --- Iteration 26 -- -string(16) "element1element2" -Done ---UEXPECTF-- -*** Testing join() : usage variations *** - ---- Testing join() by supplying different values for 'glue' argument --- --- Iteration 1 -- unicode(17) "element10element2" -- Iteration 2 -- unicode(17) "element11element2" diff --git a/ext/standard/tests/strings/join_variation2.phpt b/ext/standard/tests/strings/join_variation2.phpt index 1018ef849a..6634cd1aca 100644 --- a/ext/standard/tests/strings/join_variation2.phpt +++ b/ext/standard/tests/strings/join_variation2.phpt @@ -193,100 +193,3 @@ NULL Warning: join(): Invalid arguments passed in %s on line %d NULL Done ---UEXPECTF-- -*** Testing join() : usage variations *** - ---- Testing join() by supplying different values for 'pieces' argument --- --- Iteration 1 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 2 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 3 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 4 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 5 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 6 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 7 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 8 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 9 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 10 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 11 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 12 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 13 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 14 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 15 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 16 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 17 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 18 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 19 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 20 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 21 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 22 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL --- Iteration 23 -- - -Warning: join(): Invalid arguments passed in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/join_variation3.phpt b/ext/standard/tests/strings/join_variation3.phpt index 6d2eb88e62..887a22b32d 100644 --- a/ext/standard/tests/strings/join_variation3.phpt +++ b/ext/standard/tests/strings/join_variation3.phpt @@ -57,49 +57,6 @@ echo "Done\n"; --EXPECTF-- *** Testing join() : usage variations *** -- Iteration 1 -- -string(6) "1], [2" --- Iteration 2 -- -string(10) "1.1], [2.2" --- Iteration 3 -- - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d -string(14) "Array], [Array" --- Iteration 4 -- -string(5) "], [1" --- Iteration 5 -- -string(0) "" --- Iteration 6 -- -string(0) "" --- Iteration 7 -- -string(36) "a], [aaaa], [b], [bbbb], [c], [ccccc" --- Iteration 8 -- -string(19) "one], [two], [three" --- Iteration 9 -- -string(11) "1], [2], [3" --- Iteration 10 -- -string(20) "10], [20], [40], [30" --- Iteration 11 -- -string(23) "ten], [twenty], [thirty" --- Iteration 12 -- -string(16) "1], [two], [four" --- Iteration 13 -- -string(12) "null], [], [" --- Iteration 14 -- -string(22) "true], [false], [], [1" --- Iteration 15 -- -string(14) "emptys], [], [" --- Iteration 16 -- -string(21) "], [], [], [], [], [1" --- Iteration 17 -- -string(11) "4], [5], [6" --- Iteration 18 -- -string(13) "10], [20], [3" -Done ---UEXPECTF-- -*** Testing join() : usage variations *** --- Iteration 1 -- unicode(6) "1], [2" -- Iteration 2 -- unicode(10) "1.1], [2.2" diff --git a/ext/standard/tests/strings/join_variation4.phpt b/ext/standard/tests/strings/join_variation4.phpt Binary files differindex ac712a4188..526caf20f4 100644 --- a/ext/standard/tests/strings/join_variation4.phpt +++ b/ext/standard/tests/strings/join_variation4.phpt diff --git a/ext/standard/tests/strings/join_variation5.phpt b/ext/standard/tests/strings/join_variation5.phpt index 1d7d0c151d..196cfa3e37 100644 --- a/ext/standard/tests/strings/join_variation5.phpt +++ b/ext/standard/tests/strings/join_variation5.phpt @@ -36,24 +36,6 @@ echo "Done\n"; Notice: Array to string conversion in %s on line %d Notice: Array to string conversion in %s on line %d -string(27) "ArrayTESTArrayTESTPHPTEST50" - -Notice: Array to string conversion in %s on line %d -string(19) "1Array2Array3Array4" - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d -string(18) "Array2Array2PHP250" -string(10) "1, 2, 3, 4" -string(8) "one, two" -Done ---UEXPECTF-- -*** Testing implode() : usage variations - sub arrays *** - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d unicode(27) "ArrayTESTArrayTESTPHPTEST50" Notice: Array to string conversion in %s on line %d diff --git a/ext/standard/tests/strings/join_variation6.phpt b/ext/standard/tests/strings/join_variation6.phpt Binary files differindex 44c75f56a5..65861983c9 100644 --- a/ext/standard/tests/strings/join_variation6.phpt +++ b/ext/standard/tests/strings/join_variation6.phpt diff --git a/ext/standard/tests/strings/lcfirst.phpt b/ext/standard/tests/strings/lcfirst.phpt Binary files differindex 2b5fea3e37..759a0579b1 100644 --- a/ext/standard/tests/strings/lcfirst.phpt +++ b/ext/standard/tests/strings/lcfirst.phpt diff --git a/ext/standard/tests/strings/ltrim.phpt b/ext/standard/tests/strings/ltrim.phpt index b775720221..a2aa2aa6a2 100644 --- a/ext/standard/tests/strings/ltrim.phpt +++ b/ext/standard/tests/strings/ltrim.phpt @@ -51,34 +51,6 @@ Warning: ltrim() expects at most 2 parameters, 3 given in %s on line %d NULL *** Testing with heredoc string *** -string(17) "ng heredoc string" - -*** Testing Normal Behaviour *** -string(10) "ltrim test" -string(13) " ltrim test" -string(18) " ltrim test" -string(18) " ltrim test" -string(10) "ltrim test" -string(11) " ltrim test" -string(10) "ltrim test" -string(10) "ltrim test" -string(10) "ltrim test" - -*** Testing for scalar argument *** -string(5) "12345" - -*** Testing for NULL argument *** -string(0) "" - -Done ---UEXPECTF-- -Warning: ltrim() expects at least 1 parameter, 0 given in %s on line %d -NULL - -Warning: ltrim() expects at most 2 parameters, 3 given in %s on line %d -NULL - -*** Testing with heredoc string *** unicode(17) "ng heredoc string" *** Testing Normal Behaviour *** diff --git a/ext/standard/tests/strings/md5.phpt b/ext/standard/tests/strings/md5.phpt Binary files differindex 2704338756..4ff971fc24 100644 --- a/ext/standard/tests/strings/md5.phpt +++ b/ext/standard/tests/strings/md5.phpt diff --git a/ext/standard/tests/strings/md5_file.phpt b/ext/standard/tests/strings/md5_file.phpt Binary files differindex c368e49978..e6c0779420 100644 --- a/ext/standard/tests/strings/md5_file.phpt +++ b/ext/standard/tests/strings/md5_file.phpt diff --git a/ext/standard/tests/strings/metaphone.phpt b/ext/standard/tests/strings/metaphone.phpt index 81858c4e05..5b5183e461 100644 --- a/ext/standard/tests/strings/metaphone.phpt +++ b/ext/standard/tests/strings/metaphone.phpt @@ -25,21 +25,7 @@ foreach($array as $str) { echo "Done\n"; ?> ---EXPECTF-- -Warning: metaphone() expects at least 1 parameter, 0 given in %s on line %d -NULL -string(0) "" -string(0) "" -bool(false) -bool(false) -string(6) "FLTFRS" -string(6) "FLTFRS" -string(26) "0FLFRWRTKRFLNKHTLSLN0KLTR0" -string(56) "BT0XTFHRRHLTNTRTRNTPSNKLWRNRFTBF0MSWPNK0FNRKW0TSFSTLWNKS" -string(69) "ANT0NTWSKNFLYNKBKTMRTRW00SPTF0R0FSRNNTBHNTT0WNTRRTWLFNK0TTMRXSBRNTBLK" -string(56) "0NKTWSTSFRS0YKLTPRSFNT0TSTNTMNSF0MNTNSWSTPLTW00FTFLMNLFT" -Done ---UEXPECTF-- +--EXPECTF-- Warning: metaphone() expects at least 1 parameter, 0 given in %s on line %d NULL unicode(0) "" diff --git a/ext/standard/tests/strings/moneyformat.phpt b/ext/standard/tests/strings/moneyformat.phpt index 434000d0ae..5aa17ff6b3 100755 --- a/ext/standard/tests/strings/moneyformat.phpt +++ b/ext/standard/tests/strings/moneyformat.phpt @@ -17,11 +17,6 @@ var_dump( money_format("X%nY", 3.1415)); var_dump(money_format("AAAAA%n%n%n%n", NULL)); ?> --EXPECTF-- -string(7) "X$3.14Y" - -Warning: money_format(): Only a single %ci or %cn token can be used in %s on line %d -bool(false) ---UEXPECTF-- Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d unicode(7) "X$3.14Y" diff --git a/ext/standard/tests/strings/nl2br.phpt b/ext/standard/tests/strings/nl2br.phpt index af66bedbd8..9c031ac886 100644 --- a/ext/standard/tests/strings/nl2br.phpt +++ b/ext/standard/tests/strings/nl2br.phpt @@ -16,49 +16,6 @@ nl2br() function ?> --EXPECT-- -string(4) "test" -string(0) "" -string(0) "" -string(8) "<br /> -" -string(7) "<br /> -" -string(7) "<br /> -" -string(8) "<br /> - -" -string(44) "<br /> - -<br /> -<br /> -<br /> -<br /> -<br /> -" -string(47) "<br /> - -<br /> -<br /> - -<br /> - -<br /> -<br /> -" -string(66) "<br /> - -<br /> -<br /> -<br /> -<br /> - -<br /> -<br /> -<br /> -<br /> -" ---UEXPECT-- unicode(4) "test" unicode(0) "" unicode(0) "" diff --git a/ext/standard/tests/strings/nl2br_variation1.phpt b/ext/standard/tests/strings/nl2br_variation1.phpt index b98ed6ebea..8a49f8c47d 100644 --- a/ext/standard/tests/strings/nl2br_variation1.phpt +++ b/ext/standard/tests/strings/nl2br_variation1.phpt @@ -45,44 +45,7 @@ foreach( $strings as $str ){ } echo "Done"; ?> ---EXPECTF-- -*** Testing nl2br() : usage variations *** --- Iteration 1 -- -string(17) "Hello<br /> -World" --- Iteration 2 -- -string(31) "<br /> -Hello<br /> -World<br /> -" --- Iteration 3 -- -string(17) "Hello<br /> -World" --- Iteration 4 -- -string(31) "<br /> -Hello<br /> -World<br /> -" --- Iteration 5 -- -string(18) "Hello<br /> -World" --- Iteration 6 -- -string(34) "<br /> -Hello<br /> -World<br /> -" --- Iteration 7 -- -string(7) "<br /> -" --- Iteration 8 -- -string(14) "<br /> -<br /> -" --- Iteration 9 -- -string(17) "Hello<br /> -World" -Done ---UEXPECTF-- +--EXPECT-- *** Testing nl2br() : usage variations *** -- Iteration 1 -- string(17) "Hello<br /> diff --git a/ext/standard/tests/strings/nl2br_variation2.phpt b/ext/standard/tests/strings/nl2br_variation2.phpt index 76ea866377..adac6cd2e5 100644 --- a/ext/standard/tests/strings/nl2br_variation2.phpt +++ b/ext/standard/tests/strings/nl2br_variation2.phpt @@ -43,32 +43,7 @@ foreach( $strings as $str ){ } echo "Done"; ?> ---EXPECTF-- -*** Testing nl2br() : usage variations *** --- Iteration 1 -- -string(2) "\n" --- Iteration 2 -- -string(2) "\r" --- Iteration 3 -- -string(4) "\r\n" --- Iteration 4 -- -string(12) "Hello\nWorld" --- Iteration 5 -- -string(12) "Hello\rWorld" --- Iteration 6 -- -string(14) "Hello\r\nWorld" --- Iteration 7 -- -string(7) "<br /> -" --- Iteration 8 -- -string(14) "<br /> -<br /> -" --- Iteration 9 -- -string(17) "Hello<br /> -World" -Done ---UEXPECTF-- +--EXPECT-- *** Testing nl2br() : usage variations *** -- Iteration 1 -- unicode(2) "\n" diff --git a/ext/standard/tests/strings/nl2br_variation3.phpt b/ext/standard/tests/strings/nl2br_variation3.phpt index 203ec7a38d..e6b0e5b754 100644 --- a/ext/standard/tests/strings/nl2br_variation3.phpt +++ b/ext/standard/tests/strings/nl2br_variation3.phpt @@ -34,46 +34,7 @@ var_dump(nl2br($heredoc_str2) ); echo "Done"; ?> ---EXPECTF-- -*** Testing nl2br() : usage variations *** -string(147) "<br /> -<br /> - -<br /> - -<br /> -<br /> -<br /> -nn<br /> -<br /> -<br /> -n<br /> - -rr<br /> -<br /> -<br /> -r<br /> -<br /> - -<br /> - -<br /> -<br /> -r<br /> -n" -string(118) "Hello<br /> -World<br /> -This is es for <br /> - <br /> -ew lines<br /> -like <br /> - <br /> - <br /> - <br /> - - and etc" -Done ---UEXPECTF-- +--EXPECT-- *** Testing nl2br() : usage variations *** unicode(147) "<br /> <br /> diff --git a/ext/standard/tests/strings/nl2br_variation4.phpt b/ext/standard/tests/strings/nl2br_variation4.phpt index 049130baca..83baeb1945 100644 --- a/ext/standard/tests/strings/nl2br_variation4.phpt +++ b/ext/standard/tests/strings/nl2br_variation4.phpt @@ -28,20 +28,7 @@ foreach( $strings as $str ){ } echo "Done"; ?> ---EXPECTF-- -*** Testing nl2br() : usage variations *** -string(29) "<html>Hello<br />world</html>" -string(19) "<html><br /></html>" -string(45) "<html><br /> -Hello<br /> -world<br /> -</html>" -string(37) "<html><br /> - <br /> - <br /> -</html>" -Done ---UEXPECTF-- +--EXPECT-- *** Testing nl2br() : usage variations *** unicode(29) "<html>Hello<br />world</html>" unicode(19) "<html><br /></html>" diff --git a/ext/standard/tests/strings/nl2br_variation5.phpt b/ext/standard/tests/strings/nl2br_variation5.phpt index 784e39b76a..a943029aaa 100644 --- a/ext/standard/tests/strings/nl2br_variation5.phpt +++ b/ext/standard/tests/strings/nl2br_variation5.phpt @@ -90,69 +90,6 @@ echo "Done"; --EXPECTF-- *** Testing nl2br() : usage variations *** -- Iteration 1 -- -string(1) "0" --- Iteration 2 -- -string(1) "1" --- Iteration 3 -- -string(5) "12345" --- Iteration 4 -- -string(5) "-2345" --- Iteration 5 -- -string(4) "10.5" --- Iteration 6 -- -string(5) "-10.5" --- Iteration 7 -- -string(12) "105000000000" --- Iteration 8 -- -string(7) "1.06E-9" --- Iteration 9 -- -string(3) "0.5" --- Iteration 10 -- - -Warning: nl2br() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 11 -- - -Warning: nl2br() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 12 -- - -Warning: nl2br() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 13 -- - -Warning: nl2br() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 14 -- - -Warning: nl2br() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 15 -- -string(0) "" --- Iteration 16 -- -string(0) "" --- Iteration 17 -- -string(1) "1" --- Iteration 18 -- -string(0) "" --- Iteration 19 -- -string(1) "1" --- Iteration 20 -- -string(0) "" --- Iteration 21 -- - -Warning: nl2br() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL --- Iteration 22 -- -string(9) "My String" --- Iteration 23 -- -string(0) "" --- Iteration 24 -- -string(0) "" -Done ---UEXPECTF-- -*** Testing nl2br() : usage variations *** --- Iteration 1 -- unicode(1) "0" -- Iteration 2 -- unicode(1) "1" diff --git a/ext/standard/tests/strings/pathinfo.phpt b/ext/standard/tests/strings/pathinfo.phpt index 3b77153305..4ba66d4b61 100644 --- a/ext/standard/tests/strings/pathinfo.phpt +++ b/ext/standard/tests/strings/pathinfo.phpt @@ -26,87 +26,7 @@ var_dump(pathinfo(__FILE__, PATHINFO_DIRNAME|PATHINFO_BASENAME)); echo "Done\n"; ?> ---EXPECTF-- -Warning: pathinfo() expects at least 1 parameter, 0 given in %s on line %d -NULL -array(2) { - ["basename"]=> - string(0) "" - ["filename"]=> - string(0) "" -} -array(4) { - ["dirname"]=> - string(1) "." - ["basename"]=> - string(1) "." - ["extension"]=> - string(0) "" - ["filename"]=> - string(0) "" -} -array(4) { - ["dirname"]=> - string(1) "." - ["basename"]=> - string(2) ".." - ["extension"]=> - string(0) "" - ["filename"]=> - string(1) "." -} -array(3) { - ["dirname"]=> - string(1) "%e" - ["basename"]=> - string(0) "" - ["filename"]=> - string(0) "" -} -array(4) { - ["dirname"]=> - string(1) "." - ["basename"]=> - string(1) "." - ["extension"]=> - string(0) "" - ["filename"]=> - string(0) "" -} -array(4) { - ["dirname"]=> - string(1) "%e" - ["basename"]=> - string(1) "." - ["extension"]=> - string(0) "" - ["filename"]=> - string(0) "" -} -array(4) { - ["dirname"]=> - string(1) "." - ["basename"]=> - string(10) ".cvsignore" - ["extension"]=> - string(9) "cvsignore" - ["filename"]=> - string(0) "" -} -string(12) "pathinfo.php" -string(8) "pathinfo" -string(3) "php" -string(%d) "%s%estrings" -string(%d) "%s%estrings" -string(12) "pathinfo.php" -string(3) "php" -string(12) "pathinfo.php" -string(%d) "%s%estrings" -string(12) "pathinfo.php" -string(%d) "%s%estrings" -string(%d) "%s%estrings" -Done ---UEXPECTF-- +--EXPECTF-- Warning: pathinfo() expects at least 1 parameter, 0 given in %s on line %d NULL array(2) { diff --git a/ext/standard/tests/strings/php_strip_whitespace.phpt b/ext/standard/tests/strings/php_strip_whitespace.phpt index 4f7ef909e9..d9376b101a 100644 --- a/ext/standard/tests/strings/php_strip_whitespace.phpt +++ b/ext/standard/tests/strings/php_strip_whitespace.phpt @@ -39,7 +39,7 @@ var_dump(php_strip_whitespace($filename)); @unlink($filename); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: php_strip_whitespace() expects exactly 1 parameter, 0 given in %s on line %d bool(false) diff --git a/ext/standard/tests/strings/rtrim.phpt b/ext/standard/tests/strings/rtrim.phpt Binary files differindex f18d983c72..dc406247e0 100644 --- a/ext/standard/tests/strings/rtrim.phpt +++ b/ext/standard/tests/strings/rtrim.phpt diff --git a/ext/standard/tests/strings/setlocale_basic1.phpt b/ext/standard/tests/strings/setlocale_basic1.phpt deleted file mode 100644 index ebea5dd848..0000000000 --- a/ext/standard/tests/strings/setlocale_basic1.phpt +++ /dev/null @@ -1,126 +0,0 @@ ---TEST-- -Test setlocale() function : basic functionality - setting system locale to a specific ---SKIPIF-- -<?php -if (substr(PHP_OS, 0, 3) == 'WIN') - die('skip Not valid for windows'); - -if( ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); - -if (setlocale(LC_ALL, "en_US.utf8", "en_AU.utf8", "ko_KR.utf8", "zh_CN.utf8", "de_DE.utf8", "es_EC.utf8", "fr_FR.utf8", "ja_JP.utf8", "el_GR.utf8", "nl_NL.utf8") === false) - die('skip available locales not usable'); -?> ---FILE-- -<?php -/* Prototype : string setlocale (int $category , string $locale [,string $..] ) - : string setlocale(int $category , array $locale); - * Description: Sets locale information.Returns the new current locale , - * or FALSE if locale functinality is not implemented in this platform. - * Source code: ext/standard/string.c -*/ - -/* test setlocale by specifying a specific locale as input */ - -/* Prototype : array list_system_locales( void ) - Description: To get the currently installed locle in this platform - Arguments : Nil - Returns : set of locale as array -*/ -function list_system_locales() { - // start the buffering of next command to internal output buffer - ob_start(); - - // run the command 'locale -a' to fetch all locales available in the system - system('locale -a'); - - // get the contents from the internal output buffer - $all_locales = ob_get_contents(); - - // fflush and end the output buffering to internal output buffer - ob_end_clean(); - - $system_locales = explode("\n", $all_locales); - - // return all the locale found in the system - return $system_locales; -} - -/* Collect existing system locales and set one among them, - Check the currency settings in the new locale */ -echo "*** Testing setlocale() : basic functionality - set to a specific locale ***\n"; - -//set of locales to be used -$common_locales = array( - "english_US"=> "en_US.utf8", - "english_AU" => "en_AU.utf8", - "korean_KR" => "ko_KR.utf8", - "Chinese_zh" => "zh_CN.utf8", - "germen_DE" => "de_DE.utf8", - "spanish_es" => "es_EC.utf8", - "french_FR" => "fr_FR.utf8", - "japanees_JP" => "ja_JP.utf8", - "greek_GR" => "el_GR.utf8", - "dutch_NL" => "nl_NL.utf8" -); - -//set of currency symbol according to above list of locales -$currency_symbol = array( - "en_US.utf8" => "USD", - "en_AU.utf8" => "AUD", - "ko_KR.utf8" => "KRW", - "zh_CN.utf8" => "CNY", - "de_DE.utf8" => "EUR", - "es_EC.utf8" => "USD", - "fr_FR.utf8" => "EUR", - "ja_JP.utf8" => "JPY", - "el_GR.utf8" => "EUR", - "nl_NL.utf8" =>"EUR" -); - -// gather all the locales installed in the system -$all_system_locales = list_system_locales(); - -// set the system locale to a locale, choose the right locale by -// finding a common locale in commonly used locale stored in -// $common_locales & locales that are available in the system, stored -// in $all_system_locales. -echo "Setting system locale(LC_ALL) to "; -foreach($common_locales as $value) { - // check if a commonly used locale is installed in the system - if(in_array($value, $all_system_locales)){ - echo "$value\n"; // print, this is found - // set the found locale as current locale - var_dump(setlocale(LC_ALL, $value )); - // stop here - break; - } - else{ - // continue to check if next commonly locale is installed in the system - continue; - } -} - -// check that new locale setting is effective -// use localeconv() to get the details of currently set locale -$locale_info = localeconv(); - -//checking currency settings in the new locale to see if the setlocale() was effective -$new_currency = trim($locale_info['int_curr_symbol']); -echo "Checking currency settings in the new locale, expected: ".$currency_symbol[$value].", Found: ".$new_currency."\n"; -echo "Test "; -if(trim($currency_symbol[$value]) == $new_currency){ - echo "PASSED."; -} else { - echo "FAILED."; -} - -echo "\nDone\n"; -?> ---EXPECTF-- -*** Testing setlocale() : basic functionality - set to a specific locale *** -Setting system locale(LC_ALL) to %s -string(%d) %s -Checking currency settings in the new locale, expected: %s, Found: %s -Test PASSED. -Done diff --git a/ext/standard/tests/strings/setlocale_basic2.phpt b/ext/standard/tests/strings/setlocale_basic2.phpt deleted file mode 100644 index 7621e4468c..0000000000 --- a/ext/standard/tests/strings/setlocale_basic2.phpt +++ /dev/null @@ -1,129 +0,0 @@ ---TEST-- -Test setlocale() function : basic functionality - set locale using an array ---SKIPIF-- -<?php -if (substr(PHP_OS, 0, 3) == 'WIN') - die('skip Not valid for windows'); -if(ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); -if (setlocale(LC_ALL, "en_US.utf8", "en_AU.utf8", "ko_KR.utf8", "zh_CN.utf8", "de_DE.utf8", "es_EC.utf8", "fr_FR.utf8", "ja_JP.utf8", "el_GR.utf8", "nl_NL.utf8") === false) - die('skip available locales not usable'); -?> ---FILE-- -<?php -/* Prototype : string setlocale (int $category , string $locale [,string $..] ) - : string setlocale(int $category , array $locale); - * Description: Sets locale information.Returns the new current locale , or FALSE - if locale functinality is not implemented in this platform. - * Source code: ext/standard/string.c -*/ - -/* Test the setlocale() when an array is provided as input containing list of locales */ - -/* Prototype : array list_system_locales( void ) - * Description: To get the currently installed locle in this platform - * Arguments : Nil - * Returns : set of locale as array -*/ -function list_system_locales() { - // start the buffering of next command to internal output buffer - ob_start(); - - // run the command 'locale -a' to fetch all locales available in the system - system('locale -a'); - - // get the contents from the internal output buffer - $all_locales = ob_get_contents(); - - // fflush and end the output buffering to internal output buffer - ob_end_clean(); - - $system_locales = explode("\n", $all_locales); - - // return all the locale found in the system - return $system_locales; -} - -/* Collect existing system locales and prepare a list of locales that can be used as - input to setlocale() */ - -echo "*** Testing setlocale() with an array containing list of locales ***\n"; - -//set of locales to be used -$common_locales = array( - "english_US"=> "en_US.utf8", - "english_AU" => "en_AU.utf8", - "korean_KR" => "ko_KR.utf8", - "Chinese_zh" => "zh_CN.utf8", - "germen_DE" => "de_DE.utf8", - "spanish_es" => "es_EC.utf8", - "french_FR" => "fr_FR.utf8", - "japanees_JP" => "ja_JP.utf8", - "greek_GR" => "el_GR.utf8", - "dutch_NL" => "nl_NL.utf8" -); - -//set of currency symbol according to above list of locales -$currency_symbol = array( - "en_US.utf8" => "USD", - "en_AU.utf8" => "AUD", - "ko_KR.utf8" => "KRW", - "zh_CN.utf8" => "CNY", - "de_DE.utf8" => "EUR", - "es_EC.utf8" => "USD", - "fr_FR.utf8" => "EUR", - "ja_JP.utf8" => "JPY", - "el_GR.utf8" => "EUR", - "nl_NL.utf8" =>"EUR" -); - -// gather all the locales installed in the system -$all_system_locales = list_system_locales(); - -// prepare the list of locales based on list of locales found in the system -// and those known to this script ( as stored $common_locales) which can be -// given as input to setlocale(), later verify the new locale setting by -// checking the currency setting of the system(use localconv()) -$list_of_locales = array(); -foreach($common_locales as $value) { - if( in_array($value, $all_system_locales) ) { - $list_of_locales[] = $value; - } -} - -// Now $list_of_locales array contains the locales that can be passed to -// setlocale() function. -echo "-- Testing setlocale() : 'category' argument as LC_ALL & 'locale' argument as an array --\n"; -if ( count($list_of_locales) > 0 ) { - // set locale to $list_of_locales - $new_locale = setlocale(LC_ALL, $list_of_locales); - - // dump the current locale - var_dump($new_locale); - - // check that new locale setting is effective - // use localeconv() to get the details of currently set locale - $locale_info = localeconv(); - $new_currency = trim($locale_info['int_curr_symbol']); - - echo "Checking currency settings in the new locale, expected: ".$currency_symbol[$new_locale].", Found: ".$new_currency."\n"; - echo "Test "; - - if(trim($currency_symbol[$new_locale]) == $new_currency){ - echo "PASSED.\n"; - } else { - echo "FAILED.\n"; - } -} else { - echo "Test FAILED.\n"; -} - -echo "Done\n"; -?> ---EXPECTF-- -*** Testing setlocale() with an array containing list of locales *** --- Testing setlocale() : 'category' argument as LC_ALL & 'locale' argument as an array -- -string(%d) "%s" -Checking currency settings in the new locale, expected: %s, Found: %s -Test PASSED. -Done diff --git a/ext/standard/tests/strings/setlocale_basic3.phpt b/ext/standard/tests/strings/setlocale_basic3.phpt deleted file mode 100644 index 30169ac748..0000000000 --- a/ext/standard/tests/strings/setlocale_basic3.phpt +++ /dev/null @@ -1,95 +0,0 @@ ---TEST-- -Test setlocale() function : basic functionality - passing multiple locales as argument ---SKIPIF-- -<?php -if (substr(PHP_OS, 0, 3) == 'WIN') - die('skip Not valid for windows'); -if(ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); -if (setlocale(LC_ALL, "en_US.utf8", "Ko_KR.utf8", "zh_CN.utf8") === false) - die('skip en_US.utf8/Ko_KR.utf8/zh_CN.utf8 locales not available'); -?> ---FILE-- -<?php -/* Prototype : string setlocale (int $category , string $locale [,string $..] ) - : string setlocale(int $category , array $locale); - * Description: Sets locale information.Returns the new current locale , or FALSE - if locale functinality is not implemented in this platform. - * Source code: ext/standard/string.c -*/ - -/* Test the setlocale() when multiple locales are provided as argument */ - -/* Prototype : array list_system_locales( void ) - Description: To get the currently installed locle in this platform - Arguments : Nil - Returns : set of locale as array -*/ -function list_system_locales() { - // start the buffering of next command to internal output buffer - ob_start(); - - // run the command 'locale -a' to fetch all locales available in the system - system('locale -a'); - - // get the contents from the internal output buffer - $all_locales = ob_get_contents(); - - // fflush and end the output buffering to internal output buffer - ob_end_clean(); - - $system_locales = explode("\n", $all_locales); - - // return all the locale found in the system - return $system_locales; -} - -/* Collect existing system locales and get three locales that can be use to - pass as argument to setlocale() */ -echo "*** Testing setlocale() by passing multiple locales as argument ***\n"; - -//set of currency symbol according to above list of locales -$currency_symbol = array( - "en_US.utf8" => "USD", - "ko_KR.utf8" => "KRW", - "zh_CN.utf8" => "CNY", -); - -// gather all the locales installed in the system -$all_system_locales = list_system_locales(); - -// Now check for three locales that is present in the system and use that as argument to setlocale() -if( in_array("en_US.utf8",$all_system_locales) || - in_array("Ko_KR.utf8",$all_system_locales) || - in_array("zh_CN.utf8",$all_system_locales) ) { - echo "-- Testing setlocale() by giving 'category' as LC_ALL & multiple locales(en_US.utf8, Ko_KR.utf8, zh_CN.utf8) --\n"; - - // call setlocale() - $new_locale = setlocale(LC_ALL, "en_US.utf8", "Ko_KR.utf8", "zh_CN.utf8"); - - // dump the name of the new locale set by setlocale() - var_dump($new_locale); - - // check that new locale setting is effective - // use localeconv() to get the details of currently set locale - $locale_info = localeconv(); - $new_currency = trim($locale_info['int_curr_symbol']); - - echo "Checking currency settings in the new locale, expected: ".$currency_symbol[$new_locale].", Found: ".$new_currency."\n"; - echo "Test "; - if( trim($currency_symbol[$new_locale]) == $new_currency) { - echo "PASSED.\n"; - } else { - echo "FAILED.\n"; - } -} - -echo "Done\n"; -?> ---EXPECTF-- -*** Testing setlocale() by passing multiple locales as argument *** --- Testing setlocale() by giving 'category' as LC_ALL & multiple locales(en_US.utf8, Ko_KR.utf8, zh_CN.utf8) -- -string(%d) "%s" -Checking currency settings in the new locale, expected: %s, Found: %s -Test PASSED. -Done diff --git a/ext/standard/tests/strings/setlocale_error.phpt b/ext/standard/tests/strings/setlocale_error.phpt deleted file mode 100644 index 080d922c6e..0000000000 --- a/ext/standard/tests/strings/setlocale_error.phpt +++ /dev/null @@ -1,69 +0,0 @@ ---TEST-- -Test setlocale() function : error conditions ---SKIPIF-- -<?php -if (substr(PHP_OS, 0, 3) == 'WIN') - die('skip Not valid for windows'); -if(ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); -?> ---FILE-- -<?php -/* Prototype : string setlocale (int $category , string $locale [,string $..] ) - : string setlocale(int $category , array $locale); - * Description: Sets locale information.Returns the new current locale , or FALSE if locale functinality is not implemented in this platform. - * Source code: ext/standard/string.c -*/ - -echo "*** Testing setlocale() : error conditions ***\n"; - -// Zero argument -echo "\n-- Testing setlocale() function with Zero arguments --"; -var_dump( setlocale()); - -// One argument -echo "\n-- Testing setlocale() function with One argument, 'category' = LC_ALL --"; -var_dump( setlocale(LC_ALL) ); - -echo "\n-- Testing setlocale() function with invalid locale array, 'category' = LC_ALL --\n"; -//Invalid array of locales -$invalid_locales = array("en_US.invalid", "en_AU.invalid", "ko_KR.invalid"); -var_dump( setlocale(LC_ALL,$invalid_locales) ); - -echo "\n-- Testing setlocale() function with invalid multiple locales, 'category' = LC_ALL --\n"; -//Invalid array of locales -var_dump( setlocale(LC_ALL,"en_US.invalid", "en_AU.invalid", "ko_KR.invalid") ); - -echo "\n-- Testing setlocale() function with invalid category --\n"; -//invalid $category -$invalid_category = "TEST"; -var_dump( setlocale($invalid_category,"en_US.utf8") ); - -echo "\nDone"; -?> ---EXPECTF-- - -*** Testing setlocale() : error conditions *** - --- Testing setlocale() function with Zero arguments -- -Warning: Wrong parameter count for setlocale() in %s on line %d -NULL - --- Testing setlocale() function with One argument, 'category' = LC_ALL -- -Warning: Wrong parameter count for setlocale() in %s on line %d -NULL - --- Testing setlocale() function with invalid locale array, 'category' = LC_ALL -- -bool(false) - --- Testing setlocale() function with invalid multiple locales, 'category' = LC_ALL -- -bool(false) - --- Testing setlocale() function with invalid category -- - -Deprecated: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead in %s on line %d - -Warning: setlocale(): Invalid locale category name TEST, must be one of LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, or LC_TIME in %s on line %d -bool(false) - -Done diff --git a/ext/standard/tests/strings/setlocale_variation1.phpt b/ext/standard/tests/strings/setlocale_variation1.phpt deleted file mode 100644 index a3652e2f70..0000000000 --- a/ext/standard/tests/strings/setlocale_variation1.phpt +++ /dev/null @@ -1,95 +0,0 @@ ---TEST-- -Test setlocale() function : usage variations - passing multiple valid/invlaid locales as argument ---SKIPIF-- -<?php -if (substr(PHP_OS, 0, 3) == 'WIN') - die('skip Not valid for windows'); -if(ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); -if (setlocale(LC_ALL, "en_US.utf8", "Ko_KR.utf8", "zh_CN.utf8") === false) - die('skip en_US.utf8/Ko_KR.utf8/zh_CN.utf8 locales not available'); -?> ---FILE-- -<?php -/* Prototype : string setlocale (int $category , string $locale [,string $..] ) - : string setlocale(int $category , array $locale); - * Description: Sets locale information.Returns the new current locale , or FALSE - if locale functinality is not implemented in this platform. - * Source code: ext/standard/string.c -*/ - -/* Test the setlocale() when multiple valid/invalid locales are provided as argument */ - -/* Prototype : array list_system_locales( void ) - Description: To get the currently installed locle in this platform - Arguments : Nil - Returns : set of locale as array -*/ -function list_system_locales() { - // start the buffering of next command to internal output buffer - ob_start(); - - // run the command 'locale -a' to fetch all locales available in the system - system('locale -a'); - - // get the contents from the internal output buffer - $all_locales = ob_get_contents(); - - // fflush and end the output buffering to internal output buffer - ob_end_clean(); - - $system_locales = explode("\n", $all_locales); - - // return all the locale found in the system - return $system_locales; -} - -/* Collect existing system locales and get 2 valid locales that can be use to - pass as argument to setlocale(), pass 2 invalid arguments along with two valid argumentsss */ -echo "*** Testing setlocale() by passing multiple valid/invalid locales as argument ***\n"; - -//set of currency symbol according to above list of locales -$currency_symbol = array( - "en_US.utf8" => "USD", - "ko_KR.utf8" => "KRW", - "zh_CN.utf8" => "CNY" -); - -// gather all the locales installed in the system -$all_system_locales = list_system_locales(); - -// Now check for three locales that is present in the system and use that as argument to setlocale() -if( in_array("en_US.utf8",$all_system_locales) || - in_array("Ko_KR.utf8",$all_system_locales) || - in_array("zh_CN.utf8",$all_system_locales) ) { - echo "-- Testing setlocale() by giving 'category' as LC_ALL & multiple locales(en_US.invalid, en_US.utf8, Ko_KR.utf8, KO_KR.invalid, zh_CN.utf8) --\n"; - - // call setlocale() - $new_locale = setlocale(LC_ALL, "en_US.invalid", "en_US.utf8", "Ko_KR.utf8", "KO_KR.invalid", "zh_CN.utf8"); - - // dump the name of the new locale set by setlocale() - var_dump($new_locale); - - // check that new locale setting is effective - // use localeconv() to get the details of currently set locale - $locale_info = localeconv(); - $new_currency = trim($locale_info['int_curr_symbol']); - - echo "Checking currency settings in the new locale, expected: ".$currency_symbol[$new_locale].", Found: ".$new_currency."\n"; - echo "Test "; - if( trim($currency_symbol[$new_locale]) == $new_currency) { - echo "PASSED.\n"; - } else { - echo "FAILED.\n"; - } -} - -echo "Done\n"; -?> ---EXPECTF-- -*** Testing setlocale() by passing multiple valid/invalid locales as argument *** --- Testing setlocale() by giving 'category' as LC_ALL & multiple locales(en_US.invalid, en_US.utf8, Ko_KR.utf8, KO_KR.invalid, zh_CN.utf8) -- -string(%d) "%s" -Checking currency settings in the new locale, expected: %s, Found: %s -Test PASSED. -Done diff --git a/ext/standard/tests/strings/setlocale_variation2.phpt b/ext/standard/tests/strings/setlocale_variation2.phpt deleted file mode 100644 index e3f874a92f..0000000000 --- a/ext/standard/tests/strings/setlocale_variation2.phpt +++ /dev/null @@ -1,91 +0,0 @@ ---TEST-- -Test setlocale() function : usage variations - Setting all available locales in the platform ---SKIPIF-- -<?php -if (substr(PHP_OS, 0, 3) == 'WIN') - die('skip Not valid for windows'); -if(ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); -?> ---FILE-- -<?php -/* Prototype : string setlocale (int $category , string $locale [,string $..] ) - : string setlocale(int $category , array $locale); - * Description: Sets locale information.Returns the new current locale , or FALSE - if locale functinality is not implemented in this platform. - * Source code: ext/standard/string.c -*/ - -/* setlocale() to set all available locales in the system and check the success count */ -echo "*** Testing setlocale() : usage variations ***\n"; - -/* Prototype : array list_system_locales( void ) - * Description: To get the currently installed locle in this platform - * Arguments : Nil - * Returns : set of locale as array -*/ -function list_system_locales() { - // start the buffering of next command to internal output buffer - ob_start(); - - // run the command 'locale -a' to fetch all locales available in the system - system('locale -a'); - - // get the contents from the internal output buffer - $all_locales = ob_get_contents(); - - // fflush and end the output buffering to internal output buffer - ob_end_clean(); - - $system_locales = explode("\n", $all_locales); - - // return all the locale found in the system - return $system_locales; -} - -// gather all the locales installed in the system -$all_system_locales = list_system_locales(); - -//try different locale names -$failure_locale = array(); -$success_count = 0; - -echo "-- Test setlocale() with all available locale in the system --\n"; -// gather all locales installed in the system(stored $all_system_locales), -// try n set each locale using setlocale() and keep track failures, if any -foreach($all_system_locales as $value){ - //set locale to $value, if success, count increments - if(setlocale(LC_ALL,$value )){ - $success_count++; - } - else{ - //failure values are put in to an array $failure_locale - $failure_locale[] = $value; - } -} - -echo "No of locales found on the machine = ".count($all_system_locales)."\n"; -echo "No of setlocale() success = ".$success_count."\n"; -echo "Expected no of failures = 0\n"; -echo "Test "; -// check if there were any failure of setlocale() function earlier, if any -// failure then dump the list of failing locales -if($success_count != count($all_system_locales)){ - echo "FAILED\n"; - echo "Names of locale() for which setlocale() failed ...\n"; - var_dump($failure_locale); -} -else{ - echo "PASSED\n"; -} - -echo "Done\n"; -?> ---EXPECTF-- -*** Testing setlocale() : usage variations *** --- Test setlocale() with all available locale in the system -- -No of locales found on the machine = %d -No of setlocale() success = %d -Expected no of failures = 0 -Test PASSED -Done diff --git a/ext/standard/tests/strings/setlocale_variation3.phpt b/ext/standard/tests/strings/setlocale_variation3.phpt deleted file mode 100644 index a09c6eafbe..0000000000 --- a/ext/standard/tests/strings/setlocale_variation3.phpt +++ /dev/null @@ -1,159 +0,0 @@ ---TEST-- -Test setlocale() function : usage variations - setting system locale = 0 ---SKIPIF-- -<?php -if (substr(PHP_OS, 0, 3) == 'WIN') - die('skip Not valid for windows'); -if(ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); -if (setlocale(LC_ALL,'en_US.utf8') === false) - die('skip en_US.utf8 locale not available'); -?> ---FILE-- -<?php -/* Prototype : string setlocale (int $category , string $locale [,string $..] ) - * : string setlocale(int $category , array $locale); - * Description: Sets locale information.Returns the new current locale , or FALSE - * if locale functinality is not implemented in this platform. - * Source code: ext/standard/string.c -*/ - -/* If locale is "0", the locale setting is not affected, only the current setting is returned */ - -echo "*** Testing setlocale() : usage variations - setting system locale = 0 ***\n"; -$locale_info_before = array(); -$locale_info_after = array(); - -//initially giving the locale -setlocale(LC_ALL,"en_US.utf8"); - -echo "Locale info, before setting the locale\n"; -//returns current locale,before executing setlocale(). -$locale_info_before = localeconv(); - -var_dump($locale_info_before); - -//Testing setlocale() by giving locale = 0 -echo "Setting system locale, category = LC_ALL and locale = 0\n"; -setlocale(LC_ALL, 0); - -echo "Locale info, after setting the locale\n"; -//returns current locale,after executing setlocale(). -$locale_info_after = localeconv(); - -var_dump($locale_info_after); - -echo "Checking locale in the system, Expected : no change in the existing locale\n"; -echo "Test "; -if($locale_info_before == $locale_info_after){ - echo "PASSED."; -} else { - echo "FAILED."; -} - -echo "\nDone\n"; -?> ---EXPECTF-- -*** Testing setlocale() : usage variations - setting system locale = 0 *** -Locale info, before setting the locale -array(18) { - ["decimal_point"]=> - string(1) "." - ["thousands_sep"]=> - string(1) "," - ["int_curr_symbol"]=> - string(4) "USD " - ["currency_symbol"]=> - string(1) "$" - ["mon_decimal_point"]=> - string(1) "." - ["mon_thousands_sep"]=> - string(1) "," - ["positive_sign"]=> - string(0) "" - ["negative_sign"]=> - string(1) "-" - ["int_frac_digits"]=> - int(2) - ["frac_digits"]=> - int(2) - ["p_cs_precedes"]=> - int(1) - ["p_sep_by_space"]=> - int(0) - ["n_cs_precedes"]=> - int(1) - ["n_sep_by_space"]=> - int(0) - ["p_sign_posn"]=> - int(1) - ["n_sign_posn"]=> - int(1) - ["grouping"]=> - array(2) { - [0]=> - int(3) - [1]=> - int(3) - } - ["mon_grouping"]=> - array(2) { - [0]=> - int(3) - [1]=> - int(3) - } -} -Setting system locale, category = LC_ALL and locale = 0 -Locale info, after setting the locale -array(18) { - ["decimal_point"]=> - string(1) "." - ["thousands_sep"]=> - string(1) "," - ["int_curr_symbol"]=> - string(4) "USD " - ["currency_symbol"]=> - string(1) "$" - ["mon_decimal_point"]=> - string(1) "." - ["mon_thousands_sep"]=> - string(1) "," - ["positive_sign"]=> - string(0) "" - ["negative_sign"]=> - string(1) "-" - ["int_frac_digits"]=> - int(2) - ["frac_digits"]=> - int(2) - ["p_cs_precedes"]=> - int(1) - ["p_sep_by_space"]=> - int(0) - ["n_cs_precedes"]=> - int(1) - ["n_sep_by_space"]=> - int(0) - ["p_sign_posn"]=> - int(1) - ["n_sign_posn"]=> - int(1) - ["grouping"]=> - array(2) { - [0]=> - int(3) - [1]=> - int(3) - } - ["mon_grouping"]=> - array(2) { - [0]=> - int(3) - [1]=> - int(3) - } -} -Checking locale in the system, Expected : no change in the existing locale -Test PASSED. -Done diff --git a/ext/standard/tests/strings/setlocale_variation4.phpt b/ext/standard/tests/strings/setlocale_variation4.phpt deleted file mode 100644 index 8044b33dc0..0000000000 --- a/ext/standard/tests/strings/setlocale_variation4.phpt +++ /dev/null @@ -1,157 +0,0 @@ ---TEST-- -Test setlocale() function : usage variations - setting system locale as null ---SKIPIF-- -<?php -if (substr(PHP_OS, 0, 3) == 'WIN') - die('skip Not valid for windows'); -if(ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); -if (setlocale(LC_ALL,'en_US.utf8') === false || setlocale(LC_ALL,'en_AU.utf8') === false) - die('skip en_US.utf8/en_AU.utf8 locales not available'); -?> ---ENV-- -LC_ALL=en_US.utf8; ---FILE-- -<?php -/* Prototype : string setlocale (int $category , string $locale [,string $..] ) - * : string setlocale(int $category , array $locale); - * Description: Sets locale information.Returns the new current locale , or FALSE - * if locale functinality is not implemented in this platform. - * Source code: ext/standard/string.c -*/ - -/*If locale is NULL, the locale names will be set from the values of environment variables with the same names as the above ENV settings */ - -echo "*** Testing setlocale() : usage variations - Setting system locale = null ***\n"; - -//initially setting the locale -setlocale(LC_ALL,"en_AU.utf8"); - -echo "Locale info, before setting the locale\n"; -//returns current locale,before executing setlocale() . -$locale_info_before = localeconv(); -var_dump($locale_info_before); - -//Testing setlocale() by giving locale = null -echo "Setting system locale, category = LC_ALL and locale = null\n"; -setlocale(LC_ALL, null); - -echo "Locale info, after setting the locale\n"; -//Returns Current locale,after executing setlocale(). -$locale_info_after = localeconv(); -var_dump($locale_info_after); - -echo "Checking new locale in the system, Expected : the locale names will be set from the values of environment variables\n"; -echo "Test "; -if($locale_info_before != $locale_info_after){ - echo "PASSED."; -} else { - echo "FAILED."; -} - -echo "\nDone\n"; -?> ---EXPECTF-- -*** Testing setlocale() : usage variations - Setting system locale = null *** -Locale info, before setting the locale -array(18) { - ["decimal_point"]=> - string(1) "." - ["thousands_sep"]=> - string(1) "," - ["int_curr_symbol"]=> - string(4) "AUD " - ["currency_symbol"]=> - string(1) "$" - ["mon_decimal_point"]=> - string(1) "." - ["mon_thousands_sep"]=> - string(1) "," - ["positive_sign"]=> - string(0) "" - ["negative_sign"]=> - string(1) "-" - ["int_frac_digits"]=> - int(2) - ["frac_digits"]=> - int(2) - ["p_cs_precedes"]=> - int(1) - ["p_sep_by_space"]=> - int(0) - ["n_cs_precedes"]=> - int(1) - ["n_sep_by_space"]=> - int(0) - ["p_sign_posn"]=> - int(1) - ["n_sign_posn"]=> - int(1) - ["grouping"]=> - array(2) { - [0]=> - int(3) - [1]=> - int(3) - } - ["mon_grouping"]=> - array(2) { - [0]=> - int(3) - [1]=> - int(3) - } -} -Setting system locale, category = LC_ALL and locale = null -Locale info, after setting the locale -array(18) { - ["decimal_point"]=> - string(1) "." - ["thousands_sep"]=> - string(1) "," - ["int_curr_symbol"]=> - string(4) "USD " - ["currency_symbol"]=> - string(1) "$" - ["mon_decimal_point"]=> - string(1) "." - ["mon_thousands_sep"]=> - string(1) "," - ["positive_sign"]=> - string(0) "" - ["negative_sign"]=> - string(1) "-" - ["int_frac_digits"]=> - int(2) - ["frac_digits"]=> - int(2) - ["p_cs_precedes"]=> - int(1) - ["p_sep_by_space"]=> - int(0) - ["n_cs_precedes"]=> - int(1) - ["n_sep_by_space"]=> - int(0) - ["p_sign_posn"]=> - int(1) - ["n_sign_posn"]=> - int(1) - ["grouping"]=> - array(2) { - [0]=> - int(3) - [1]=> - int(3) - } - ["mon_grouping"]=> - array(2) { - [0]=> - int(3) - [1]=> - int(3) - } -} -Checking new locale in the system, Expected : the locale names will be set from the values of environment variables -Test PASSED. -Done diff --git a/ext/standard/tests/strings/setlocale_variation5.phpt b/ext/standard/tests/strings/setlocale_variation5.phpt deleted file mode 100644 index 4a3436656d..0000000000 --- a/ext/standard/tests/strings/setlocale_variation5.phpt +++ /dev/null @@ -1,161 +0,0 @@ ---TEST-- -Test setlocale() function : usage variations - Setting system locale as empty string ---SKIPIF-- -<?php -if (substr(PHP_OS, 0, 3) == 'WIN') - die('skip Not valid for windows'); -if(ini_get("unicode.semantics") == "1") - die('skip do not run when unicode on'); -if (setlocale(LC_ALL,'en_AU.utf8') === false || setlocale(LC_ALL,'en_US.utf8') === false) - die('skip en_AU.utf8/en_US.utf8 locales not available'); -?> ---ENV-- -LC_ALL=en_US.utf8; ---FILE-- -<?php -/* Prototype : string setlocale (int $category , string $locale [,string $..] ) - * : string setlocale(int $category , array $locale); - * Description: Sets locale information.Returns the new current locale , or FALSE - * if locale functinality is not implemented in this platform. - * Source code: ext/standard/string.c -*/ - -/* If locale is empty string "", the locale names will be set from the values of environment variables with the same names as from ENV */ - -echo "*** Testing setlocale() : usage variations - setting system locale = \"\" ***\n"; - -//initially setting the locale -setlocale(LC_ALL,'en_AU.utf8'); - -echo "Locale info, before setting the locale\n"; - -//returns current locale,before executing setlocale() . -$locale_info_before = localeconv(); - -var_dump($locale_info_before); - -//Testing setlocale() by giving locale = null -echo "Setting system locale, category = LC_ALL and locale = \"\"\n"; -setlocale(LC_ALL, ""); - -echo "Locale info, after setting the locale\n"; - -//Returns Current locale,after executing setlocale(). -$locale_info_after = localeconv(); - -var_dump($locale_info_after); - -echo "Checking new locale in the system, Expected : the locale names will be set from the values of environment variables\n"; -echo "Test "; -if($locale_info_before != $locale_info_after){ - echo "PASSED."; -} else { - echo "FAILED."; -} - -echo "\nDone\n"; -?> ---EXPECTF-- -*** Testing setlocale() : usage variations - setting system locale = "" *** -Locale info, before setting the locale -array(18) { - ["decimal_point"]=> - string(1) "." - ["thousands_sep"]=> - string(1) "," - ["int_curr_symbol"]=> - string(4) "AUD " - ["currency_symbol"]=> - string(1) "$" - ["mon_decimal_point"]=> - string(1) "." - ["mon_thousands_sep"]=> - string(1) "," - ["positive_sign"]=> - string(0) "" - ["negative_sign"]=> - string(1) "-" - ["int_frac_digits"]=> - int(2) - ["frac_digits"]=> - int(2) - ["p_cs_precedes"]=> - int(1) - ["p_sep_by_space"]=> - int(0) - ["n_cs_precedes"]=> - int(1) - ["n_sep_by_space"]=> - int(0) - ["p_sign_posn"]=> - int(1) - ["n_sign_posn"]=> - int(1) - ["grouping"]=> - array(2) { - [0]=> - int(3) - [1]=> - int(3) - } - ["mon_grouping"]=> - array(2) { - [0]=> - int(3) - [1]=> - int(3) - } -} -Setting system locale, category = LC_ALL and locale = "" -Locale info, after setting the locale -array(18) { - ["decimal_point"]=> - string(1) "." - ["thousands_sep"]=> - string(1) "," - ["int_curr_symbol"]=> - string(4) "USD " - ["currency_symbol"]=> - string(1) "$" - ["mon_decimal_point"]=> - string(1) "." - ["mon_thousands_sep"]=> - string(1) "," - ["positive_sign"]=> - string(0) "" - ["negative_sign"]=> - string(1) "-" - ["int_frac_digits"]=> - int(2) - ["frac_digits"]=> - int(2) - ["p_cs_precedes"]=> - int(1) - ["p_sep_by_space"]=> - int(0) - ["n_cs_precedes"]=> - int(1) - ["n_sep_by_space"]=> - int(0) - ["p_sign_posn"]=> - int(1) - ["n_sign_posn"]=> - int(1) - ["grouping"]=> - array(2) { - [0]=> - int(3) - [1]=> - int(3) - } - ["mon_grouping"]=> - array(2) { - [0]=> - int(3) - [1]=> - int(3) - } -} -Checking new locale in the system, Expected : the locale names will be set from the values of environment variables -Test PASSED. -Done diff --git a/ext/standard/tests/strings/sha1.phpt b/ext/standard/tests/strings/sha1.phpt index 60fb33fd7f..8e8a2a5f52 100644 --- a/ext/standard/tests/strings/sha1.phpt +++ b/ext/standard/tests/strings/sha1.phpt @@ -29,27 +29,6 @@ sha1_file($filename); echo "Done\n"; ?> --EXPECTF-- -string(40) "a9993e364706816aba3e25717850c26c9cd0d89d" -string(40) "a9993e364706816aba3e25717850c26c9cd0d89d" -bool(true) -string(40) "84983e441c3bd26ebaae4aa1f95129e5e54670f1" -string(40) "84983e441c3bd26ebaae4aa1f95129e5e54670f1" -bool(true) -string(40) "86f7e437faa5a7fce15d1ddcb9eaeaea377667b8" -string(40) "86f7e437faa5a7fce15d1ddcb9eaeaea377667b8" -bool(true) -string(40) "e0c094e867ef46c350ef54a7f59dd60bed92ae83" -string(40) "e0c094e867ef46c350ef54a7f59dd60bed92ae83" -bool(true) -string(40) "da39a3ee5e6b4b0d3255bfef95601890afd80709" -string(40) "da39a3ee5e6b4b0d3255bfef95601890afd80709" -bool(true) -string(20) "%a" -string(20) "%a" - -Warning: sha1_file(%ssha1.dat): failed to open stream: No such file or directory in %s on line %d -Done ---UEXPECTF-- unicode(40) "a9993e364706816aba3e25717850c26c9cd0d89d" unicode(40) "a9993e364706816aba3e25717850c26c9cd0d89d" bool(true) diff --git a/ext/standard/tests/strings/soundex.phpt b/ext/standard/tests/strings/soundex.phpt index fffb93673c..c511e022db 100644 --- a/ext/standard/tests/strings/soundex.phpt +++ b/ext/standard/tests/strings/soundex.phpt @@ -31,29 +31,7 @@ foreach ($array as $str) { echo "Done\n"; ?> ---EXPECTF-- -bool(false) -string(4) "0000" - -Warning: soundex() expects parameter 1 to be string, array given in %s on line %d -NULL -string(4) "F650" -string(4) "T300" -string(4) "T500" -string(4) "O500" -string(4) "S500" -string(4) "T230" -string(4) "T300" -string(4) "H000" -string(4) "S523" -string(4) "A000" -string(4) "C520" -string(4) "I500" -string(4) "G450" -string(4) "A250" -string(4) "H256" -Done ---UEXPECTF-- +--EXPECTF-- bool(false) string(4) "0000" diff --git a/ext/standard/tests/strings/sprintf_basic1.phpt b/ext/standard/tests/strings/sprintf_basic1.phpt index 0a8b501207..aea0829374 100644 --- a/ext/standard/tests/strings/sprintf_basic1.phpt +++ b/ext/standard/tests/strings/sprintf_basic1.phpt @@ -32,18 +32,10 @@ var_dump( sprintf($format3, $arg1, $arg2, $arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : basic functionality - using string format *** -string(6) "format" -string(13) "arg1 argument" -string(27) "arg1 argument arg2 argument" -string(41) "arg1 argument arg2 argument arg3 argument" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : basic functionality - using string format *** unicode(6) "format" unicode(13) "arg1 argument" unicode(27) "arg1 argument arg2 argument" unicode(41) "arg1 argument arg2 argument arg3 argument" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_basic2.phpt b/ext/standard/tests/strings/sprintf_basic2.phpt index d4de1e5e6d..baf05098a6 100644 --- a/ext/standard/tests/strings/sprintf_basic2.phpt +++ b/ext/standard/tests/strings/sprintf_basic2.phpt @@ -33,18 +33,10 @@ var_dump( sprintf($format3, $arg1, $arg2, $arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : basic functionality - using integer format *** -string(6) "format" -string(3) "111" -string(7) "111 222" -string(11) "111 222 333" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : basic functionality - using integer format *** unicode(6) "format" unicode(3) "111" unicode(7) "111 222" unicode(11) "111 222 333" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_basic3.phpt b/ext/standard/tests/strings/sprintf_basic3.phpt index 9b9bb724bd..a8e4821021 100644 --- a/ext/standard/tests/strings/sprintf_basic3.phpt +++ b/ext/standard/tests/strings/sprintf_basic3.phpt @@ -41,18 +41,7 @@ var_dump( sprintf($format33, $arg1, $arg2, $arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : basic functionality - using float format *** -string(6) "format" -string(9) "11.110000" -string(9) "11.110000" -string(19) "11.110000 22.220000" -string(19) "11.110000 22.220000" -string(29) "11.110000 22.220000 33.330000" -string(29) "11.110000 22.220000 33.330000" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : basic functionality - using float format *** unicode(6) "format" unicode(9) "11.110000" @@ -61,4 +50,4 @@ unicode(19) "11.110000 22.220000" unicode(19) "11.110000 22.220000" unicode(29) "11.110000 22.220000 33.330000" unicode(29) "11.110000 22.220000 33.330000" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_basic4.phpt b/ext/standard/tests/strings/sprintf_basic4.phpt index 2f0aa2b534..224ed53308 100644 --- a/ext/standard/tests/strings/sprintf_basic4.phpt +++ b/ext/standard/tests/strings/sprintf_basic4.phpt @@ -33,18 +33,10 @@ var_dump( sprintf($format3, $arg1, $arg2, $arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : basic functionality - using bool format *** -string(6) "format" -string(1) "1" -string(3) "1 0" -string(5) "1 0 1" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : basic functionality - using bool format *** unicode(6) "format" unicode(1) "1" unicode(3) "1 0" unicode(5) "1 0 1" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_basic5.phpt b/ext/standard/tests/strings/sprintf_basic5.phpt index f6fb040c30..75bc7a7e67 100644 --- a/ext/standard/tests/strings/sprintf_basic5.phpt +++ b/ext/standard/tests/strings/sprintf_basic5.phpt @@ -33,18 +33,10 @@ var_dump( sprintf($format3, $arg1, $arg2, $arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : basic functionality - using char format *** -string(6) "format" -string(1) "A" -string(3) "A B" -string(5) "A B C" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : basic functionality - using char format *** unicode(6) "format" unicode(1) "A" unicode(3) "A B" unicode(5) "A B C" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_basic6.phpt b/ext/standard/tests/strings/sprintf_basic6.phpt index 522ddafdad..7ec4567cbd 100644 --- a/ext/standard/tests/strings/sprintf_basic6.phpt +++ b/ext/standard/tests/strings/sprintf_basic6.phpt @@ -32,18 +32,10 @@ var_dump( sprintf($format3, $arg1, $arg2, $arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : basic functionality - using exponential format *** -string(6) "format" -string(11) "1.000000e+3" -string(23) "1.000000E+3 2.000000e+3" -string(35) "1.000000e+3 2.000000E+3 3.000000e+3" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : basic functionality - using exponential format *** unicode(6) "format" unicode(11) "1.000000e+3" unicode(23) "1.000000E+3 2.000000e+3" unicode(35) "1.000000e+3 2.000000E+3 3.000000e+3" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_basic7.phpt b/ext/standard/tests/strings/sprintf_basic7.phpt index 9b09ecf331..a2f51f9212 100644 --- a/ext/standard/tests/strings/sprintf_basic7.phpt +++ b/ext/standard/tests/strings/sprintf_basic7.phpt @@ -35,15 +35,7 @@ var_dump( sprintf($format3, $arg1, $arg2, $arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : basic functionality - using unsigned format *** -string(6) "format" -string(10) "4294966185" -string(21) "4294966185 4293732729" -string(29) "4294966185 4293732729 2345432" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : basic functionality - using unsigned format *** unicode(6) "format" unicode(10) "4294966185" diff --git a/ext/standard/tests/strings/sprintf_basic7_64bit.phpt b/ext/standard/tests/strings/sprintf_basic7_64bit.phpt index e219eb8e4e..bbc059e3f4 100644 --- a/ext/standard/tests/strings/sprintf_basic7_64bit.phpt +++ b/ext/standard/tests/strings/sprintf_basic7_64bit.phpt @@ -35,15 +35,7 @@ var_dump( sprintf($format3, $arg1, $arg2, $arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : basic functionality - using unsigned format *** -string(6) "format" -string(20) "18446744073709550505" -string(41) "18446744073709550505 18446744073708317049" -string(49) "18446744073709550505 18446744073708317049 2345432" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : basic functionality - using unsigned format *** unicode(6) "format" unicode(20) "18446744073709550505" diff --git a/ext/standard/tests/strings/sprintf_basic8.phpt b/ext/standard/tests/strings/sprintf_basic8.phpt index ab09a95724..dc3cf68646 100644 --- a/ext/standard/tests/strings/sprintf_basic8.phpt +++ b/ext/standard/tests/strings/sprintf_basic8.phpt @@ -34,15 +34,7 @@ var_dump( sprintf($format3, $arg1, $arg2, $arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : basic functionality - using octal format *** -string(6) "format" -string(2) "21" -string(14) "21 37777777431" -string(18) "21 37777777431 567" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : basic functionality - using octal format *** unicode(6) "format" unicode(2) "21" diff --git a/ext/standard/tests/strings/sprintf_basic8_64bit.phpt b/ext/standard/tests/strings/sprintf_basic8_64bit.phpt index 1d6ee9412b..ada4762464 100644 --- a/ext/standard/tests/strings/sprintf_basic8_64bit.phpt +++ b/ext/standard/tests/strings/sprintf_basic8_64bit.phpt @@ -34,15 +34,7 @@ var_dump( sprintf($format3, $arg1, $arg2, $arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : basic functionality - using octal format *** -string(6) "format" -string(2) "21" -string(25) "21 1777777777777777777431" -string(29) "21 1777777777777777777431 567" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : basic functionality - using octal format *** unicode(6) "format" unicode(2) "21" diff --git a/ext/standard/tests/strings/sprintf_basic9.phpt b/ext/standard/tests/strings/sprintf_basic9.phpt index 9fc8917899..e89d8ee91b 100644 --- a/ext/standard/tests/strings/sprintf_basic9.phpt +++ b/ext/standard/tests/strings/sprintf_basic9.phpt @@ -42,18 +42,7 @@ var_dump( sprintf($format33, $arg1, $arg2, $arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : basic functionality - using hexadecimal format *** -string(6) "format" -string(1) "b" -string(1) "B" -string(4) "b 84" -string(4) "B 84" -string(7) "b 84 b1" -string(7) "B 84 B1" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : basic functionality - using hexadecimal format *** unicode(6) "format" unicode(1) "b" @@ -62,4 +51,4 @@ unicode(4) "b 84" unicode(4) "B 84" unicode(7) "b 84 b1" unicode(7) "B 84 B1" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_error.phpt b/ext/standard/tests/strings/sprintf_error.phpt index 81e71dc6ea..1200ab27a6 100644 --- a/ext/standard/tests/strings/sprintf_error.phpt +++ b/ext/standard/tests/strings/sprintf_error.phpt @@ -39,35 +39,6 @@ echo "Done"; -- Testing sprintf() function with Zero arguments -- -Warning: Wrong parameter count for sprintf() in %s on line %d%d -bool(false) - --- Testing sprintf() function with less than expected no. of arguments -- - -Warning: sprintf(): Too few arguments in %s on line %d%d -bool(false) - -Warning: sprintf(): Too few arguments in %s on line %d%d -bool(false) - -Warning: sprintf(): Too few arguments in %s on line %d%d -bool(false) - -Warning: sprintf(): Too few arguments in %s on line %d%d -bool(false) - -Warning: sprintf(): Too few arguments in %s on line %d%d -bool(false) - -Warning: sprintf(): Too few arguments in %s on line %d%d -bool(false) -Done - ---UEXPECTF-- -*** Testing sprintf() : error conditions *** - --- Testing sprintf() function with Zero arguments -- - Warning: Wrong parameter count for sprintf() in %s on line %d bool(false) diff --git a/ext/standard/tests/strings/sprintf_f.phpt b/ext/standard/tests/strings/sprintf_f.phpt index cbe851f6a0..22f3b90ab5 100755 --- a/ext/standard/tests/strings/sprintf_f.phpt +++ b/ext/standard/tests/strings/sprintf_f.phpt @@ -22,23 +22,6 @@ var_dump(sprintf("%3.4f", 1.2345678e99)); ?> --EXPECTF-- -string(4) "1.20" -string(4) "1.20" -string(4) "1.20" -string(4) "1.20" - -string(5) " 3.40" -string(5) "3.40 " -string(5) "03.40" -string(5) "3.400" - -string(7) " -5.60" -string(7) "-5.60 " -string(7) "-005.60" -string(7) "-5.6000" - -string(105) "1234567%d.0000" ---UEXPECTF-- unicode(4) "1.20" unicode(4) "1.20" unicode(4) "1.20" diff --git a/ext/standard/tests/strings/sprintf_f_2.phpt b/ext/standard/tests/strings/sprintf_f_2.phpt index f6681939fc..2f45a8a365 100755 --- a/ext/standard/tests/strings/sprintf_f_2.phpt +++ b/ext/standard/tests/strings/sprintf_f_2.phpt @@ -81,40 +81,6 @@ $number = 362525200; var_dump(sprintf("%.3e", $number)); // outputs 3.63e+8 ?> --EXPECTREGEX-- -string\(7\) \"100\.426\" -string\(6\) \"100\.43\" -string\(3\) \"100\" -string\(3\) \"100\" -string\(3\) \"144\" -string\(3\) \"144\" -string\(34\) \"There are 100 monkeys in the world\" -string\(28\) \"The 100\.1 contains 0 monkeys\" -string\(30\) \"The world contains 100 monkeys\" -string\(76\) \"The world contains 100 monkeys. - That's a nice world full of 100 monkeys\.\" -string\(33\) \"%b = '10100111101010011010101101'\" -string\(8\) \"%c = 'A'\" -string\(15\) \"%d = '43951789'\" -string\(18\) \"%e = '4\.395179e\+7'\" -string\(15\) \"%u = '43951789'\" -(string\(17\) \"%u = '4251015507'\"|string\(27\) \"%u = '18446744073665599827'\") -string\(22\) \"%f = '43951789\.000000'\" -string\(16\) \"%o = '247523255'\" -string\(15\) \"%s = '43951789'\" -string\(14\) \"%x = '29ea6ad'\" -string\(14\) \"%X = '29EA6AD'\" -string\(17\) \"%\+d = '\+43951789'\" -string\(17\) \"%\+d = '-43951789'\" -string\(8\) \"\[monkey\]\" -string\(12\) \"\[ monkey\]\" -string\(12\) \"\[monkey \]\" -string\(12\) \"\[0000monkey\]\" -string\(12\) \"\[####monkey\]\" -string\(12\) \"\[many monke\]\" -string\(10\) \"2006-12-18\" -string\(6\) \"123\.10\" -string\(8\) \"3\.625e\+8\" ---UEXPECTREGEX-- unicode\(7\) \"100\.426\" unicode\(6\) \"100\.43\" unicode\(3\) \"100\" diff --git a/ext/standard/tests/strings/sprintf_f_3.phpt b/ext/standard/tests/strings/sprintf_f_3.phpt index 5bcb8b04dd..21078c6832 100755 --- a/ext/standard/tests/strings/sprintf_f_3.phpt +++ b/ext/standard/tests/strings/sprintf_f_3.phpt @@ -18,12 +18,6 @@ var_dump(sprintf("%01.2f", $money)); var_dump(sprintf("%.3e", $money)); ?> --EXPECT-- -string(7) "100,426" -string(6) "100,43" -string(11) "100,426000'" -string(6) "123,10" -string(8) "1.231e+2" ---UEXPECT-- unicode(7) "100,426" unicode(6) "100,43" unicode(11) "100,426000'" diff --git a/ext/standard/tests/strings/sprintf_variation1.phpt b/ext/standard/tests/strings/sprintf_variation1.phpt index c1b7871654..901ce52331 100644 --- a/ext/standard/tests/strings/sprintf_variation1.phpt +++ b/ext/standard/tests/strings/sprintf_variation1.phpt @@ -109,169 +109,6 @@ echo "Done"; *** Testing sprintf() : with unexpected values for format argument *** -- Iteration 1 -- -string(1) "0" -string(1) "0" -string(1) "0" - --- Iteration 2 -- -string(1) "1" -string(1) "1" -string(1) "1" - --- Iteration 3 -- -string(5) "12345" -string(5) "12345" -string(5) "12345" - --- Iteration 4 -- -string(5) "-2345" -string(5) "-2345" -string(5) "-2345" - --- Iteration 5 -- -string(4) "10.5" -string(4) "10.5" -string(4) "10.5" - --- Iteration 6 -- -string(5) "-10.5" -string(5) "-10.5" -string(5) "-10.5" - --- Iteration 7 -- -string(12) "101234567000" -string(12) "101234567000" -string(12) "101234567000" - --- Iteration 8 -- -string(13) "1.07654321E-9" -string(13) "1.07654321E-9" -string(13) "1.07654321E-9" - --- Iteration 9 -- -string(3) "0.5" -string(3) "0.5" -string(3) "0.5" - --- Iteration 10 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - --- Iteration 11 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - --- Iteration 12 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - --- Iteration 13 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - --- Iteration 14 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - --- Iteration 15 -- -string(0) "" -string(0) "" -string(0) "" - --- Iteration 16 -- -string(0) "" -string(0) "" -string(0) "" - --- Iteration 17 -- -string(1) "1" -string(1) "1" -string(1) "1" - --- Iteration 18 -- -string(0) "" -string(0) "" -string(0) "" - --- Iteration 19 -- -string(1) "1" -string(1) "1" -string(1) "1" - --- Iteration 20 -- -string(0) "" -string(0) "" -string(0) "" - --- Iteration 21 -- -string(0) "" -string(0) "" -string(0) "" - --- Iteration 22 -- -string(0) "" -string(0) "" -string(0) "" - --- Iteration 23 -- -string(6) "Object" -string(6) "Object" -string(6) "Object" - --- Iteration 24 -- -string(0) "" -string(0) "" -string(0) "" - --- Iteration 25 -- -string(0) "" -string(0) "" -string(0) "" - --- Iteration 26 -- -string(%d) "Resource id #%d" -string(%d) "Resource id #%d" -string(%d) "Resource id #%d" -Done ---UEXPECTF-- -*** Testing sprintf() : with unexpected values for format argument *** - --- Iteration 1 -- unicode(1) "0" unicode(1) "0" unicode(1) "0" diff --git a/ext/standard/tests/strings/sprintf_variation10.phpt b/ext/standard/tests/strings/sprintf_variation10.phpt index 26d237f05c..27e210e45b 100644 --- a/ext/standard/tests/strings/sprintf_variation10.phpt +++ b/ext/standard/tests/strings/sprintf_variation10.phpt @@ -52,281 +52,7 @@ foreach($integer_values as $int_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : float formats with integer values *** - --- Iteration 1 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 2 -- -string(8) "1.000000" -string(1) "f" -string(8) "1.000000" -string(1) "f" -string(9) " 1.000000" -string(9) "1.000000 " -string(9) " 1.000000" -string(9) " -1.000000" -string(8) "1.000000" -string(30) " 1.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 3 -- -string(9) "-1.000000" -string(1) "f" -string(9) "-1.000000" -string(1) "f" -string(10) " -1.000000" -string(10) "-1.000000 " -string(10) " -1.000000" -string(10) " --1.000000" -string(9) "-1.000000" -string(30) " -1.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 4 -- -string(18) "-2147483648.000000" -string(1) "f" -string(18) "-2147483648.000000" -string(1) "f" -string(19) " -2147483648.000000" -string(19) "-2147483648.000000 " -string(19) " -2147483648.000000" -string(19) " --2147483648.000000" -string(18) "-2147483648.000000" -string(30) " -2147483648.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 5 -- -string(18) "-2147483647.000000" -string(1) "f" -string(18) "-2147483647.000000" -string(1) "f" -string(19) " -2147483647.000000" -string(19) "-2147483647.000000 " -string(19) " -2147483647.000000" -string(19) " --2147483647.000000" -string(18) "-2147483647.000000" -string(30) " -2147483647.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 6 -- -string(17) "2147483647.000000" -string(1) "f" -string(17) "2147483647.000000" -string(1) "f" -string(18) " 2147483647.000000" -string(18) "2147483647.000000 " -string(18) " 2147483647.000000" -string(18) " -2147483647.000000" -string(17) "2147483647.000000" -string(30) " 2147483647.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 7 -- -string(17) "2147483640.000000" -string(1) "f" -string(17) "2147483640.000000" -string(1) "f" -string(18) " 2147483640.000000" -string(18) "2147483640.000000 " -string(18) " 2147483640.000000" -string(18) " -2147483640.000000" -string(17) "2147483640.000000" -string(30) " 2147483640.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 8 -- -string(11) "4667.000000" -string(1) "f" -string(11) "4667.000000" -string(1) "f" -string(12) " 4667.000000" -string(12) "4667.000000 " -string(12) " 4667.000000" -string(12) " -4667.000000" -string(11) "4667.000000" -string(30) " 4667.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 9 -- -string(11) "4779.000000" -string(1) "f" -string(11) "4779.000000" -string(1) "f" -string(12) " 4779.000000" -string(12) "4779.000000 " -string(12) " 4779.000000" -string(12) " -4779.000000" -string(11) "4779.000000" -string(30) " 4779.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 10 -- -string(11) "4095.000000" -string(1) "f" -string(11) "4095.000000" -string(1) "f" -string(12) " 4095.000000" -string(12) "4095.000000 " -string(12) " 4095.000000" -string(12) " -4095.000000" -string(11) "4095.000000" -string(30) " 4095.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 11 -- -string(10) "250.000000" -string(1) "f" -string(10) "250.000000" -string(1) "f" -string(11) " 250.000000" -string(11) "250.000000 " -string(11) " 250.000000" -string(11) " -250.000000" -string(10) "250.000000" -string(30) " 250.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 12 -- -string(18) "-2147483648.000000" -string(1) "f" -string(18) "-2147483648.000000" -string(1) "f" -string(19) " -2147483648.000000" -string(19) "-2147483648.000000 " -string(19) " -2147483648.000000" -string(19) " --2147483648.000000" -string(18) "-2147483648.000000" -string(30) " -2147483648.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 13 -- -string(17) "2147483647.000000" -string(1) "f" -string(17) "2147483647.000000" -string(1) "f" -string(18) " 2147483647.000000" -string(18) "2147483647.000000 " -string(18) " 2147483647.000000" -string(18) " -2147483647.000000" -string(17) "2147483647.000000" -string(30) " 2147483647.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 14 -- -string(17) "2147483647.000000" -string(1) "f" -string(17) "2147483647.000000" -string(1) "f" -string(18) " 2147483647.000000" -string(18) "2147483647.000000 " -string(18) " 2147483647.000000" -string(18) " -2147483647.000000" -string(17) "2147483647.000000" -string(30) " 2147483647.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 15 -- -string(9) "83.000000" -string(1) "f" -string(9) "83.000000" -string(1) "f" -string(10) " 83.000000" -string(10) "83.000000 " -string(10) " 83.000000" -string(10) " -83.000000" -string(9) "83.000000" -string(30) " 83.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 16 -- -string(8) "1.000000" -string(1) "f" -string(8) "1.000000" -string(1) "f" -string(9) " 1.000000" -string(9) "1.000000 " -string(9) " 1.000000" -string(9) " -1.000000" -string(8) "1.000000" -string(30) " 1.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 17 -- -string(18) "-2147483648.000000" -string(1) "f" -string(18) "-2147483648.000000" -string(1) "f" -string(19) " -2147483648.000000" -string(19) "-2147483648.000000 " -string(19) " -2147483648.000000" -string(19) " --2147483648.000000" -string(18) "-2147483648.000000" -string(30) " -2147483648.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 18 -- -string(17) "2147483647.000000" -string(1) "f" -string(17) "2147483647.000000" -string(1) "f" -string(18) " 2147483647.000000" -string(18) "2147483647.000000 " -string(18) " 2147483647.000000" -string(18) " -2147483647.000000" -string(17) "2147483647.000000" -string(30) " 2147483647.000000" -string(4) "0-9]" -string(1) "f" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : float formats with integer values *** -- Iteration 1 -- @@ -598,4 +324,4 @@ unicode(17) "2147483647.000000" unicode(30) " 2147483647.000000" unicode(4) "0-9]" unicode(1) "f" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation11.phpt b/ext/standard/tests/strings/sprintf_variation11.phpt index 9a9a3482bc..656899e97a 100644 --- a/ext/standard/tests/strings/sprintf_variation11.phpt +++ b/ext/standard/tests/strings/sprintf_variation11.phpt @@ -48,39 +48,6 @@ echo "Done"; *** Testing sprintf() : float formats with resource values *** -- Iteration 1 -- -string(%d) "%d.000000" -string(1) "f" -string(%d) "%d.000000" -string(1) "f" -string(%d) " %d.000000" -string(%d) "%d.000000 " -string(%d) " %d.000000" -string(%d) " -%d.000000" -string(%d) "%d.000000" -string(%d) "%s%d.000000" -string(%d) "0-9]" -string(1) "f" - --- Iteration 2 -- -string(%d) "%d.000000" -string(1) "f" -string(%d) "%d.000000" -string(1) "f" -string(%d) " %d.000000" -string(%d) "%d.000000 " -string(%d) " %d.000000" -string(%d) " -%d.000000" -string(%d) "%d.000000" -string(%d) "%s%d.000000" -string(%d) "0-9]" -string(1) "f" -Done ---UEXPECTF-- -*** Testing sprintf() : float formats with resource values *** - --- Iteration 1 -- unicode(%d) "%d.000000" unicode(1) "f" unicode(%d) "%d.000000" diff --git a/ext/standard/tests/strings/sprintf_variation12.phpt b/ext/standard/tests/strings/sprintf_variation12.phpt index d8e6ede15a..a10e09a113 100644 --- a/ext/standard/tests/strings/sprintf_variation12.phpt +++ b/ext/standard/tests/strings/sprintf_variation12.phpt @@ -48,221 +48,7 @@ foreach($array_values as $array_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : float formats with arrays *** - --- Iteration 1 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 2 -- -string(8) "1.000000" -string(1) "f" -string(8) "1.000000" -string(1) "f" -string(9) " 1.000000" -string(9) "1.000000 " -string(9) " 1.000000" -string(9) " -1.000000" -string(8) "1.000000" -string(30) " 1.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 3 -- -string(8) "1.000000" -string(1) "f" -string(8) "1.000000" -string(1) "f" -string(9) " 1.000000" -string(9) "1.000000 " -string(9) " 1.000000" -string(9) " -1.000000" -string(8) "1.000000" -string(30) " 1.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 4 -- -string(8) "1.000000" -string(1) "f" -string(8) "1.000000" -string(1) "f" -string(9) " 1.000000" -string(9) "1.000000 " -string(9) " 1.000000" -string(9) " -1.000000" -string(8) "1.000000" -string(30) " 1.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 5 -- -string(8) "1.000000" -string(1) "f" -string(8) "1.000000" -string(1) "f" -string(9) " 1.000000" -string(9) "1.000000 " -string(9) " 1.000000" -string(9) " -1.000000" -string(8) "1.000000" -string(30) " 1.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 6 -- -string(8) "1.000000" -string(1) "f" -string(8) "1.000000" -string(1) "f" -string(9) " 1.000000" -string(9) "1.000000 " -string(9) " 1.000000" -string(9) " -1.000000" -string(8) "1.000000" -string(30) " 1.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 7 -- -string(8) "1.000000" -string(1) "f" -string(8) "1.000000" -string(1) "f" -string(9) " 1.000000" -string(9) "1.000000 " -string(9) " 1.000000" -string(9) " -1.000000" -string(8) "1.000000" -string(30) " 1.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 8 -- -string(8) "1.000000" -string(1) "f" -string(8) "1.000000" -string(1) "f" -string(9) " 1.000000" -string(9) "1.000000 " -string(9) " 1.000000" -string(9) " -1.000000" -string(8) "1.000000" -string(30) " 1.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 9 -- -string(8) "1.000000" -string(1) "f" -string(8) "1.000000" -string(1) "f" -string(9) " 1.000000" -string(9) "1.000000 " -string(9) " 1.000000" -string(9) " -1.000000" -string(8) "1.000000" -string(30) " 1.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 10 -- -string(8) "1.000000" -string(1) "f" -string(8) "1.000000" -string(1) "f" -string(9) " 1.000000" -string(9) "1.000000 " -string(9) " 1.000000" -string(9) " -1.000000" -string(8) "1.000000" -string(30) " 1.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 11 -- -string(8) "1.000000" -string(1) "f" -string(8) "1.000000" -string(1) "f" -string(9) " 1.000000" -string(9) "1.000000 " -string(9) " 1.000000" -string(9) " -1.000000" -string(8) "1.000000" -string(30) " 1.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 12 -- -string(8) "1.000000" -string(1) "f" -string(8) "1.000000" -string(1) "f" -string(9) " 1.000000" -string(9) "1.000000 " -string(9) " 1.000000" -string(9) " -1.000000" -string(8) "1.000000" -string(30) " 1.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 13 -- -string(8) "1.000000" -string(1) "f" -string(8) "1.000000" -string(1) "f" -string(9) " 1.000000" -string(9) "1.000000 " -string(9) " 1.000000" -string(9) " -1.000000" -string(8) "1.000000" -string(30) " 1.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 14 -- -string(8) "1.000000" -string(1) "f" -string(8) "1.000000" -string(1) "f" -string(9) " 1.000000" -string(9) "1.000000 " -string(9) " 1.000000" -string(9) " -1.000000" -string(8) "1.000000" -string(30) " 1.000000" -string(4) "0-9]" -string(1) "f" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : float formats with arrays *** -- Iteration 1 -- @@ -474,4 +260,4 @@ unicode(8) "1.000000" unicode(30) " 1.000000" unicode(4) "0-9]" unicode(1) "f" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation13.phpt b/ext/standard/tests/strings/sprintf_variation13.phpt index 2d48cf6a0c..7f0f07804f 100644 --- a/ext/standard/tests/strings/sprintf_variation13.phpt +++ b/ext/standard/tests/strings/sprintf_variation13.phpt @@ -53,311 +53,7 @@ foreach($string_values as $string_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : float formats with strings *** - --- Iteration 1 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 2 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 3 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 4 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 5 -- -string(8) "1.000000" -string(1) "f" -string(8) "1.000000" -string(1) "f" -string(9) " 1.000000" -string(9) "1.000000 " -string(9) " 1.000000" -string(9) " -1.000000" -string(8) "1.000000" -string(30) " 1.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 6 -- -string(8) "1.000000" -string(1) "f" -string(8) "1.000000" -string(1) "f" -string(9) " 1.000000" -string(9) "1.000000 " -string(9) " 1.000000" -string(9) " -1.000000" -string(8) "1.000000" -string(30) " 1.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 7 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 8 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 9 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 10 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 11 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 12 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 13 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 14 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 15 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 16 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 17 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 18 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 19 -- -string(10) "123.456000" -string(1) "f" -string(10) "123.456000" -string(1) "f" -string(11) " 123.456000" -string(11) "123.456000 " -string(11) " 123.456000" -string(11) " -123.456000" -string(10) "123.456000" -string(30) " 123.456000" -string(4) "0-9]" -string(1) "f" - --- Iteration 20 -- -string(10) "123.456000" -string(1) "f" -string(10) "123.456000" -string(1) "f" -string(11) " 123.456000" -string(11) "123.456000 " -string(11) " 123.456000" -string(11) " -123.456000" -string(10) "123.456000" -string(30) " 123.456000" -string(4) "0-9]" -string(1) "f" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : float formats with strings *** -- Iteration 1 -- @@ -659,4 +355,4 @@ unicode(10) "123.456000" unicode(30) " 123.456000" unicode(4) "0-9]" unicode(1) "f" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation14.phpt b/ext/standard/tests/strings/sprintf_variation14.phpt index 740dcaabe2..c789406dd1 100644 --- a/ext/standard/tests/strings/sprintf_variation14.phpt +++ b/ext/standard/tests/strings/sprintf_variation14.phpt @@ -37,71 +37,7 @@ foreach($boolean_values as $boolean_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : float formats with boolean values *** - --- Iteration 1 -- -string(8) "1.000000" -string(1) "f" -string(8) "1.000000" -string(1) "f" -string(9) " 1.000000" -string(9) "1.000000 " -string(9) " 1.000000" -string(9) " -1.000000" -string(8) "1.000000" -string(30) " 1.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 2 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 3 -- -string(8) "1.000000" -string(1) "f" -string(8) "1.000000" -string(1) "f" -string(9) " 1.000000" -string(9) "1.000000 " -string(9) " 1.000000" -string(9) " -1.000000" -string(8) "1.000000" -string(30) " 1.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 4 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : float formats with boolean values *** -- Iteration 1 -- @@ -163,4 +99,4 @@ unicode(8) "0.000000" unicode(30) " 0.000000" unicode(4) "0-9]" unicode(1) "f" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation15.phpt b/ext/standard/tests/strings/sprintf_variation15.phpt Binary files differindex acc2af004b..77ffd41373 100644 --- a/ext/standard/tests/strings/sprintf_variation15.phpt +++ b/ext/standard/tests/strings/sprintf_variation15.phpt diff --git a/ext/standard/tests/strings/sprintf_variation16.phpt b/ext/standard/tests/strings/sprintf_variation16.phpt index 2fb5cbf0e2..f0db628679 100644 --- a/ext/standard/tests/strings/sprintf_variation16.phpt +++ b/ext/standard/tests/strings/sprintf_variation16.phpt @@ -48,235 +48,7 @@ foreach($float_values as $float_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : string formats with float values *** - --- Iteration 1 -- -string(11) "-2147483649" -string(1) "s" -string(11) "-2147483649" -string(1) "s" -string(12) " -2147483649" -string(12) "-2147483649 " -string(12) " -2147483649" -string(12) " --2147483649" -string(11) "-2147483649" -string(30) " -2147483649" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 2 -- -string(10) "2147483648" -string(1) "s" -string(10) "2147483648" -string(1) "s" -string(11) " 2147483648" -string(11) "2147483648 " -string(11) " 2147483648" -string(11) " -2147483648" -string(10) "2147483648" -string(30) " 2147483648" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 3 -- -string(11) "-2147483649" -string(1) "s" -string(11) "-2147483649" -string(1) "s" -string(12) " -2147483649" -string(12) "-2147483649 " -string(12) " -2147483649" -string(12) " --2147483649" -string(11) "-2147483649" -string(30) " -2147483649" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 4 -- -string(11) "34359738369" -string(1) "s" -string(11) "34359738369" -string(1) "s" -string(12) " 34359738369" -string(12) "34359738369 " -string(12) " 34359738369" -string(12) " -34359738369" -string(11) "34359738369" -string(30) " 34359738369" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 5 -- -string(10) "2147483649" -string(1) "s" -string(10) "2147483649" -string(1) "s" -string(11) " 2147483649" -string(11) "2147483649 " -string(11) " 2147483649" -string(11) " -2147483649" -string(10) "2147483649" -string(30) " 2147483649" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 6 -- -string(11) "-2147483649" -string(1) "s" -string(11) "-2147483649" -string(1) "s" -string(12) " -2147483649" -string(12) "-2147483649 " -string(12) " -2147483649" -string(12) " --2147483649" -string(11) "-2147483649" -string(30) " -2147483649" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 7 -- -string(1) "0" -string(1) "s" -string(1) "0" -string(1) "s" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 8 -- -string(4) "-0.1" -string(1) "s" -string(4) "-0.1" -string(1) "s" -string(5) " -0.1" -string(5) "-0.1 " -string(5) " -0.1" -string(5) " --0.1" -string(4) "-0.1" -string(30) " -0.1" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 9 -- -string(1) "1" -string(1) "s" -string(1) "1" -string(1) "s" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 10 -- -string(4) "1000" -string(1) "s" -string(4) "1000" -string(1) "s" -string(5) " 1000" -string(5) "1000 " -string(5) " 1000" -string(5) " -1000" -string(4) "1000" -string(30) " 1000" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 11 -- -string(4) "-100" -string(1) "s" -string(4) "-100" -string(1) "s" -string(5) " -100" -string(5) "-100 " -string(5) " -100" -string(5) " --100" -string(4) "-100" -string(30) " -100" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 12 -- -string(9) "123456000" -string(1) "s" -string(9) "123456000" -string(1) "s" -string(10) " 123456000" -string(10) "123456000 " -string(10) " 123456000" -string(10) " -123456000" -string(9) "123456000" -string(30) " 123456000" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 13 -- -string(11) "-1234567000" -string(1) "s" -string(11) "-1234567000" -string(1) "s" -string(12) " -1234567000" -string(12) "-1234567000 " -string(12) " -1234567000" -string(12) " --1234567000" -string(11) "-1234567000" -string(30) " -1234567000" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 14 -- -string(2) "10" -string(1) "s" -string(2) "10" -string(1) "s" -string(3) " 10" -string(3) "10 " -string(3) " 10" -string(3) " -10" -string(4) " 10" -string(30) " 10" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 15 -- -string(7) "1012300" -string(1) "s" -string(7) "1012300" -string(1) "s" -string(8) " 1012300" -string(8) "1012300 " -string(8) " 1012300" -string(8) " -1012300" -string(7) "1012300" -string(30) " 1012300" -string(10) "a-zA-Z0-9]" -string(1) "s" -Done ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : string formats with float values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation17.phpt b/ext/standard/tests/strings/sprintf_variation17.phpt index 8dc986d46f..d14c9ee6b6 100644 --- a/ext/standard/tests/strings/sprintf_variation17.phpt +++ b/ext/standard/tests/strings/sprintf_variation17.phpt @@ -47,39 +47,6 @@ echo "Done"; *** Testing sprintf() : string formats with resource values *** -- Iteration 1 -- -string(%d) "Resource id #%d" -string(1) "s" -string(%d) "Resource id #%d" -string(1) "s" -string(%d) " Resource id #%d" -string(%d) "Resource id #%d " -string(%d) " Resource id #%d" -string(%d) " -Resource id #%d" -string(%d) "Resource id #%d" -string(%d) "%sResource id #%d" -string(%d) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 2 -- -string(%d) "Resource id #%d" -string(1) "s" -string(%d) "Resource id #%d" -string(1) "s" -string(%d) " Resource id #%d" -string(%d) "Resource id #%d " -string(%d) " Resource id #%d" -string(%d) " -Resource id #%d" -string(%d) "Resource id #%d" -string(%d) "%sResource id #%d" -string(%d) "a-zA-Z0-9]" -string(1) "s" -Done ---UEXPECTF-- -*** Testing sprintf() : string formats with resource values *** - --- Iteration 1 -- unicode(%d) "Resource id #%d" unicode(1) "s" unicode(%d) "Resource id #%d" diff --git a/ext/standard/tests/strings/sprintf_variation18.phpt b/ext/standard/tests/strings/sprintf_variation18.phpt index e8893b7188..6fdfa83d70 100644 --- a/ext/standard/tests/strings/sprintf_variation18.phpt +++ b/ext/standard/tests/strings/sprintf_variation18.phpt @@ -47,190 +47,7 @@ foreach($array_values as $array_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : string formats with array values *** - --- Iteration 1 -- -string(5) "Array" -string(1) "s" -string(5) "Array" -string(1) "s" -string(6) " Array" -string(6) "Array " -string(6) " Array" -string(6) " -Array" -string(5) "Array" -string(30) " Array" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 2 -- -string(5) "Array" -string(1) "s" -string(5) "Array" -string(1) "s" -string(6) " Array" -string(6) "Array " -string(6) " Array" -string(6) " -Array" -string(5) "Array" -string(30) " Array" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 3 -- -string(5) "Array" -string(1) "s" -string(5) "Array" -string(1) "s" -string(6) " Array" -string(6) "Array " -string(6) " Array" -string(6) " -Array" -string(5) "Array" -string(30) " Array" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 4 -- -string(5) "Array" -string(1) "s" -string(5) "Array" -string(1) "s" -string(6) " Array" -string(6) "Array " -string(6) " Array" -string(6) " -Array" -string(5) "Array" -string(30) " Array" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 5 -- -string(5) "Array" -string(1) "s" -string(5) "Array" -string(1) "s" -string(6) " Array" -string(6) "Array " -string(6) " Array" -string(6) " -Array" -string(5) "Array" -string(30) " Array" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 6 -- -string(5) "Array" -string(1) "s" -string(5) "Array" -string(1) "s" -string(6) " Array" -string(6) "Array " -string(6) " Array" -string(6) " -Array" -string(5) "Array" -string(30) " Array" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 7 -- -string(5) "Array" -string(1) "s" -string(5) "Array" -string(1) "s" -string(6) " Array" -string(6) "Array " -string(6) " Array" -string(6) " -Array" -string(5) "Array" -string(30) " Array" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 8 -- -string(5) "Array" -string(1) "s" -string(5) "Array" -string(1) "s" -string(6) " Array" -string(6) "Array " -string(6) " Array" -string(6) " -Array" -string(5) "Array" -string(30) " Array" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 9 -- -string(5) "Array" -string(1) "s" -string(5) "Array" -string(1) "s" -string(6) " Array" -string(6) "Array " -string(6) " Array" -string(6) " -Array" -string(5) "Array" -string(30) " Array" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 10 -- -string(5) "Array" -string(1) "s" -string(5) "Array" -string(1) "s" -string(6) " Array" -string(6) "Array " -string(6) " Array" -string(6) " -Array" -string(5) "Array" -string(30) " Array" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 11 -- -string(5) "Array" -string(1) "s" -string(5) "Array" -string(1) "s" -string(6) " Array" -string(6) "Array " -string(6) " Array" -string(6) " -Array" -string(5) "Array" -string(30) " Array" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 12 -- -string(5) "Array" -string(1) "s" -string(5) "Array" -string(1) "s" -string(6) " Array" -string(6) "Array " -string(6) " Array" -string(6) " -Array" -string(5) "Array" -string(30) " Array" -string(10) "a-zA-Z0-9]" -string(1) "s" -Done ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : string formats with array values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation19.phpt b/ext/standard/tests/strings/sprintf_variation19.phpt index 4d89bc3828..1c82153443 100644 --- a/ext/standard/tests/strings/sprintf_variation19.phpt +++ b/ext/standard/tests/strings/sprintf_variation19.phpt @@ -51,281 +51,7 @@ foreach($integer_values as $integer_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : string formats with integer values *** - --- Iteration 1 -- -string(1) "0" -string(1) "s" -string(1) "0" -string(1) "s" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 2 -- -string(1) "1" -string(1) "s" -string(1) "1" -string(1) "s" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 3 -- -string(2) "-1" -string(1) "s" -string(2) "-1" -string(1) "s" -string(3) " -1" -string(3) "-1 " -string(3) " -1" -string(3) " --1" -string(4) " -1" -string(30) " -1" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 4 -- -string(11) "-2147483648" -string(1) "s" -string(11) "-2147483648" -string(1) "s" -string(12) " -2147483648" -string(12) "-2147483648 " -string(12) " -2147483648" -string(12) " --2147483648" -string(11) "-2147483648" -string(30) " -2147483648" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 5 -- -string(11) "-2147483647" -string(1) "s" -string(11) "-2147483647" -string(1) "s" -string(12) " -2147483647" -string(12) "-2147483647 " -string(12) " -2147483647" -string(12) " --2147483647" -string(11) "-2147483647" -string(30) " -2147483647" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 6 -- -string(10) "2147483647" -string(1) "s" -string(10) "2147483647" -string(1) "s" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 7 -- -string(10) "2147483640" -string(1) "s" -string(10) "2147483640" -string(1) "s" -string(11) " 2147483640" -string(11) "2147483640 " -string(11) " 2147483640" -string(11) " -2147483640" -string(10) "2147483640" -string(30) " 2147483640" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 8 -- -string(4) "4667" -string(1) "s" -string(4) "4667" -string(1) "s" -string(5) " 4667" -string(5) "4667 " -string(5) " 4667" -string(5) " -4667" -string(4) "4667" -string(30) " 4667" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 9 -- -string(4) "4779" -string(1) "s" -string(4) "4779" -string(1) "s" -string(5) " 4779" -string(5) "4779 " -string(5) " 4779" -string(5) " -4779" -string(4) "4779" -string(30) " 4779" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 10 -- -string(4) "4095" -string(1) "s" -string(4) "4095" -string(1) "s" -string(5) " 4095" -string(5) "4095 " -string(5) " 4095" -string(5) " -4095" -string(4) "4095" -string(30) " 4095" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 11 -- -string(3) "250" -string(1) "s" -string(3) "250" -string(1) "s" -string(4) " 250" -string(4) "250 " -string(4) " 250" -string(4) " -250" -string(4) " 250" -string(30) " 250" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 12 -- -string(11) "-2147483648" -string(1) "s" -string(11) "-2147483648" -string(1) "s" -string(12) " -2147483648" -string(12) "-2147483648 " -string(12) " -2147483648" -string(12) " --2147483648" -string(11) "-2147483648" -string(30) " -2147483648" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 13 -- -string(10) "2147483647" -string(1) "s" -string(10) "2147483647" -string(1) "s" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 14 -- -string(10) "2147483647" -string(1) "s" -string(10) "2147483647" -string(1) "s" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 15 -- -string(2) "83" -string(1) "s" -string(2) "83" -string(1) "s" -string(3) " 83" -string(3) "83 " -string(3) " 83" -string(3) " -83" -string(4) " 83" -string(30) " 83" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 16 -- -string(1) "1" -string(1) "s" -string(1) "1" -string(1) "s" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 17 -- -string(11) "-2147483648" -string(1) "s" -string(11) "-2147483648" -string(1) "s" -string(12) " -2147483648" -string(12) "-2147483648 " -string(12) " -2147483648" -string(12) " --2147483648" -string(11) "-2147483648" -string(30) " -2147483648" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 18 -- -string(10) "2147483647" -string(1) "s" -string(10) "2147483647" -string(1) "s" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(10) "a-zA-Z0-9]" -string(1) "s" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : string formats with integer values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation2.phpt b/ext/standard/tests/strings/sprintf_variation2.phpt index f4fc3f4d05..03f6fed7fb 100644 --- a/ext/standard/tests/strings/sprintf_variation2.phpt +++ b/ext/standard/tests/strings/sprintf_variation2.phpt @@ -108,121 +108,6 @@ echo "Done"; *** Testing sprintf() : with different types of values passed for arg1 argument *** -- Iteration 1 -- -string(1) "0" -string(1) "0" - --- Iteration 2 -- -string(1) "1" -string(1) "1" - --- Iteration 3 -- -string(5) "12345" -string(5) "12345" - --- Iteration 4 -- -string(5) "-2345" -string(5) "-2345" - --- Iteration 5 -- -string(4) "10.5" -string(4) "10.5" - --- Iteration 6 -- -string(5) "-10.5" -string(5) "-10.5" - --- Iteration 7 -- -string(12) "101234567000" -string(12) "101234567000" - --- Iteration 8 -- -string(13) "1.07654321E-9" -string(13) "1.07654321E-9" - --- Iteration 9 -- -string(3) "0.5" -string(3) "0.5" - --- Iteration 10 -- -string(5) "Array" -string(5) "Array" - --- Iteration 11 -- -string(5) "Array" -string(5) "Array" - --- Iteration 12 -- -string(5) "Array" -string(5) "Array" - --- Iteration 13 -- -string(5) "Array" -string(5) "Array" - --- Iteration 14 -- -string(5) "Array" -string(5) "Array" - --- Iteration 15 -- -string(0) "" -string(0) "" - --- Iteration 16 -- -string(0) "" -string(0) "" - --- Iteration 17 -- -string(1) "1" -string(1) "1" - --- Iteration 18 -- -string(0) "" -string(0) "" - --- Iteration 19 -- -string(1) "1" -string(1) "1" - --- Iteration 20 -- -string(0) "" -string(0) "" - --- Iteration 21 -- -string(0) "" -string(0) "" - --- Iteration 22 -- -string(0) "" -string(0) "" - --- Iteration 23 -- -string(6) "string" -string(6) "string" - --- Iteration 24 -- -string(6) "string" -string(6) "string" - --- Iteration 25 -- -string(6) "Object" -string(6) "Object" - --- Iteration 26 -- -string(0) "" -string(0) "" - --- Iteration 27 -- -string(0) "" -string(0) "" - --- Iteration 28 -- -string(%d) "Resource id #%d" -string(%d) "Resource id #%d" -Done ---UEXPECTF-- -*** Testing sprintf() : with different types of values passed for arg1 argument *** - --- Iteration 1 -- unicode(1) "0" unicode(1) "0" diff --git a/ext/standard/tests/strings/sprintf_variation20.phpt b/ext/standard/tests/strings/sprintf_variation20.phpt index b58d3ef73a..0030dae15c 100644 --- a/ext/standard/tests/strings/sprintf_variation20.phpt +++ b/ext/standard/tests/strings/sprintf_variation20.phpt @@ -37,71 +37,7 @@ foreach($boolean_values as $boolean_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : string formats with boolean values *** - --- Iteration 1 -- -string(1) "1" -string(1) "s" -string(1) "1" -string(1) "s" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 2 -- -string(0) "" -string(1) "s" -string(0) "" -string(1) "s" -string(1) " " -string(1) " " -string(1) " " -string(1) " -" -string(4) " " -string(30) " " -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 3 -- -string(1) "1" -string(1) "s" -string(1) "1" -string(1) "s" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "a-zA-Z0-9]" -string(1) "s" - --- Iteration 4 -- -string(0) "" -string(1) "s" -string(0) "" -string(1) "s" -string(1) " " -string(1) " " -string(1) " " -string(1) " -" -string(4) " " -string(30) " " -string(10) "a-zA-Z0-9]" -string(1) "s" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : string formats with boolean values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation21.phpt b/ext/standard/tests/strings/sprintf_variation21.phpt Binary files differindex e750944246..9d019cc2f0 100644 --- a/ext/standard/tests/strings/sprintf_variation21.phpt +++ b/ext/standard/tests/strings/sprintf_variation21.phpt diff --git a/ext/standard/tests/strings/sprintf_variation22.phpt b/ext/standard/tests/strings/sprintf_variation22.phpt Binary files differindex e319fe924b..ad10e5bf48 100644 --- a/ext/standard/tests/strings/sprintf_variation22.phpt +++ b/ext/standard/tests/strings/sprintf_variation22.phpt diff --git a/ext/standard/tests/strings/sprintf_variation23.phpt b/ext/standard/tests/strings/sprintf_variation23.phpt index 4164ae1f1d..498048cff3 100644 --- a/ext/standard/tests/strings/sprintf_variation23.phpt +++ b/ext/standard/tests/strings/sprintf_variation23.phpt @@ -43,41 +43,7 @@ fclose($dfp); echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : char formats with resource values *** - --- Iteration 1 -- -string(1) "" -string(1) "c" -string(1) "" -string(1) "c" -string(2) " " -string(2) " " -string(2) " " -string(2) " -" -string(1) "" -string(1) "" -string(11) "a-bA-B@#$&]" -string(1) "c" - --- Iteration 2 -- -string(1) "" -string(1) "c" -string(1) "" -string(1) "c" -string(2) " " -string(2) " " -string(2) " " -string(2) " -" -string(1) "" -string(1) "" -string(11) "a-bA-B@#$&]" -string(1) "c" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : char formats with resource values *** -- Iteration 1 -- @@ -109,4 +75,4 @@ unicode(1) "" unicode(1) "" unicode(11) "a-bA-B@#$&]" unicode(1) "c" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation24.phpt b/ext/standard/tests/strings/sprintf_variation24.phpt Binary files differindex 48efd6a360..5aefd6df4c 100644 --- a/ext/standard/tests/strings/sprintf_variation24.phpt +++ b/ext/standard/tests/strings/sprintf_variation24.phpt diff --git a/ext/standard/tests/strings/sprintf_variation25.phpt b/ext/standard/tests/strings/sprintf_variation25.phpt Binary files differindex 1543f91398..038b499692 100644 --- a/ext/standard/tests/strings/sprintf_variation25.phpt +++ b/ext/standard/tests/strings/sprintf_variation25.phpt diff --git a/ext/standard/tests/strings/sprintf_variation26.phpt b/ext/standard/tests/strings/sprintf_variation26.phpt Binary files differindex 05af686d6a..982596d264 100644 --- a/ext/standard/tests/strings/sprintf_variation26.phpt +++ b/ext/standard/tests/strings/sprintf_variation26.phpt diff --git a/ext/standard/tests/strings/sprintf_variation27.phpt b/ext/standard/tests/strings/sprintf_variation27.phpt Binary files differindex 8f8eacd6ae..113fdbe662 100644 --- a/ext/standard/tests/strings/sprintf_variation27.phpt +++ b/ext/standard/tests/strings/sprintf_variation27.phpt diff --git a/ext/standard/tests/strings/sprintf_variation28.phpt b/ext/standard/tests/strings/sprintf_variation28.phpt index 19a8894759..5154e923b0 100644 --- a/ext/standard/tests/strings/sprintf_variation28.phpt +++ b/ext/standard/tests/strings/sprintf_variation28.phpt @@ -53,281 +53,7 @@ foreach($integer_values as $integer_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : octal formats with integer values *** - --- Iteration 1 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 2 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 3 -- -string(11) "37777777777" -string(1) "o" -string(11) "37777777777" -string(1) "o" -string(12) " 37777777777" -string(12) "37777777777 " -string(12) " 37777777777" -string(12) " -37777777777" -string(11) "37777777777" -string(30) " 37777777777" -string(4) "0-7]" -string(1) "o" - --- Iteration 4 -- -string(11) "20000000000" -string(1) "o" -string(11) "20000000000" -string(1) "o" -string(12) " 20000000000" -string(12) "20000000000 " -string(12) " 20000000000" -string(12) " -20000000000" -string(11) "20000000000" -string(30) " 20000000000" -string(4) "0-7]" -string(1) "o" - --- Iteration 5 -- -string(11) "20000000001" -string(1) "o" -string(11) "20000000001" -string(1) "o" -string(12) " 20000000001" -string(12) "20000000001 " -string(12) " 20000000001" -string(12) " -20000000001" -string(11) "20000000001" -string(30) " 20000000001" -string(4) "0-7]" -string(1) "o" - --- Iteration 6 -- -string(11) "17777777777" -string(1) "o" -string(11) "17777777777" -string(1) "o" -string(12) " 17777777777" -string(12) "17777777777 " -string(12) " 17777777777" -string(12) " -17777777777" -string(11) "17777777777" -string(30) " 17777777777" -string(4) "0-7]" -string(1) "o" - --- Iteration 7 -- -string(11) "17777777770" -string(1) "o" -string(11) "17777777770" -string(1) "o" -string(12) " 17777777770" -string(12) "17777777770 " -string(12) " 17777777770" -string(12) " -17777777770" -string(11) "17777777770" -string(30) " 17777777770" -string(4) "0-7]" -string(1) "o" - --- Iteration 8 -- -string(5) "11073" -string(1) "o" -string(5) "11073" -string(1) "o" -string(6) " 11073" -string(6) "11073 " -string(6) " 11073" -string(6) " -11073" -string(5) "11073" -string(30) " 11073" -string(4) "0-7]" -string(1) "o" - --- Iteration 9 -- -string(5) "11253" -string(1) "o" -string(5) "11253" -string(1) "o" -string(6) " 11253" -string(6) "11253 " -string(6) " 11253" -string(6) " -11253" -string(5) "11253" -string(30) " 11253" -string(4) "0-7]" -string(1) "o" - --- Iteration 10 -- -string(4) "7777" -string(1) "o" -string(4) "7777" -string(1) "o" -string(5) " 7777" -string(5) "7777 " -string(5) " 7777" -string(5) " -7777" -string(4) "7777" -string(30) " 7777" -string(4) "0-7]" -string(1) "o" - --- Iteration 11 -- -string(3) "372" -string(1) "o" -string(3) "372" -string(1) "o" -string(4) " 372" -string(4) "372 " -string(4) " 372" -string(4) " -372" -string(4) " 372" -string(30) " 372" -string(4) "0-7]" -string(1) "o" - --- Iteration 12 -- -string(11) "20000000000" -string(1) "o" -string(11) "20000000000" -string(1) "o" -string(12) " 20000000000" -string(12) "20000000000 " -string(12) " 20000000000" -string(12) " -20000000000" -string(11) "20000000000" -string(30) " 20000000000" -string(4) "0-7]" -string(1) "o" - --- Iteration 13 -- -string(11) "17777777777" -string(1) "o" -string(11) "17777777777" -string(1) "o" -string(12) " 17777777777" -string(12) "17777777777 " -string(12) " 17777777777" -string(12) " -17777777777" -string(11) "17777777777" -string(30) " 17777777777" -string(4) "0-7]" -string(1) "o" - --- Iteration 14 -- -string(11) "17777777777" -string(1) "o" -string(11) "17777777777" -string(1) "o" -string(12) " 17777777777" -string(12) "17777777777 " -string(12) " 17777777777" -string(12) " -17777777777" -string(11) "17777777777" -string(30) " 17777777777" -string(4) "0-7]" -string(1) "o" - --- Iteration 15 -- -string(3) "123" -string(1) "o" -string(3) "123" -string(1) "o" -string(4) " 123" -string(4) "123 " -string(4) " 123" -string(4) " -123" -string(4) " 123" -string(30) " 123" -string(4) "0-7]" -string(1) "o" - --- Iteration 16 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 17 -- -string(11) "20000000000" -string(1) "o" -string(11) "20000000000" -string(1) "o" -string(12) " 20000000000" -string(12) "20000000000 " -string(12) " 20000000000" -string(12) " -20000000000" -string(11) "20000000000" -string(30) " 20000000000" -string(4) "0-7]" -string(1) "o" - --- Iteration 18 -- -string(11) "17777777777" -string(1) "o" -string(11) "17777777777" -string(1) "o" -string(12) " 17777777777" -string(12) "17777777777 " -string(12) " 17777777777" -string(12) " -17777777777" -string(11) "17777777777" -string(30) " 17777777777" -string(4) "0-7]" -string(1) "o" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : octal formats with integer values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation28_64bit.phpt b/ext/standard/tests/strings/sprintf_variation28_64bit.phpt index 0b2cc9ca46..e566997cec 100644 --- a/ext/standard/tests/strings/sprintf_variation28_64bit.phpt +++ b/ext/standard/tests/strings/sprintf_variation28_64bit.phpt @@ -53,281 +53,7 @@ foreach($integer_values as $integer_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : octal formats with integer values *** - --- Iteration 1 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 2 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 3 -- -string(22) "1777777777777777777777" -string(1) "o" -string(22) "1777777777777777777777" -string(1) "o" -string(23) " 1777777777777777777777" -string(23) "1777777777777777777777 " -string(23) " 1777777777777777777777" -string(23) " -1777777777777777777777" -string(22) "1777777777777777777777" -string(30) " 1777777777777777777777" -string(4) "0-7]" -string(1) "o" - --- Iteration 4 -- -string(22) "1777777777760000000000" -string(1) "o" -string(22) "1777777777760000000000" -string(1) "o" -string(23) " 1777777777760000000000" -string(23) "1777777777760000000000 " -string(23) " 1777777777760000000000" -string(23) " -1777777777760000000000" -string(22) "1777777777760000000000" -string(30) " 1777777777760000000000" -string(4) "0-7]" -string(1) "o" - --- Iteration 5 -- -string(22) "1777777777760000000001" -string(1) "o" -string(22) "1777777777760000000001" -string(1) "o" -string(23) " 1777777777760000000001" -string(23) "1777777777760000000001 " -string(23) " 1777777777760000000001" -string(23) " -1777777777760000000001" -string(22) "1777777777760000000001" -string(30) " 1777777777760000000001" -string(4) "0-7]" -string(1) "o" - --- Iteration 6 -- -string(11) "17777777777" -string(1) "o" -string(11) "17777777777" -string(1) "o" -string(12) " 17777777777" -string(12) "17777777777 " -string(12) " 17777777777" -string(12) " -17777777777" -string(11) "17777777777" -string(30) " 17777777777" -string(4) "0-7]" -string(1) "o" - --- Iteration 7 -- -string(11) "17777777770" -string(1) "o" -string(11) "17777777770" -string(1) "o" -string(12) " 17777777770" -string(12) "17777777770 " -string(12) " 17777777770" -string(12) " -17777777770" -string(11) "17777777770" -string(30) " 17777777770" -string(4) "0-7]" -string(1) "o" - --- Iteration 8 -- -string(5) "11073" -string(1) "o" -string(5) "11073" -string(1) "o" -string(6) " 11073" -string(6) "11073 " -string(6) " 11073" -string(6) " -11073" -string(5) "11073" -string(30) " 11073" -string(4) "0-7]" -string(1) "o" - --- Iteration 9 -- -string(5) "11253" -string(1) "o" -string(5) "11253" -string(1) "o" -string(6) " 11253" -string(6) "11253 " -string(6) " 11253" -string(6) " -11253" -string(5) "11253" -string(30) " 11253" -string(4) "0-7]" -string(1) "o" - --- Iteration 10 -- -string(4) "7777" -string(1) "o" -string(4) "7777" -string(1) "o" -string(5) " 7777" -string(5) "7777 " -string(5) " 7777" -string(5) " -7777" -string(4) "7777" -string(30) " 7777" -string(4) "0-7]" -string(1) "o" - --- Iteration 11 -- -string(3) "372" -string(1) "o" -string(3) "372" -string(1) "o" -string(4) " 372" -string(4) "372 " -string(4) " 372" -string(4) " -372" -string(4) " 372" -string(30) " 372" -string(4) "0-7]" -string(1) "o" - --- Iteration 12 -- -string(22) "1777777777760000000000" -string(1) "o" -string(22) "1777777777760000000000" -string(1) "o" -string(23) " 1777777777760000000000" -string(23) "1777777777760000000000 " -string(23) " 1777777777760000000000" -string(23) " -1777777777760000000000" -string(22) "1777777777760000000000" -string(30) " 1777777777760000000000" -string(4) "0-7]" -string(1) "o" - --- Iteration 13 -- -string(11) "17777777777" -string(1) "o" -string(11) "17777777777" -string(1) "o" -string(12) " 17777777777" -string(12) "17777777777 " -string(12) " 17777777777" -string(12) " -17777777777" -string(11) "17777777777" -string(30) " 17777777777" -string(4) "0-7]" -string(1) "o" - --- Iteration 14 -- -string(11) "17777777777" -string(1) "o" -string(11) "17777777777" -string(1) "o" -string(12) " 17777777777" -string(12) "17777777777 " -string(12) " 17777777777" -string(12) " -17777777777" -string(11) "17777777777" -string(30) " 17777777777" -string(4) "0-7]" -string(1) "o" - --- Iteration 15 -- -string(3) "123" -string(1) "o" -string(3) "123" -string(1) "o" -string(4) " 123" -string(4) "123 " -string(4) " 123" -string(4) " -123" -string(4) " 123" -string(30) " 123" -string(4) "0-7]" -string(1) "o" - --- Iteration 16 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 17 -- -string(22) "1777777777760000000000" -string(1) "o" -string(22) "1777777777760000000000" -string(1) "o" -string(23) " 1777777777760000000000" -string(23) "1777777777760000000000 " -string(23) " 1777777777760000000000" -string(23) " -1777777777760000000000" -string(22) "1777777777760000000000" -string(30) " 1777777777760000000000" -string(4) "0-7]" -string(1) "o" - --- Iteration 18 -- -string(11) "17777777777" -string(1) "o" -string(11) "17777777777" -string(1) "o" -string(12) " 17777777777" -string(12) "17777777777 " -string(12) " 17777777777" -string(12) " -17777777777" -string(11) "17777777777" -string(30) " 17777777777" -string(4) "0-7]" -string(1) "o" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : octal formats with integer values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation29.phpt b/ext/standard/tests/strings/sprintf_variation29.phpt index b81fe88f1d..1eb8d9de32 100644 --- a/ext/standard/tests/strings/sprintf_variation29.phpt +++ b/ext/standard/tests/strings/sprintf_variation29.phpt @@ -26,7 +26,7 @@ $float_values = array( // array of octal formats $octal_formats = array( "%o", "%ho", "%lo", - "%Lo", " %o", "%o ", + "%Lo", " %o", "%o ", "\t%o", "\n%o", "%4o", "%30o", "%[0-7]", "%*o" ); @@ -43,131 +43,7 @@ foreach($float_values as $float_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : octal formats with float values *** - --- Iteration 1 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 2 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 3 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 4 -- -string(6) "303240" -string(1) "o" -string(6) "303240" -string(1) "o" -string(7) " 303240" -string(7) "303240 " -string(7) " 303240" -string(7) " -303240" -string(6) "303240" -string(30) " 303240" -string(4) "0-7]" -string(1) "o" - --- Iteration 5 -- -string(11) "37774136700" -string(1) "o" -string(11) "37774136700" -string(1) "o" -string(12) " 37774136700" -string(12) "37774136700 " -string(12) " 37774136700" -string(12) " -37774136700" -string(11) "37774136700" -string(30) " 37774136700" -string(4) "0-7]" -string(1) "o" - --- Iteration 6 -- -string(9) "575360400" -string(1) "o" -string(9) "575360400" -string(1) "o" -string(10) " 575360400" -string(10) "575360400 " -string(10) " 575360400" -string(10) " -575360400" -string(9) "575360400" -string(30) " 575360400" -string(4) "0-7]" -string(1) "o" - --- Iteration 7 -- -string(11) "30431233000" -string(1) "o" -string(11) "30431233000" -string(1) "o" -string(12) " 30431233000" -string(12) "30431233000 " -string(12) " 30431233000" -string(12) " -30431233000" -string(11) "30431233000" -string(30) " 30431233000" -string(4) "0-7]" -string(1) "o" - --- Iteration 8 -- -string(7) "4002620" -string(1) "o" -string(7) "4002620" -string(1) "o" -string(8) " 4002620" -string(8) "4002620 " -string(8) " 4002620" -string(8) " -4002620" -string(7) "4002620" -string(30) " 4002620" -string(4) "0-7]" -string(1) "o" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : octal formats with float values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation29_64bit.phpt b/ext/standard/tests/strings/sprintf_variation29_64bit.phpt index 44e2b4f493..1a14fbb931 100644 --- a/ext/standard/tests/strings/sprintf_variation29_64bit.phpt +++ b/ext/standard/tests/strings/sprintf_variation29_64bit.phpt @@ -26,7 +26,7 @@ $float_values = array( // array of octal formats $octal_formats = array( "%o", "%ho", "%lo", - "%Lo", " %o", "%o ", + "%Lo", " %o", "%o ", "\t%o", "\n%o", "%4o", "%30o", "%[0-7]", "%*o" ); @@ -43,131 +43,7 @@ foreach($float_values as $float_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : octal formats with float values *** - --- Iteration 1 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 2 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 3 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 4 -- -string(6) "303240" -string(1) "o" -string(6) "303240" -string(1) "o" -string(7) " 303240" -string(7) "303240 " -string(7) " 303240" -string(7) " -303240" -string(6) "303240" -string(30) " 303240" -string(4) "0-7]" -string(1) "o" - --- Iteration 5 -- -string(22) "1777777777777774136700" -string(1) "o" -string(22) "1777777777777774136700" -string(1) "o" -string(23) " 1777777777777774136700" -string(23) "1777777777777774136700 " -string(23) " 1777777777777774136700" -string(23) " -1777777777777774136700" -string(22) "1777777777777774136700" -string(30) " 1777777777777774136700" -string(4) "0-7]" -string(1) "o" - --- Iteration 6 -- -string(9) "575360400" -string(1) "o" -string(9) "575360400" -string(1) "o" -string(10) " 575360400" -string(10) "575360400 " -string(10) " 575360400" -string(10) " -575360400" -string(9) "575360400" -string(30) " 575360400" -string(4) "0-7]" -string(1) "o" - --- Iteration 7 -- -string(22) "1777777777770431233000" -string(1) "o" -string(22) "1777777777770431233000" -string(1) "o" -string(23) " 1777777777770431233000" -string(23) "1777777777770431233000 " -string(23) " 1777777777770431233000" -string(23) " -1777777777770431233000" -string(22) "1777777777770431233000" -string(30) " 1777777777770431233000" -string(4) "0-7]" -string(1) "o" - --- Iteration 8 -- -string(7) "4002620" -string(1) "o" -string(7) "4002620" -string(1) "o" -string(8) " 4002620" -string(8) "4002620 " -string(8) " 4002620" -string(8) " -4002620" -string(7) "4002620" -string(30) " 4002620" -string(4) "0-7]" -string(1) "o" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : octal formats with float values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation3.phpt b/ext/standard/tests/strings/sprintf_variation3.phpt index e901026c91..d40445126c 100644 --- a/ext/standard/tests/strings/sprintf_variation3.phpt +++ b/ext/standard/tests/strings/sprintf_variation3.phpt @@ -50,281 +50,7 @@ foreach($valid_ints as $int_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : integer formats with integer values *** - --- Iteration 1 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 2 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 3 -- -string(2) "-1" -string(1) "d" -string(2) "-1" -string(1) "d" -string(3) " -1" -string(3) "-1 " -string(3) " -1" -string(3) " --1" -string(4) " -1" -string(30) " -1" -string(4) "0-9]" -string(1) "d" - --- Iteration 4 -- -string(11) "-2147483648" -string(1) "d" -string(11) "-2147483648" -string(1) "d" -string(12) " -2147483648" -string(12) "-2147483648 " -string(12) " -2147483648" -string(12) " --2147483648" -string(11) "-2147483648" -string(30) " -2147483648" -string(4) "0-9]" -string(1) "d" - --- Iteration 5 -- -string(11) "-2147483647" -string(1) "d" -string(11) "-2147483647" -string(1) "d" -string(12) " -2147483647" -string(12) "-2147483647 " -string(12) " -2147483647" -string(12) " --2147483647" -string(11) "-2147483647" -string(30) " -2147483647" -string(4) "0-9]" -string(1) "d" - --- Iteration 6 -- -string(10) "2147483647" -string(1) "d" -string(10) "2147483647" -string(1) "d" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(4) "0-9]" -string(1) "d" - --- Iteration 7 -- -string(10) "2147483640" -string(1) "d" -string(10) "2147483640" -string(1) "d" -string(11) " 2147483640" -string(11) "2147483640 " -string(11) " 2147483640" -string(11) " -2147483640" -string(10) "2147483640" -string(30) " 2147483640" -string(4) "0-9]" -string(1) "d" - --- Iteration 8 -- -string(4) "4667" -string(1) "d" -string(4) "4667" -string(1) "d" -string(5) " 4667" -string(5) "4667 " -string(5) " 4667" -string(5) " -4667" -string(4) "4667" -string(30) " 4667" -string(4) "0-9]" -string(1) "d" - --- Iteration 9 -- -string(4) "4779" -string(1) "d" -string(4) "4779" -string(1) "d" -string(5) " 4779" -string(5) "4779 " -string(5) " 4779" -string(5) " -4779" -string(4) "4779" -string(30) " 4779" -string(4) "0-9]" -string(1) "d" - --- Iteration 10 -- -string(4) "4095" -string(1) "d" -string(4) "4095" -string(1) "d" -string(5) " 4095" -string(5) "4095 " -string(5) " 4095" -string(5) " -4095" -string(4) "4095" -string(30) " 4095" -string(4) "0-9]" -string(1) "d" - --- Iteration 11 -- -string(3) "250" -string(1) "d" -string(3) "250" -string(1) "d" -string(4) " 250" -string(4) "250 " -string(4) " 250" -string(4) " -250" -string(4) " 250" -string(30) " 250" -string(4) "0-9]" -string(1) "d" - --- Iteration 12 -- -string(11) "-2147483648" -string(1) "d" -string(11) "-2147483648" -string(1) "d" -string(12) " -2147483648" -string(12) "-2147483648 " -string(12) " -2147483648" -string(12) " --2147483648" -string(11) "-2147483648" -string(30) " -2147483648" -string(4) "0-9]" -string(1) "d" - --- Iteration 13 -- -string(10) "2147483647" -string(1) "d" -string(10) "2147483647" -string(1) "d" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(4) "0-9]" -string(1) "d" - --- Iteration 14 -- -string(10) "2147483647" -string(1) "d" -string(10) "2147483647" -string(1) "d" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(4) "0-9]" -string(1) "d" - --- Iteration 15 -- -string(2) "83" -string(1) "d" -string(2) "83" -string(1) "d" -string(3) " 83" -string(3) "83 " -string(3) " 83" -string(3) " -83" -string(4) " 83" -string(30) " 83" -string(4) "0-9]" -string(1) "d" - --- Iteration 16 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 17 -- -string(11) "-2147483648" -string(1) "d" -string(11) "-2147483648" -string(1) "d" -string(12) " -2147483648" -string(12) "-2147483648 " -string(12) " -2147483648" -string(12) " --2147483648" -string(11) "-2147483648" -string(30) " -2147483648" -string(4) "0-9]" -string(1) "d" - --- Iteration 18 -- -string(10) "2147483647" -string(1) "d" -string(10) "2147483647" -string(1) "d" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(4) "0-9]" -string(1) "d" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : integer formats with integer values *** -- Iteration 1 -- @@ -596,4 +322,4 @@ unicode(10) "2147483647" unicode(30) " 2147483647" unicode(4) "0-9]" unicode(1) "d" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation30.phpt b/ext/standard/tests/strings/sprintf_variation30.phpt index 874c738e6b..1a12289b5f 100644 --- a/ext/standard/tests/strings/sprintf_variation30.phpt +++ b/ext/standard/tests/strings/sprintf_variation30.phpt @@ -22,7 +22,7 @@ $resource_values = array ( // array of octal formats $octal_formats = array( "%o", "%ho", "%lo", - "%Lo", " %o", "%o ", + "%Lo", " %o", "%o ", "\t%o", "\n%o", "%4o", "%30o", "%[0-7]", "%*o" ); @@ -47,39 +47,6 @@ echo "Done"; *** Testing sprintf() : octal formats with resource values *** -- Iteration 1 -- -string(%d) "%d" -string(1) "o" -string(%d) "%d" -string(1) "o" -string(%d) " %d" -string(%d) "%d " -string(%d) " %d" -string(%d) " -%d" -string(%d) "%s%d" -string(%d) "%s%d" -string(%d) "0-7]" -string(1) "o" - --- Iteration 2 -- -string(%d) "%d" -string(1) "o" -string(%d) "%d" -string(1) "o" -string(%d) " %d" -string(%d) "%d " -string(%d) " %d" -string(%d) " -%d" -string(%d) "%s%d" -string(%d) "%s%d" -string(%d) "0-7]" -string(1) "o" -Done ---UEXPECTF-- -*** Testing sprintf() : octal formats with resource values *** - --- Iteration 1 -- unicode(%d) "%d" unicode(1) "o" unicode(%d) "%d" diff --git a/ext/standard/tests/strings/sprintf_variation31.phpt b/ext/standard/tests/strings/sprintf_variation31.phpt index 86cb398753..2c72941947 100644 --- a/ext/standard/tests/strings/sprintf_variation31.phpt +++ b/ext/standard/tests/strings/sprintf_variation31.phpt @@ -29,7 +29,7 @@ $array_values = array( // array of octal formats $octal_formats = array( "%o", "%ho", "%lo", - "%Lo", " %o", "%o ", + "%Lo", " %o", "%o ", "\t%o", "\n%o", "%4o", "%30o", "%[0-7]", "%*o" ); @@ -46,206 +46,7 @@ foreach($array_values as $array_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : octal formats with array values *** - --- Iteration 1 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 2 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 3 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 4 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 5 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 6 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 7 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 8 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 9 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 10 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 11 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 12 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 13 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : octal formats with array values *** -- Iteration 1 -- @@ -442,4 +243,4 @@ unicode(4) " 1" unicode(30) " 1" unicode(4) "0-7]" unicode(1) "o" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation32.phpt b/ext/standard/tests/strings/sprintf_variation32.phpt index fb856b5252..7785871c16 100644 --- a/ext/standard/tests/strings/sprintf_variation32.phpt +++ b/ext/standard/tests/strings/sprintf_variation32.phpt @@ -35,7 +35,7 @@ $string_values = array( // array of octal formats $octal_formats = array( "%o", "%ho", "%lo", - "%Lo", " %o", "%o ", + "%Lo", " %o", "%o ", "\t%o", "\n%o", "%4o", "%30o", "%[0-7]", "%*o" ); @@ -52,296 +52,7 @@ foreach($string_values as $string_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : octal formats with string values *** - --- Iteration 1 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 2 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 3 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 4 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 5 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 6 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 7 -- -string(3) "173" -string(1) "o" -string(3) "173" -string(1) "o" -string(4) " 173" -string(4) "173 " -string(4) " 173" -string(4) " -173" -string(4) " 173" -string(30) " 173" -string(4) "0-7]" -string(1) "o" - --- Iteration 8 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 9 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 10 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 11 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 12 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 13 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 14 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 15 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 16 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 17 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 18 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 19 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : octal formats with string values *** -- Iteration 1 -- @@ -628,4 +339,4 @@ unicode(4) " 0" unicode(30) " 0" unicode(4) "0-7]" unicode(1) "o" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation33.phpt b/ext/standard/tests/strings/sprintf_variation33.phpt index ba806b3b6a..e1468aad8a 100644 --- a/ext/standard/tests/strings/sprintf_variation33.phpt +++ b/ext/standard/tests/strings/sprintf_variation33.phpt @@ -20,7 +20,7 @@ $boolean_values = array( // array of octal formats $octal_formats = array( "%o", "%ho", "%lo", - "%Lo", " %o", "%o ", + "%Lo", " %o", "%o ", "\t%o", "\n%o", "%4o", "%30o", "%[0-7]", "%*o" ); @@ -37,71 +37,7 @@ foreach($boolean_values as $boolean_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : octal formats with boolean values *** - --- Iteration 1 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 2 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" - --- Iteration 3 -- -string(1) "1" -string(1) "o" -string(1) "1" -string(1) "o" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-7]" -string(1) "o" - --- Iteration 4 -- -string(1) "0" -string(1) "o" -string(1) "0" -string(1) "o" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-7]" -string(1) "o" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : octal formats with boolean values *** -- Iteration 1 -- @@ -163,4 +99,4 @@ unicode(4) " 0" unicode(30) " 0" unicode(4) "0-7]" unicode(1) "o" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation34.phpt b/ext/standard/tests/strings/sprintf_variation34.phpt index d680ffe9ab..c5bfb68e66 100644 --- a/ext/standard/tests/strings/sprintf_variation34.phpt +++ b/ext/standard/tests/strings/sprintf_variation34.phpt @@ -53,281 +53,7 @@ foreach($integer_values as $integer_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : hexa formats with integer values *** - --- Iteration 1 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 2 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 3 -- -string(8) "ffffffff" -string(9) "ffffffffx" -string(8) "ffffffff" -string(1) "x" -string(9) " ffffffff" -string(9) "ffffffff " -string(9) " ffffffff" -string(9) " -ffffffff" -string(8) "ffffffff" -string(30) " ffffffff" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 4 -- -string(8) "80000000" -string(9) "80000000x" -string(8) "80000000" -string(1) "x" -string(9) " 80000000" -string(9) "80000000 " -string(9) " 80000000" -string(9) " -80000000" -string(8) "80000000" -string(30) " 80000000" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 5 -- -string(8) "80000001" -string(9) "80000001x" -string(8) "80000001" -string(1) "x" -string(9) " 80000001" -string(9) "80000001 " -string(9) " 80000001" -string(9) " -80000001" -string(8) "80000001" -string(30) " 80000001" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 6 -- -string(8) "7fffffff" -string(9) "7fffffffx" -string(8) "7fffffff" -string(1) "x" -string(9) " 7fffffff" -string(9) "7fffffff " -string(9) " 7fffffff" -string(9) " -7fffffff" -string(8) "7fffffff" -string(30) " 7fffffff" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 7 -- -string(8) "7ffffff8" -string(9) "7ffffff8x" -string(8) "7ffffff8" -string(1) "x" -string(9) " 7ffffff8" -string(9) "7ffffff8 " -string(9) " 7ffffff8" -string(9) " -7ffffff8" -string(8) "7ffffff8" -string(30) " 7ffffff8" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 8 -- -string(4) "123b" -string(5) "123bx" -string(4) "123b" -string(1) "x" -string(5) " 123b" -string(5) "123b " -string(5) " 123b" -string(5) " -123b" -string(4) "123b" -string(30) " 123b" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 9 -- -string(4) "12ab" -string(5) "12abx" -string(4) "12ab" -string(1) "x" -string(5) " 12ab" -string(5) "12ab " -string(5) " 12ab" -string(5) " -12ab" -string(4) "12ab" -string(30) " 12ab" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 10 -- -string(3) "fff" -string(4) "fffx" -string(3) "fff" -string(1) "x" -string(4) " fff" -string(4) "fff " -string(4) " fff" -string(4) " -fff" -string(4) " fff" -string(30) " fff" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 11 -- -string(2) "fa" -string(3) "fax" -string(2) "fa" -string(1) "x" -string(3) " fa" -string(3) "fa " -string(3) " fa" -string(3) " -fa" -string(4) " fa" -string(30) " fa" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 12 -- -string(8) "80000000" -string(9) "80000000x" -string(8) "80000000" -string(1) "x" -string(9) " 80000000" -string(9) "80000000 " -string(9) " 80000000" -string(9) " -80000000" -string(8) "80000000" -string(30) " 80000000" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 13 -- -string(8) "7fffffff" -string(9) "7fffffffx" -string(8) "7fffffff" -string(1) "x" -string(9) " 7fffffff" -string(9) "7fffffff " -string(9) " 7fffffff" -string(9) " -7fffffff" -string(8) "7fffffff" -string(30) " 7fffffff" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 14 -- -string(8) "7fffffff" -string(9) "7fffffffx" -string(8) "7fffffff" -string(1) "x" -string(9) " 7fffffff" -string(9) "7fffffff " -string(9) " 7fffffff" -string(9) " -7fffffff" -string(8) "7fffffff" -string(30) " 7fffffff" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 15 -- -string(2) "53" -string(3) "53x" -string(2) "53" -string(1) "x" -string(3) " 53" -string(3) "53 " -string(3) " 53" -string(3) " -53" -string(4) " 53" -string(30) " 53" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 16 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 17 -- -string(8) "80000000" -string(9) "80000000x" -string(8) "80000000" -string(1) "x" -string(9) " 80000000" -string(9) "80000000 " -string(9) " 80000000" -string(9) " -80000000" -string(8) "80000000" -string(30) " 80000000" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 18 -- -string(8) "7fffffff" -string(9) "7fffffffx" -string(8) "7fffffff" -string(1) "x" -string(9) " 7fffffff" -string(9) "7fffffff " -string(9) " 7fffffff" -string(9) " -7fffffff" -string(8) "7fffffff" -string(30) " 7fffffff" -string(10) "0-9A-Fa-f]" -string(1) "x" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : hexa formats with integer values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation34_64bit.phpt b/ext/standard/tests/strings/sprintf_variation34_64bit.phpt index 14eacb33bc..baa85c5711 100644 --- a/ext/standard/tests/strings/sprintf_variation34_64bit.phpt +++ b/ext/standard/tests/strings/sprintf_variation34_64bit.phpt @@ -53,281 +53,7 @@ foreach($integer_values as $integer_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : hexa formats with integer values *** - --- Iteration 1 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 2 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 3 -- -string(16) "ffffffffffffffff" -string(17) "ffffffffffffffffx" -string(16) "ffffffffffffffff" -string(1) "x" -string(17) " ffffffffffffffff" -string(17) "ffffffffffffffff " -string(17) " ffffffffffffffff" -string(17) " -ffffffffffffffff" -string(16) "ffffffffffffffff" -string(30) " ffffffffffffffff" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 4 -- -string(16) "ffffffff80000000" -string(17) "ffffffff80000000x" -string(16) "ffffffff80000000" -string(1) "x" -string(17) " ffffffff80000000" -string(17) "ffffffff80000000 " -string(17) " ffffffff80000000" -string(17) " -ffffffff80000000" -string(16) "ffffffff80000000" -string(30) " ffffffff80000000" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 5 -- -string(16) "ffffffff80000001" -string(17) "ffffffff80000001x" -string(16) "ffffffff80000001" -string(1) "x" -string(17) " ffffffff80000001" -string(17) "ffffffff80000001 " -string(17) " ffffffff80000001" -string(17) " -ffffffff80000001" -string(16) "ffffffff80000001" -string(30) " ffffffff80000001" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 6 -- -string(8) "7fffffff" -string(9) "7fffffffx" -string(8) "7fffffff" -string(1) "x" -string(9) " 7fffffff" -string(9) "7fffffff " -string(9) " 7fffffff" -string(9) " -7fffffff" -string(8) "7fffffff" -string(30) " 7fffffff" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 7 -- -string(8) "7ffffff8" -string(9) "7ffffff8x" -string(8) "7ffffff8" -string(1) "x" -string(9) " 7ffffff8" -string(9) "7ffffff8 " -string(9) " 7ffffff8" -string(9) " -7ffffff8" -string(8) "7ffffff8" -string(30) " 7ffffff8" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 8 -- -string(4) "123b" -string(5) "123bx" -string(4) "123b" -string(1) "x" -string(5) " 123b" -string(5) "123b " -string(5) " 123b" -string(5) " -123b" -string(4) "123b" -string(30) " 123b" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 9 -- -string(4) "12ab" -string(5) "12abx" -string(4) "12ab" -string(1) "x" -string(5) " 12ab" -string(5) "12ab " -string(5) " 12ab" -string(5) " -12ab" -string(4) "12ab" -string(30) " 12ab" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 10 -- -string(3) "fff" -string(4) "fffx" -string(3) "fff" -string(1) "x" -string(4) " fff" -string(4) "fff " -string(4) " fff" -string(4) " -fff" -string(4) " fff" -string(30) " fff" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 11 -- -string(2) "fa" -string(3) "fax" -string(2) "fa" -string(1) "x" -string(3) " fa" -string(3) "fa " -string(3) " fa" -string(3) " -fa" -string(4) " fa" -string(30) " fa" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 12 -- -string(16) "ffffffff80000000" -string(17) "ffffffff80000000x" -string(16) "ffffffff80000000" -string(1) "x" -string(17) " ffffffff80000000" -string(17) "ffffffff80000000 " -string(17) " ffffffff80000000" -string(17) " -ffffffff80000000" -string(16) "ffffffff80000000" -string(30) " ffffffff80000000" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 13 -- -string(8) "7fffffff" -string(9) "7fffffffx" -string(8) "7fffffff" -string(1) "x" -string(9) " 7fffffff" -string(9) "7fffffff " -string(9) " 7fffffff" -string(9) " -7fffffff" -string(8) "7fffffff" -string(30) " 7fffffff" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 14 -- -string(8) "7fffffff" -string(9) "7fffffffx" -string(8) "7fffffff" -string(1) "x" -string(9) " 7fffffff" -string(9) "7fffffff " -string(9) " 7fffffff" -string(9) " -7fffffff" -string(8) "7fffffff" -string(30) " 7fffffff" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 15 -- -string(2) "53" -string(3) "53x" -string(2) "53" -string(1) "x" -string(3) " 53" -string(3) "53 " -string(3) " 53" -string(3) " -53" -string(4) " 53" -string(30) " 53" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 16 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 17 -- -string(16) "ffffffff80000000" -string(17) "ffffffff80000000x" -string(16) "ffffffff80000000" -string(1) "x" -string(17) " ffffffff80000000" -string(17) "ffffffff80000000 " -string(17) " ffffffff80000000" -string(17) " -ffffffff80000000" -string(16) "ffffffff80000000" -string(30) " ffffffff80000000" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 18 -- -string(8) "7fffffff" -string(9) "7fffffffx" -string(8) "7fffffff" -string(1) "x" -string(9) " 7fffffff" -string(9) "7fffffff " -string(9) " 7fffffff" -string(9) " -7fffffff" -string(8) "7fffffff" -string(30) " 7fffffff" -string(10) "0-9A-Fa-f]" -string(1) "x" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : hexa formats with integer values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation35.phpt b/ext/standard/tests/strings/sprintf_variation35.phpt index 4526901a13..abf2b067a1 100644 --- a/ext/standard/tests/strings/sprintf_variation35.phpt +++ b/ext/standard/tests/strings/sprintf_variation35.phpt @@ -48,190 +48,7 @@ foreach($float_values as $float_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : hexa formats with float values *** - --- Iteration 1 -- -string(8) "7fffffff" -string(9) "7fffffffx" -string(8) "7fffffff" -string(1) "x" -string(9) " 7fffffff" -string(9) "7fffffff " -string(9) " 7fffffff" -string(9) " -7fffffff" -string(8) "7fffffff" -string(30) " 7fffffff" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 2 -- -string(8) "7fffffff" -string(9) "7fffffffx" -string(8) "7fffffff" -string(1) "x" -string(9) " 7fffffff" -string(9) "7fffffff " -string(9) " 7fffffff" -string(9) " -7fffffff" -string(8) "7fffffff" -string(30) " 7fffffff" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 3 -- -string(8) "80000001" -string(9) "80000001x" -string(8) "80000001" -string(1) "x" -string(9) " 80000001" -string(9) "80000001 " -string(9) " 80000001" -string(9) " -80000001" -string(8) "80000001" -string(30) " 80000001" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 4 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 5 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 6 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 7 -- -string(5) "186a0" -string(6) "186a0x" -string(5) "186a0" -string(1) "x" -string(6) " 186a0" -string(6) "186a0 " -string(6) " 186a0" -string(6) " -186a0" -string(5) "186a0" -string(30) " 186a0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 8 -- -string(8) "fff0bdc0" -string(9) "fff0bdc0x" -string(8) "fff0bdc0" -string(1) "x" -string(9) " fff0bdc0" -string(9) "fff0bdc0 " -string(9) " fff0bdc0" -string(9) " -fff0bdc0" -string(8) "fff0bdc0" -string(30) " fff0bdc0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 9 -- -string(7) "5f5e100" -string(8) "5f5e100x" -string(7) "5f5e100" -string(1) "x" -string(8) " 5f5e100" -string(8) "5f5e100 " -string(8) " 5f5e100" -string(8) " -5f5e100" -string(7) "5f5e100" -string(30) " 5f5e100" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 10 -- -string(8) "c4653600" -string(9) "c4653600x" -string(8) "c4653600" -string(1) "x" -string(9) " c4653600" -string(9) "c4653600 " -string(9) " c4653600" -string(9) " -c4653600" -string(8) "c4653600" -string(30) " c4653600" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 11 -- -string(1) "a" -string(2) "ax" -string(1) "a" -string(1) "x" -string(2) " a" -string(2) "a " -string(2) " a" -string(2) " -a" -string(4) " a" -string(30) " a" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 12 -- -string(6) "100590" -string(7) "100590x" -string(6) "100590" -string(1) "x" -string(7) " 100590" -string(7) "100590 " -string(7) " 100590" -string(7) " -100590" -string(6) "100590" -string(30) " 100590" -string(10) "0-9A-Fa-f]" -string(1) "x" -Done ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : hexa formats with float values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation35_64bit.phpt b/ext/standard/tests/strings/sprintf_variation35_64bit.phpt index 1bba0f5005..654a1271ae 100644 --- a/ext/standard/tests/strings/sprintf_variation35_64bit.phpt +++ b/ext/standard/tests/strings/sprintf_variation35_64bit.phpt @@ -48,190 +48,7 @@ foreach($float_values as $float_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : hexa formats with float values *** - --- Iteration 1 -- -string(8) "7fffffff" -string(9) "7fffffffx" -string(8) "7fffffff" -string(1) "x" -string(9) " 7fffffff" -string(9) "7fffffff " -string(9) " 7fffffff" -string(9) " -7fffffff" -string(8) "7fffffff" -string(30) " 7fffffff" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 2 -- -string(9) "800000001" -string(10) "800000001x" -string(9) "800000001" -string(1) "x" -string(10) " 800000001" -string(10) "800000001 " -string(10) " 800000001" -string(10) " -800000001" -string(9) "800000001" -string(30) " 800000001" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 3 -- -string(8) "80000001" -string(9) "80000001x" -string(8) "80000001" -string(1) "x" -string(9) " 80000001" -string(9) "80000001 " -string(9) " 80000001" -string(9) " -80000001" -string(8) "80000001" -string(30) " 80000001" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 4 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 5 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 6 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 7 -- -string(5) "186a0" -string(6) "186a0x" -string(5) "186a0" -string(1) "x" -string(6) " 186a0" -string(6) "186a0 " -string(6) " 186a0" -string(6) " -186a0" -string(5) "186a0" -string(30) " 186a0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 8 -- -string(16) "fffffffffff0bdc0" -string(17) "fffffffffff0bdc0x" -string(16) "fffffffffff0bdc0" -string(1) "x" -string(17) " fffffffffff0bdc0" -string(17) "fffffffffff0bdc0 " -string(17) " fffffffffff0bdc0" -string(17) " -fffffffffff0bdc0" -string(16) "fffffffffff0bdc0" -string(30) " fffffffffff0bdc0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 9 -- -string(7) "5f5e100" -string(8) "5f5e100x" -string(7) "5f5e100" -string(1) "x" -string(8) " 5f5e100" -string(8) "5f5e100 " -string(8) " 5f5e100" -string(8) " -5f5e100" -string(7) "5f5e100" -string(30) " 5f5e100" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 10 -- -string(16) "ffffffffc4653600" -string(17) "ffffffffc4653600x" -string(16) "ffffffffc4653600" -string(1) "x" -string(17) " ffffffffc4653600" -string(17) "ffffffffc4653600 " -string(17) " ffffffffc4653600" -string(17) " -ffffffffc4653600" -string(16) "ffffffffc4653600" -string(30) " ffffffffc4653600" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 11 -- -string(1) "a" -string(2) "ax" -string(1) "a" -string(1) "x" -string(2) " a" -string(2) "a " -string(2) " a" -string(2) " -a" -string(4) " a" -string(30) " a" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 12 -- -string(6) "100590" -string(7) "100590x" -string(6) "100590" -string(1) "x" -string(7) " 100590" -string(7) "100590 " -string(7) " 100590" -string(7) " -100590" -string(6) "100590" -string(30) " 100590" -string(10) "0-9A-Fa-f]" -string(1) "x" -Done ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : hexa formats with float values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation36.phpt b/ext/standard/tests/strings/sprintf_variation36.phpt index 0041bdb67e..e3947dc556 100644 --- a/ext/standard/tests/strings/sprintf_variation36.phpt +++ b/ext/standard/tests/strings/sprintf_variation36.phpt @@ -43,40 +43,6 @@ echo "Done"; *** Testing sprintf() : hexa formats with resource values *** -- Iteration 1 -- -string(%d) "%d" -string(%d) "%dx" -string(%d) "%d" -string(1) "x" -string(%d) " %d" -string(%d) "%d " -string(%d) " %d" -string(%d) " -%d" -string(%d) " %d" -string(%d) " %d" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 2 -- -string(%d) "%d" -string(%d) "%dx" -string(%d) "%d" -string(1) "x" -string(%d) " %d" -string(%d) "%d " -string(%d) " %d" -string(%d) " -%d" -string(%d) " %d" -string(%d) " %d" -string(10) "0-9A-Fa-f]" -string(1) "x" -Done - ---UEXPECTF-- -*** Testing sprintf() : hexa formats with resource values *** - --- Iteration 1 -- unicode(%d) "%d" unicode(%d) "%dx" unicode(%d) "%d" diff --git a/ext/standard/tests/strings/sprintf_variation37.phpt b/ext/standard/tests/strings/sprintf_variation37.phpt index 6c82bf16f2..2e2108983a 100644 --- a/ext/standard/tests/strings/sprintf_variation37.phpt +++ b/ext/standard/tests/strings/sprintf_variation37.phpt @@ -49,190 +49,6 @@ echo "Done"; *** Testing sprintf() : hexa formats with array values *** -- Iteration 1 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 2 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 3 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 4 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 5 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 6 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 7 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 8 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 9 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 10 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 11 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 12 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" -Done - ---UEXPECTF-- -*** Testing sprintf() : hexa formats with array values *** - --- Iteration 1 -- unicode(1) "0" unicode(2) "0x" unicode(1) "0" @@ -411,4 +227,4 @@ unicode(4) " 1" unicode(30) " 1" unicode(10) "0-9A-Fa-f]" unicode(1) "x" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation38.phpt b/ext/standard/tests/strings/sprintf_variation38.phpt index eddb791556..dc0e6b8ea2 100644 --- a/ext/standard/tests/strings/sprintf_variation38.phpt +++ b/ext/standard/tests/strings/sprintf_variation38.phpt @@ -51,281 +51,7 @@ foreach($string_values as $string_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : hexa formats with string values *** - --- Iteration 1 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 2 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 3 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 4 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 5 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 6 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 7 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 8 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 9 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 10 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 11 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 12 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 13 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 14 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 15 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 16 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 17 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 18 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : hexa formats with string values *** -- Iteration 1 -- @@ -597,4 +323,4 @@ unicode(4) " 0" unicode(30) " 0" unicode(10) "0-9A-Fa-f]" unicode(1) "x" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation39.phpt b/ext/standard/tests/strings/sprintf_variation39.phpt index 9118b33d3b..5f6ca613cc 100644 --- a/ext/standard/tests/strings/sprintf_variation39.phpt +++ b/ext/standard/tests/strings/sprintf_variation39.phpt @@ -37,71 +37,7 @@ foreach($boolean_values as $boolean_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : hexa formats with boolean values *** - --- Iteration 1 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 2 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 3 -- -string(1) "1" -string(2) "1x" -string(1) "1" -string(1) "x" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(10) "0-9A-Fa-f]" -string(1) "x" - --- Iteration 4 -- -string(1) "0" -string(2) "0x" -string(1) "0" -string(1) "x" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(10) "0-9A-Fa-f]" -string(1) "x" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : hexa formats with boolean values *** -- Iteration 1 -- @@ -163,4 +99,4 @@ unicode(4) " 0" unicode(30) " 0" unicode(10) "0-9A-Fa-f]" unicode(1) "x" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation4.phpt b/ext/standard/tests/strings/sprintf_variation4.phpt index fba8c46852..dbfdb9f318 100644 --- a/ext/standard/tests/strings/sprintf_variation4.phpt +++ b/ext/standard/tests/strings/sprintf_variation4.phpt @@ -48,190 +48,7 @@ foreach($float_values as $float_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : integer formats with float values *** - --- Iteration 1 -- -string(11) "-2147483648" -string(1) "d" -string(11) "-2147483648" -string(1) "d" -string(12) " -2147483648" -string(12) "-2147483648 " -string(12) " -2147483648" -string(12) " --2147483648" -string(11) "-2147483648" -string(30) " -2147483648" -string(4) "0-9]" -string(1) "d" - --- Iteration 2 -- -string(10) "2147483647" -string(1) "d" -string(10) "2147483647" -string(1) "d" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(4) "0-9]" -string(1) "d" - --- Iteration 3 -- -string(11) "-2147483647" -string(1) "d" -string(11) "-2147483647" -string(1) "d" -string(12) " -2147483647" -string(12) "-2147483647 " -string(12) " -2147483647" -string(12) " --2147483647" -string(11) "-2147483647" -string(30) " -2147483647" -string(4) "0-9]" -string(1) "d" - --- Iteration 4 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 5 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 6 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 7 -- -string(6) "100000" -string(1) "d" -string(6) "100000" -string(1) "d" -string(7) " 100000" -string(7) "100000 " -string(7) " 100000" -string(7) " -100000" -string(6) "100000" -string(30) " 100000" -string(4) "0-9]" -string(1) "d" - --- Iteration 8 -- -string(8) "-1000000" -string(1) "d" -string(8) "-1000000" -string(1) "d" -string(9) " -1000000" -string(9) "-1000000 " -string(9) " -1000000" -string(9) " --1000000" -string(8) "-1000000" -string(30) " -1000000" -string(4) "0-9]" -string(1) "d" - --- Iteration 9 -- -string(9) "100000000" -string(1) "d" -string(9) "100000000" -string(1) "d" -string(10) " 100000000" -string(10) "100000000 " -string(10) " 100000000" -string(10) " -100000000" -string(9) "100000000" -string(30) " 100000000" -string(4) "0-9]" -string(1) "d" - --- Iteration 10 -- -string(11) "-1000000000" -string(1) "d" -string(11) "-1000000000" -string(1) "d" -string(12) " -1000000000" -string(12) "-1000000000 " -string(12) " -1000000000" -string(12) " --1000000000" -string(11) "-1000000000" -string(30) " -1000000000" -string(4) "0-9]" -string(1) "d" - --- Iteration 11 -- -string(2) "10" -string(1) "d" -string(2) "10" -string(1) "d" -string(3) " 10" -string(3) "10 " -string(3) " 10" -string(3) " -10" -string(4) " 10" -string(30) " 10" -string(4) "0-9]" -string(1) "d" - --- Iteration 12 -- -string(7) "1050000" -string(1) "d" -string(7) "1050000" -string(1) "d" -string(8) " 1050000" -string(8) "1050000 " -string(8) " 1050000" -string(8) " -1050000" -string(7) "1050000" -string(30) " 1050000" -string(4) "0-9]" -string(1) "d" -Done ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : integer formats with float values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation40.phpt b/ext/standard/tests/strings/sprintf_variation40.phpt index 41276a6959..24e0067cc7 100644 --- a/ext/standard/tests/strings/sprintf_variation40.phpt +++ b/ext/standard/tests/strings/sprintf_variation40.phpt @@ -54,281 +54,7 @@ foreach($integer_values as $integer_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : unsigned formats with integer values *** - --- Iteration 1 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 2 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 3 -- -string(10) "4294967295" -string(1) "u" -string(10) "4294967295" -string(1) "u" -string(11) " 4294967295" -string(11) "4294967295 " -string(11) " 4294967295" -string(11) " -4294967295" -string(10) "4294967295" -string(30) " 4294967295" -string(4) "0-9]" -string(1) "u" - --- Iteration 4 -- -string(10) "2147483648" -string(1) "u" -string(10) "2147483648" -string(1) "u" -string(11) " 2147483648" -string(11) "2147483648 " -string(11) " 2147483648" -string(11) " -2147483648" -string(10) "2147483648" -string(30) " 2147483648" -string(4) "0-9]" -string(1) "u" - --- Iteration 5 -- -string(10) "2147483649" -string(1) "u" -string(10) "2147483649" -string(1) "u" -string(11) " 2147483649" -string(11) "2147483649 " -string(11) " 2147483649" -string(11) " -2147483649" -string(10) "2147483649" -string(30) " 2147483649" -string(4) "0-9]" -string(1) "u" - --- Iteration 6 -- -string(10) "2147483647" -string(1) "u" -string(10) "2147483647" -string(1) "u" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(4) "0-9]" -string(1) "u" - --- Iteration 7 -- -string(10) "2147483640" -string(1) "u" -string(10) "2147483640" -string(1) "u" -string(11) " 2147483640" -string(11) "2147483640 " -string(11) " 2147483640" -string(11) " -2147483640" -string(10) "2147483640" -string(30) " 2147483640" -string(4) "0-9]" -string(1) "u" - --- Iteration 8 -- -string(4) "4667" -string(1) "u" -string(4) "4667" -string(1) "u" -string(5) " 4667" -string(5) "4667 " -string(5) " 4667" -string(5) " -4667" -string(4) "4667" -string(30) " 4667" -string(4) "0-9]" -string(1) "u" - --- Iteration 9 -- -string(4) "4779" -string(1) "u" -string(4) "4779" -string(1) "u" -string(5) " 4779" -string(5) "4779 " -string(5) " 4779" -string(5) " -4779" -string(4) "4779" -string(30) " 4779" -string(4) "0-9]" -string(1) "u" - --- Iteration 10 -- -string(4) "4095" -string(1) "u" -string(4) "4095" -string(1) "u" -string(5) " 4095" -string(5) "4095 " -string(5) " 4095" -string(5) " -4095" -string(4) "4095" -string(30) " 4095" -string(4) "0-9]" -string(1) "u" - --- Iteration 11 -- -string(3) "250" -string(1) "u" -string(3) "250" -string(1) "u" -string(4) " 250" -string(4) "250 " -string(4) " 250" -string(4) " -250" -string(4) " 250" -string(30) " 250" -string(4) "0-9]" -string(1) "u" - --- Iteration 12 -- -string(10) "2147483648" -string(1) "u" -string(10) "2147483648" -string(1) "u" -string(11) " 2147483648" -string(11) "2147483648 " -string(11) " 2147483648" -string(11) " -2147483648" -string(10) "2147483648" -string(30) " 2147483648" -string(4) "0-9]" -string(1) "u" - --- Iteration 13 -- -string(10) "2147483647" -string(1) "u" -string(10) "2147483647" -string(1) "u" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(4) "0-9]" -string(1) "u" - --- Iteration 14 -- -string(10) "2147483647" -string(1) "u" -string(10) "2147483647" -string(1) "u" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(4) "0-9]" -string(1) "u" - --- Iteration 15 -- -string(2) "83" -string(1) "u" -string(2) "83" -string(1) "u" -string(3) " 83" -string(3) "83 " -string(3) " 83" -string(3) " -83" -string(4) " 83" -string(30) " 83" -string(4) "0-9]" -string(1) "u" - --- Iteration 16 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 17 -- -string(10) "2147483648" -string(1) "u" -string(10) "2147483648" -string(1) "u" -string(11) " 2147483648" -string(11) "2147483648 " -string(11) " 2147483648" -string(11) " -2147483648" -string(10) "2147483648" -string(30) " 2147483648" -string(4) "0-9]" -string(1) "u" - --- Iteration 18 -- -string(10) "2147483647" -string(1) "u" -string(10) "2147483647" -string(1) "u" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(4) "0-9]" -string(1) "u" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : unsigned formats with integer values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation40_64bit.phpt b/ext/standard/tests/strings/sprintf_variation40_64bit.phpt index fb8df23543..5d6fce9bac 100644 --- a/ext/standard/tests/strings/sprintf_variation40_64bit.phpt +++ b/ext/standard/tests/strings/sprintf_variation40_64bit.phpt @@ -54,281 +54,7 @@ foreach($integer_values as $integer_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : unsigned formats with integer values *** - --- Iteration 1 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 2 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 3 -- -string(20) "18446744073709551615" -string(1) "u" -string(20) "18446744073709551615" -string(1) "u" -string(21) " 18446744073709551615" -string(21) "18446744073709551615 " -string(21) " 18446744073709551615" -string(21) " -18446744073709551615" -string(20) "18446744073709551615" -string(30) " 18446744073709551615" -string(4) "0-9]" -string(1) "u" - --- Iteration 4 -- -string(20) "18446744071562067968" -string(1) "u" -string(20) "18446744071562067968" -string(1) "u" -string(21) " 18446744071562067968" -string(21) "18446744071562067968 " -string(21) " 18446744071562067968" -string(21) " -18446744071562067968" -string(20) "18446744071562067968" -string(30) " 18446744071562067968" -string(4) "0-9]" -string(1) "u" - --- Iteration 5 -- -string(20) "18446744071562067969" -string(1) "u" -string(20) "18446744071562067969" -string(1) "u" -string(21) " 18446744071562067969" -string(21) "18446744071562067969 " -string(21) " 18446744071562067969" -string(21) " -18446744071562067969" -string(20) "18446744071562067969" -string(30) " 18446744071562067969" -string(4) "0-9]" -string(1) "u" - --- Iteration 6 -- -string(10) "2147483647" -string(1) "u" -string(10) "2147483647" -string(1) "u" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(4) "0-9]" -string(1) "u" - --- Iteration 7 -- -string(10) "2147483640" -string(1) "u" -string(10) "2147483640" -string(1) "u" -string(11) " 2147483640" -string(11) "2147483640 " -string(11) " 2147483640" -string(11) " -2147483640" -string(10) "2147483640" -string(30) " 2147483640" -string(4) "0-9]" -string(1) "u" - --- Iteration 8 -- -string(4) "4667" -string(1) "u" -string(4) "4667" -string(1) "u" -string(5) " 4667" -string(5) "4667 " -string(5) " 4667" -string(5) " -4667" -string(4) "4667" -string(30) " 4667" -string(4) "0-9]" -string(1) "u" - --- Iteration 9 -- -string(4) "4779" -string(1) "u" -string(4) "4779" -string(1) "u" -string(5) " 4779" -string(5) "4779 " -string(5) " 4779" -string(5) " -4779" -string(4) "4779" -string(30) " 4779" -string(4) "0-9]" -string(1) "u" - --- Iteration 10 -- -string(4) "4095" -string(1) "u" -string(4) "4095" -string(1) "u" -string(5) " 4095" -string(5) "4095 " -string(5) " 4095" -string(5) " -4095" -string(4) "4095" -string(30) " 4095" -string(4) "0-9]" -string(1) "u" - --- Iteration 11 -- -string(3) "250" -string(1) "u" -string(3) "250" -string(1) "u" -string(4) " 250" -string(4) "250 " -string(4) " 250" -string(4) " -250" -string(4) " 250" -string(30) " 250" -string(4) "0-9]" -string(1) "u" - --- Iteration 12 -- -string(20) "18446744071562067968" -string(1) "u" -string(20) "18446744071562067968" -string(1) "u" -string(21) " 18446744071562067968" -string(21) "18446744071562067968 " -string(21) " 18446744071562067968" -string(21) " -18446744071562067968" -string(20) "18446744071562067968" -string(30) " 18446744071562067968" -string(4) "0-9]" -string(1) "u" - --- Iteration 13 -- -string(10) "2147483647" -string(1) "u" -string(10) "2147483647" -string(1) "u" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(4) "0-9]" -string(1) "u" - --- Iteration 14 -- -string(10) "2147483647" -string(1) "u" -string(10) "2147483647" -string(1) "u" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(4) "0-9]" -string(1) "u" - --- Iteration 15 -- -string(2) "83" -string(1) "u" -string(2) "83" -string(1) "u" -string(3) " 83" -string(3) "83 " -string(3) " 83" -string(3) " -83" -string(4) " 83" -string(30) " 83" -string(4) "0-9]" -string(1) "u" - --- Iteration 16 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 17 -- -string(20) "18446744071562067968" -string(1) "u" -string(20) "18446744071562067968" -string(1) "u" -string(21) " 18446744071562067968" -string(21) "18446744071562067968 " -string(21) " 18446744071562067968" -string(21) " -18446744071562067968" -string(20) "18446744071562067968" -string(30) " 18446744071562067968" -string(4) "0-9]" -string(1) "u" - --- Iteration 18 -- -string(10) "2147483647" -string(1) "u" -string(10) "2147483647" -string(1) "u" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(4) "0-9]" -string(1) "u" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : unsigned formats with integer values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation41.phpt b/ext/standard/tests/strings/sprintf_variation41.phpt index fdbd193d23..62ca7dcc83 100644 --- a/ext/standard/tests/strings/sprintf_variation41.phpt +++ b/ext/standard/tests/strings/sprintf_variation41.phpt @@ -52,265 +52,7 @@ foreach($float_values as $float_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : unsigned formats with float values *** - --- Iteration 1 -- -string(10) "2147483647" -string(1) "u" -string(10) "2147483647" -string(1) "u" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(4) "0-9]" -string(1) "u" - --- Iteration 2 -- -string(10) "2147483647" -string(1) "u" -string(10) "2147483647" -string(1) "u" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(4) "0-9]" -string(1) "u" - --- Iteration 3 -- -string(10) "2147483649" -string(1) "u" -string(10) "2147483649" -string(1) "u" -string(11) " 2147483649" -string(11) "2147483649 " -string(11) " 2147483649" -string(11) " -2147483649" -string(10) "2147483649" -string(30) " 2147483649" -string(4) "0-9]" -string(1) "u" - --- Iteration 4 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 5 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 6 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 7 -- -string(6) "100000" -string(1) "u" -string(6) "100000" -string(1) "u" -string(7) " 100000" -string(7) "100000 " -string(7) " 100000" -string(7) " -100000" -string(6) "100000" -string(30) " 100000" -string(4) "0-9]" -string(1) "u" - --- Iteration 8 -- -string(6) "500000" -string(1) "u" -string(6) "500000" -string(1) "u" -string(7) " 500000" -string(7) "500000 " -string(7) " 500000" -string(7) " -500000" -string(6) "500000" -string(30) " 500000" -string(4) "0-9]" -string(1) "u" - --- Iteration 9 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 10 -- -string(10) "4294867296" -string(1) "u" -string(10) "4294867296" -string(1) "u" -string(11) " 4294867296" -string(11) "4294867296 " -string(11) " 4294867296" -string(11) " -4294867296" -string(10) "4294867296" -string(30) " 4294867296" -string(4) "0-9]" -string(1) "u" - --- Iteration 11 -- -string(10) "4294867296" -string(1) "u" -string(10) "4294867296" -string(1) "u" -string(11) " 4294867296" -string(11) "4294867296 " -string(11) " 4294867296" -string(11) " -4294867296" -string(10) "4294867296" -string(30) " 4294867296" -string(4) "0-9]" -string(1) "u" - --- Iteration 12 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 13 -- -string(6) "100000" -string(1) "u" -string(6) "100000" -string(1) "u" -string(7) " 100000" -string(7) "100000 " -string(7) " 100000" -string(7) " -100000" -string(6) "100000" -string(30) " 100000" -string(4) "0-9]" -string(1) "u" - --- Iteration 14 -- -string(9) "100000000" -string(1) "u" -string(9) "100000000" -string(1) "u" -string(10) " 100000000" -string(10) "100000000 " -string(10) " 100000000" -string(10) " -100000000" -string(9) "100000000" -string(30) " 100000000" -string(4) "0-9]" -string(1) "u" - --- Iteration 15 -- -string(10) "3294967296" -string(1) "u" -string(10) "3294967296" -string(1) "u" -string(11) " 3294967296" -string(11) "3294967296 " -string(11) " 3294967296" -string(11) " -3294967296" -string(10) "3294967296" -string(30) " 3294967296" -string(4) "0-9]" -string(1) "u" - --- Iteration 16 -- -string(2) "10" -string(1) "u" -string(2) "10" -string(1) "u" -string(3) " 10" -string(3) "10 " -string(3) " 10" -string(3) " -10" -string(4) " 10" -string(30) " 10" -string(4) "0-9]" -string(1) "u" - --- Iteration 17 -- -string(7) "1050000" -string(1) "u" -string(7) "1050000" -string(1) "u" -string(8) " 1050000" -string(8) "1050000 " -string(8) " 1050000" -string(8) " -1050000" -string(7) "1050000" -string(30) " 1050000" -string(4) "0-9]" -string(1) "u" -Done ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : unsigned formats with float values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation41_64bit.phpt b/ext/standard/tests/strings/sprintf_variation41_64bit.phpt index df713c87d1..651da4cecb 100644 --- a/ext/standard/tests/strings/sprintf_variation41_64bit.phpt +++ b/ext/standard/tests/strings/sprintf_variation41_64bit.phpt @@ -52,265 +52,7 @@ foreach($float_values as $float_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : unsigned formats with float values *** - --- Iteration 1 -- -string(10) "2147483647" -string(1) "u" -string(10) "2147483647" -string(1) "u" -string(11) " 2147483647" -string(11) "2147483647 " -string(11) " 2147483647" -string(11) " -2147483647" -string(10) "2147483647" -string(30) " 2147483647" -string(4) "0-9]" -string(1) "u" - --- Iteration 2 -- -string(11) "34359738369" -string(1) "u" -string(11) "34359738369" -string(1) "u" -string(12) " 34359738369" -string(12) "34359738369 " -string(12) " 34359738369" -string(12) " -34359738369" -string(11) "34359738369" -string(30) " 34359738369" -string(4) "0-9]" -string(1) "u" - --- Iteration 3 -- -string(10) "2147483649" -string(1) "u" -string(10) "2147483649" -string(1) "u" -string(11) " 2147483649" -string(11) "2147483649 " -string(11) " 2147483649" -string(11) " -2147483649" -string(10) "2147483649" -string(30) " 2147483649" -string(4) "0-9]" -string(1) "u" - --- Iteration 4 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 5 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 6 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 7 -- -string(6) "100000" -string(1) "u" -string(6) "100000" -string(1) "u" -string(7) " 100000" -string(7) "100000 " -string(7) " 100000" -string(7) " -100000" -string(6) "100000" -string(30) " 100000" -string(4) "0-9]" -string(1) "u" - --- Iteration 8 -- -string(6) "500000" -string(1) "u" -string(6) "500000" -string(1) "u" -string(7) " 500000" -string(7) "500000 " -string(7) " 500000" -string(7) " -500000" -string(6) "500000" -string(30) " 500000" -string(4) "0-9]" -string(1) "u" - --- Iteration 9 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 10 -- -string(20) "18446744073709451616" -string(1) "u" -string(20) "18446744073709451616" -string(1) "u" -string(21) " 18446744073709451616" -string(21) "18446744073709451616 " -string(21) " 18446744073709451616" -string(21) " -18446744073709451616" -string(20) "18446744073709451616" -string(30) " 18446744073709451616" -string(4) "0-9]" -string(1) "u" - --- Iteration 11 -- -string(20) "18446744073709451616" -string(1) "u" -string(20) "18446744073709451616" -string(1) "u" -string(21) " 18446744073709451616" -string(21) "18446744073709451616 " -string(21) " 18446744073709451616" -string(21) " -18446744073709451616" -string(20) "18446744073709451616" -string(30) " 18446744073709451616" -string(4) "0-9]" -string(1) "u" - --- Iteration 12 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 13 -- -string(6) "100000" -string(1) "u" -string(6) "100000" -string(1) "u" -string(7) " 100000" -string(7) "100000 " -string(7) " 100000" -string(7) " -100000" -string(6) "100000" -string(30) " 100000" -string(4) "0-9]" -string(1) "u" - --- Iteration 14 -- -string(9) "100000000" -string(1) "u" -string(9) "100000000" -string(1) "u" -string(10) " 100000000" -string(10) "100000000 " -string(10) " 100000000" -string(10) " -100000000" -string(9) "100000000" -string(30) " 100000000" -string(4) "0-9]" -string(1) "u" - --- Iteration 15 -- -string(20) "18446744072709551616" -string(1) "u" -string(20) "18446744072709551616" -string(1) "u" -string(21) " 18446744072709551616" -string(21) "18446744072709551616 " -string(21) " 18446744072709551616" -string(21) " -18446744072709551616" -string(20) "18446744072709551616" -string(30) " 18446744072709551616" -string(4) "0-9]" -string(1) "u" - --- Iteration 16 -- -string(2) "10" -string(1) "u" -string(2) "10" -string(1) "u" -string(3) " 10" -string(3) "10 " -string(3) " 10" -string(3) " -10" -string(4) " 10" -string(30) " 10" -string(4) "0-9]" -string(1) "u" - --- Iteration 17 -- -string(7) "1050000" -string(1) "u" -string(7) "1050000" -string(1) "u" -string(8) " 1050000" -string(8) "1050000 " -string(8) " 1050000" -string(8) " -1050000" -string(7) "1050000" -string(30) " 1050000" -string(4) "0-9]" -string(1) "u" -Done ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : unsigned formats with float values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation42.phpt b/ext/standard/tests/strings/sprintf_variation42.phpt index 46fefb6d4c..30ff6c4616 100644 --- a/ext/standard/tests/strings/sprintf_variation42.phpt +++ b/ext/standard/tests/strings/sprintf_variation42.phpt @@ -48,39 +48,6 @@ echo "Done"; *** Testing sprintf() : unsigned formats with resource values *** -- Iteration 1 -- -string(%d) "%d" -string(1) "u" -string(%d) "%d" -string(1) "u" -string(%d) " %d" -string(%d) "%d " -string(%d) " %d" -string(%d) " -%d" -string(%d) "%s%d" -string(%d) "%s%d" -string(%d) "0-9]" -string(1) "u" - --- Iteration 2 -- -string(%d) "%d" -string(1) "u" -string(%d) "%d" -string(1) "u" -string(%d) " %d" -string(%d) "%d " -string(%d) " %d" -string(%d) " -%d" -string(%d) "%s%d" -string(%d) "%s%d" -string(%d) "0-9]" -string(1) "u" -Done ---UEXPECTF-- -*** Testing sprintf() : unsigned formats with resource values *** - --- Iteration 1 -- unicode(%d) "%d" unicode(1) "u" unicode(%d) "%d" diff --git a/ext/standard/tests/strings/sprintf_variation43.phpt b/ext/standard/tests/strings/sprintf_variation43.phpt index 15b217420e..2dcddeca3a 100644 --- a/ext/standard/tests/strings/sprintf_variation43.phpt +++ b/ext/standard/tests/strings/sprintf_variation43.phpt @@ -47,221 +47,7 @@ foreach($array_values as $array_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : unsigned formats with array values *** - --- Iteration 1 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 2 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 3 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 4 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 5 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 6 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 7 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 8 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 9 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 10 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 11 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 12 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 13 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 14 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : unsigned formats with array values *** -- Iteration 1 -- @@ -473,4 +259,4 @@ unicode(4) " 1" unicode(30) " 1" unicode(4) "0-9]" unicode(1) "u" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation44.phpt b/ext/standard/tests/strings/sprintf_variation44.phpt index 411fe10e73..9a5509bda8 100644 --- a/ext/standard/tests/strings/sprintf_variation44.phpt +++ b/ext/standard/tests/strings/sprintf_variation44.phpt @@ -56,311 +56,7 @@ foreach($string_values as $string_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : unsigned formats with string values *** - --- Iteration 1 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 2 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 3 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 4 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 5 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 6 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 7 -- -string(10) "4294967173" -string(1) "u" -string(10) "4294967173" -string(1) "u" -string(11) " 4294967173" -string(11) "4294967173 " -string(11) " 4294967173" -string(11) " -4294967173" -string(10) "4294967173" -string(30) " 4294967173" -string(4) "0-9]" -string(1) "u" - --- Iteration 8 -- -string(3) "123" -string(1) "u" -string(3) "123" -string(1) "u" -string(4) " 123" -string(4) "123 " -string(4) " 123" -string(4) " -123" -string(4) " 123" -string(30) " 123" -string(4) "0-9]" -string(1) "u" - --- Iteration 9 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 10 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 11 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 12 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 13 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 14 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 15 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 16 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 17 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 18 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 19 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 20 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : unsigned formats with string values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation44_64bit.phpt b/ext/standard/tests/strings/sprintf_variation44_64bit.phpt index c4ae408e66..0896ed53f7 100644 --- a/ext/standard/tests/strings/sprintf_variation44_64bit.phpt +++ b/ext/standard/tests/strings/sprintf_variation44_64bit.phpt @@ -56,311 +56,7 @@ foreach($string_values as $string_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : unsigned formats with string values *** - --- Iteration 1 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 2 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 3 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 4 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 5 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 6 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 7 -- -string(20) "18446744073709551493" -string(1) "u" -string(20) "18446744073709551493" -string(1) "u" -string(21) " 18446744073709551493" -string(21) "18446744073709551493 " -string(21) " 18446744073709551493" -string(21) " -18446744073709551493" -string(20) "18446744073709551493" -string(30) " 18446744073709551493" -string(4) "0-9]" -string(1) "u" - --- Iteration 8 -- -string(3) "123" -string(1) "u" -string(3) "123" -string(1) "u" -string(4) " 123" -string(4) "123 " -string(4) " 123" -string(4) " -123" -string(4) " 123" -string(30) " 123" -string(4) "0-9]" -string(1) "u" - --- Iteration 9 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 10 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 11 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 12 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 13 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 14 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 15 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 16 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 17 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 18 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 19 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 20 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : unsigned formats with string values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation45.phpt b/ext/standard/tests/strings/sprintf_variation45.phpt index 6e02dc66a0..5d3bf466e6 100644 --- a/ext/standard/tests/strings/sprintf_variation45.phpt +++ b/ext/standard/tests/strings/sprintf_variation45.phpt @@ -37,71 +37,7 @@ foreach($boolean_values as $boolean_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : unsigned formats with boolean values *** - --- Iteration 1 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 2 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" - --- Iteration 3 -- -string(1) "1" -string(1) "u" -string(1) "1" -string(1) "u" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "u" - --- Iteration 4 -- -string(1) "0" -string(1) "u" -string(1) "0" -string(1) "u" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "u" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : unsigned formats with boolean values *** -- Iteration 1 -- @@ -163,4 +99,4 @@ unicode(4) " 0" unicode(30) " 0" unicode(4) "0-9]" unicode(1) "u" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation46.phpt b/ext/standard/tests/strings/sprintf_variation46.phpt index 1a8293b676..33d137f6fa 100644 --- a/ext/standard/tests/strings/sprintf_variation46.phpt +++ b/ext/standard/tests/strings/sprintf_variation46.phpt @@ -51,281 +51,7 @@ foreach($integer_values as $integer_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : scientific formats with integer values *** - --- Iteration 1 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 2 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 3 -- -string(12) "-1.000000e+0" -string(1) "e" -string(12) "-1.000000e+0" -string(1) "e" -string(13) " -1.000000e+0" -string(13) "-1.000000e+0 " -string(13) " -1.000000e+0" -string(13) " --1.000000e+0" -string(12) "-1.000000e+0" -string(30) " -1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 4 -- -string(12) "-2.147484e+9" -string(1) "e" -string(12) "-2.147484e+9" -string(1) "e" -string(13) " -2.147484e+9" -string(13) "-2.147484e+9 " -string(13) " -2.147484e+9" -string(13) " --2.147484e+9" -string(12) "-2.147484e+9" -string(30) " -2.147484e+9" -string(4) "0-1]" -string(1) "e" - --- Iteration 5 -- -string(12) "-2.147484e+9" -string(1) "e" -string(12) "-2.147484e+9" -string(1) "e" -string(13) " -2.147484e+9" -string(13) "-2.147484e+9 " -string(13) " -2.147484e+9" -string(13) " --2.147484e+9" -string(12) "-2.147484e+9" -string(30) " -2.147484e+9" -string(4) "0-1]" -string(1) "e" - --- Iteration 6 -- -string(11) "2.147484e+9" -string(1) "e" -string(11) "2.147484e+9" -string(1) "e" -string(12) " 2.147484e+9" -string(12) "2.147484e+9 " -string(12) " 2.147484e+9" -string(12) " -2.147484e+9" -string(11) "2.147484e+9" -string(30) " 2.147484e+9" -string(4) "0-1]" -string(1) "e" - --- Iteration 7 -- -string(11) "2.147484e+9" -string(1) "e" -string(11) "2.147484e+9" -string(1) "e" -string(12) " 2.147484e+9" -string(12) "2.147484e+9 " -string(12) " 2.147484e+9" -string(12) " -2.147484e+9" -string(11) "2.147484e+9" -string(30) " 2.147484e+9" -string(4) "0-1]" -string(1) "e" - --- Iteration 8 -- -string(11) "4.667000e+3" -string(1) "e" -string(11) "4.667000e+3" -string(1) "e" -string(12) " 4.667000e+3" -string(12) "4.667000e+3 " -string(12) " 4.667000e+3" -string(12) " -4.667000e+3" -string(11) "4.667000e+3" -string(30) " 4.667000e+3" -string(4) "0-1]" -string(1) "e" - --- Iteration 9 -- -string(11) "4.779000e+3" -string(1) "e" -string(11) "4.779000e+3" -string(1) "e" -string(12) " 4.779000e+3" -string(12) "4.779000e+3 " -string(12) " 4.779000e+3" -string(12) " -4.779000e+3" -string(11) "4.779000e+3" -string(30) " 4.779000e+3" -string(4) "0-1]" -string(1) "e" - --- Iteration 10 -- -string(11) "4.095000e+3" -string(1) "e" -string(11) "4.095000e+3" -string(1) "e" -string(12) " 4.095000e+3" -string(12) "4.095000e+3 " -string(12) " 4.095000e+3" -string(12) " -4.095000e+3" -string(11) "4.095000e+3" -string(30) " 4.095000e+3" -string(4) "0-1]" -string(1) "e" - --- Iteration 11 -- -string(11) "2.500000e+2" -string(1) "e" -string(11) "2.500000e+2" -string(1) "e" -string(12) " 2.500000e+2" -string(12) "2.500000e+2 " -string(12) " 2.500000e+2" -string(12) " -2.500000e+2" -string(11) "2.500000e+2" -string(30) " 2.500000e+2" -string(4) "0-1]" -string(1) "e" - --- Iteration 12 -- -string(12) "-2.147484e+9" -string(1) "e" -string(12) "-2.147484e+9" -string(1) "e" -string(13) " -2.147484e+9" -string(13) "-2.147484e+9 " -string(13) " -2.147484e+9" -string(13) " --2.147484e+9" -string(12) "-2.147484e+9" -string(30) " -2.147484e+9" -string(4) "0-1]" -string(1) "e" - --- Iteration 13 -- -string(11) "2.147484e+9" -string(1) "e" -string(11) "2.147484e+9" -string(1) "e" -string(12) " 2.147484e+9" -string(12) "2.147484e+9 " -string(12) " 2.147484e+9" -string(12) " -2.147484e+9" -string(11) "2.147484e+9" -string(30) " 2.147484e+9" -string(4) "0-1]" -string(1) "e" - --- Iteration 14 -- -string(11) "2.147484e+9" -string(1) "e" -string(11) "2.147484e+9" -string(1) "e" -string(12) " 2.147484e+9" -string(12) "2.147484e+9 " -string(12) " 2.147484e+9" -string(12) " -2.147484e+9" -string(11) "2.147484e+9" -string(30) " 2.147484e+9" -string(4) "0-1]" -string(1) "e" - --- Iteration 15 -- -string(11) "8.300000e+1" -string(1) "e" -string(11) "8.300000e+1" -string(1) "e" -string(12) " 8.300000e+1" -string(12) "8.300000e+1 " -string(12) " 8.300000e+1" -string(12) " -8.300000e+1" -string(11) "8.300000e+1" -string(30) " 8.300000e+1" -string(4) "0-1]" -string(1) "e" - --- Iteration 16 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 17 -- -string(12) "-2.147484e+9" -string(1) "e" -string(12) "-2.147484e+9" -string(1) "e" -string(13) " -2.147484e+9" -string(13) "-2.147484e+9 " -string(13) " -2.147484e+9" -string(13) " --2.147484e+9" -string(12) "-2.147484e+9" -string(30) " -2.147484e+9" -string(4) "0-1]" -string(1) "e" - --- Iteration 18 -- -string(11) "2.147484e+9" -string(1) "e" -string(11) "2.147484e+9" -string(1) "e" -string(12) " 2.147484e+9" -string(12) "2.147484e+9 " -string(12) " 2.147484e+9" -string(12) " -2.147484e+9" -string(11) "2.147484e+9" -string(30) " 2.147484e+9" -string(4) "0-1]" -string(1) "e" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : scientific formats with integer values *** -- Iteration 1 -- @@ -597,4 +323,4 @@ unicode(11) "2.147484e+9" unicode(30) " 2.147484e+9" unicode(4) "0-1]" unicode(1) "e" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation47.phpt b/ext/standard/tests/strings/sprintf_variation47.phpt index cf6b1cb48f..a7d878b49a 100644 --- a/ext/standard/tests/strings/sprintf_variation47.phpt +++ b/ext/standard/tests/strings/sprintf_variation47.phpt @@ -53,296 +53,7 @@ foreach($float_values as $float_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : scientific formats with float values *** - --- Iteration 1 -- -string(12) "-2.147484e+9" -string(1) "e" -string(12) "-2.147484e+9" -string(1) "e" -string(13) " -2.147484e+9" -string(13) "-2.147484e+9 " -string(13) " -2.147484e+9" -string(13) " --2.147484e+9" -string(12) "-2.147484e+9" -string(30) " -2.147484e+9" -string(4) "0-1]" -string(1) "e" - --- Iteration 2 -- -string(11) "2.147484e+9" -string(1) "e" -string(11) "2.147484e+9" -string(1) "e" -string(12) " 2.147484e+9" -string(12) "2.147484e+9 " -string(12) " 2.147484e+9" -string(12) " -2.147484e+9" -string(11) "2.147484e+9" -string(30) " 2.147484e+9" -string(4) "0-1]" -string(1) "e" - --- Iteration 3 -- -string(12) "-2.147484e+9" -string(1) "e" -string(12) "-2.147484e+9" -string(1) "e" -string(13) " -2.147484e+9" -string(13) "-2.147484e+9 " -string(13) " -2.147484e+9" -string(13) " --2.147484e+9" -string(12) "-2.147484e+9" -string(30) " -2.147484e+9" -string(4) "0-1]" -string(1) "e" - --- Iteration 4 -- -string(12) "3.435974e+10" -string(1) "e" -string(12) "3.435974e+10" -string(1) "e" -string(13) " 3.435974e+10" -string(13) "3.435974e+10 " -string(13) " 3.435974e+10" -string(13) " -3.435974e+10" -string(12) "3.435974e+10" -string(30) " 3.435974e+10" -string(4) "0-1]" -string(1) "e" - --- Iteration 5 -- -string(11) "2.147484e+9" -string(1) "e" -string(11) "2.147484e+9" -string(1) "e" -string(12) " 2.147484e+9" -string(12) "2.147484e+9 " -string(12) " 2.147484e+9" -string(12) " -2.147484e+9" -string(11) "2.147484e+9" -string(30) " 2.147484e+9" -string(4) "0-1]" -string(1) "e" - --- Iteration 6 -- -string(12) "-2.147484e+9" -string(1) "e" -string(12) "-2.147484e+9" -string(1) "e" -string(13) " -2.147484e+9" -string(13) "-2.147484e+9 " -string(13) " -2.147484e+9" -string(13) " --2.147484e+9" -string(12) "-2.147484e+9" -string(30) " -2.147484e+9" -string(4) "0-1]" -string(1) "e" - --- Iteration 7 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 8 -- -string(12) "-1.000000e-1" -string(1) "e" -string(12) "-1.000000e-1" -string(1) "e" -string(13) " -1.000000e-1" -string(13) "-1.000000e-1 " -string(13) " -1.000000e-1" -string(13) " --1.000000e-1" -string(12) "-1.000000e-1" -string(30) " -1.000000e-1" -string(4) "0-1]" -string(1) "e" - --- Iteration 9 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 10 -- -string(11) "1.000000e+5" -string(1) "e" -string(11) "1.000000e+5" -string(1) "e" -string(12) " 1.000000e+5" -string(12) "1.000000e+5 " -string(12) " 1.000000e+5" -string(12) " -1.000000e+5" -string(11) "1.000000e+5" -string(30) " 1.000000e+5" -string(4) "0-1]" -string(1) "e" - --- Iteration 11 -- -string(12) "-1.000000e+5" -string(1) "e" -string(12) "-1.000000e+5" -string(1) "e" -string(13) " -1.000000e+5" -string(13) "-1.000000e+5 " -string(13) " -1.000000e+5" -string(13) " --1.000000e+5" -string(12) "-1.000000e+5" -string(30) " -1.000000e+5" -string(4) "0-1]" -string(1) "e" - --- Iteration 12 -- -string(12) "-1.000000e+5" -string(1) "e" -string(12) "-1.000000e+5" -string(1) "e" -string(13) " -1.000000e+5" -string(13) "-1.000000e+5 " -string(13) " -1.000000e+5" -string(13) " --1.000000e+5" -string(12) "-1.000000e+5" -string(30) " -1.000000e+5" -string(4) "0-1]" -string(1) "e" - --- Iteration 13 -- -string(11) "1.000000e+5" -string(1) "e" -string(11) "1.000000e+5" -string(1) "e" -string(12) " 1.000000e+5" -string(12) "1.000000e+5 " -string(12) " 1.000000e+5" -string(12) " -1.000000e+5" -string(11) "1.000000e+5" -string(30) " 1.000000e+5" -string(4) "0-1]" -string(1) "e" - --- Iteration 14 -- -string(11) "1.000000e+5" -string(1) "e" -string(11) "1.000000e+5" -string(1) "e" -string(12) " 1.000000e+5" -string(12) "1.000000e+5 " -string(12) " 1.000000e+5" -string(12) " -1.000000e+5" -string(11) "1.000000e+5" -string(30) " 1.000000e+5" -string(4) "0-1]" -string(1) "e" - --- Iteration 15 -- -string(12) "-1.000000e-5" -string(1) "e" -string(12) "-1.000000e-5" -string(1) "e" -string(13) " -1.000000e-5" -string(13) "-1.000000e-5 " -string(13) " -1.000000e-5" -string(13) " --1.000000e-5" -string(12) "-1.000000e-5" -string(30) " -1.000000e-5" -string(4) "0-1]" -string(1) "e" - --- Iteration 16 -- -string(11) "1.000000e+8" -string(1) "e" -string(11) "1.000000e+8" -string(1) "e" -string(12) " 1.000000e+8" -string(12) "1.000000e+8 " -string(12) " 1.000000e+8" -string(12) " -1.000000e+8" -string(11) "1.000000e+8" -string(30) " 1.000000e+8" -string(4) "0-1]" -string(1) "e" - --- Iteration 17 -- -string(12) "-1.000000e+9" -string(1) "e" -string(12) "-1.000000e+9" -string(1) "e" -string(13) " -1.000000e+9" -string(13) "-1.000000e+9 " -string(13) " -1.000000e+9" -string(13) " --1.000000e+9" -string(12) "-1.000000e+9" -string(30) " -1.000000e+9" -string(4) "0-1]" -string(1) "e" - --- Iteration 18 -- -string(11) "1.000000e+1" -string(1) "e" -string(11) "1.000000e+1" -string(1) "e" -string(12) " 1.000000e+1" -string(12) "1.000000e+1 " -string(12) " 1.000000e+1" -string(12) " -1.000000e+1" -string(11) "1.000000e+1" -string(30) " 1.000000e+1" -string(4) "0-1]" -string(1) "e" - --- Iteration 19 -- -string(11) "1.050000e+6" -string(1) "e" -string(11) "1.050000e+6" -string(1) "e" -string(12) " 1.050000e+6" -string(12) "1.050000e+6 " -string(12) " 1.050000e+6" -string(12) " -1.050000e+6" -string(11) "1.050000e+6" -string(30) " 1.050000e+6" -string(4) "0-1]" -string(1) "e" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : scientific formats with float values *** -- Iteration 1 -- @@ -629,4 +340,4 @@ unicode(11) "1.050000e+6" unicode(30) " 1.050000e+6" unicode(4) "0-1]" unicode(1) "e" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation48.phpt b/ext/standard/tests/strings/sprintf_variation48.phpt index 0acc5a8d2c..949f448fa2 100644 --- a/ext/standard/tests/strings/sprintf_variation48.phpt +++ b/ext/standard/tests/strings/sprintf_variation48.phpt @@ -48,39 +48,6 @@ echo "Done"; *** Testing sprintf() : scientific formats with resource values *** -- Iteration 1 -- -string(%d) "%f" -string(1) "e" -string(%d) "%f" -string(1) "e" -string(%d) " %f" -string(%d) "%f " -string(%d) " %f" -string(%d) " -%f" -string(%d) "%f" -string(%d) "%s%f" -string(%d) "0-1]" -string(1) "e" - --- Iteration 2 -- -string(%d) "%f" -string(1) "e" -string(%d) "%f" -string(1) "e" -string(%d) " %f" -string(%d) "%f " -string(%d) " %f" -string(%d) " -%f" -string(%d) "%f" -string(%d) "%s%f" -string(%d) "0-1]" -string(1) "e" -Done ---UEXPECTF-- -*** Testing sprintf() : scientific formats with resource values *** - --- Iteration 1 -- unicode(%d) "%f" unicode(1) "e" unicode(%d) "%f" diff --git a/ext/standard/tests/strings/sprintf_variation49.phpt b/ext/standard/tests/strings/sprintf_variation49.phpt index e5c75c2cac..dac4775afb 100644 --- a/ext/standard/tests/strings/sprintf_variation49.phpt +++ b/ext/standard/tests/strings/sprintf_variation49.phpt @@ -48,236 +48,7 @@ foreach($array_values as $array_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : scientific formats with array values *** - --- Iteration 1 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 2 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 3 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 4 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 5 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 6 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 7 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 8 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 9 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 10 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 11 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 12 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 13 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 14 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 15 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : scientific formats with array values *** -- Iteration 1 -- @@ -504,4 +275,4 @@ unicode(11) "1.000000e+0" unicode(30) " 1.000000e+0" unicode(4) "0-1]" unicode(1) "e" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation4_64bit.phpt b/ext/standard/tests/strings/sprintf_variation4_64bit.phpt index 119fc7e88e..194e1c69d4 100644 --- a/ext/standard/tests/strings/sprintf_variation4_64bit.phpt +++ b/ext/standard/tests/strings/sprintf_variation4_64bit.phpt @@ -48,190 +48,7 @@ foreach($float_values as $float_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : integer formats with float values *** - --- Iteration 1 -- -string(10) "2147483648" -string(1) "d" -string(10) "2147483648" -string(1) "d" -string(11) " 2147483648" -string(11) "2147483648 " -string(11) " 2147483648" -string(11) " -2147483648" -string(10) "2147483648" -string(30) " 2147483648" -string(4) "0-9]" -string(1) "d" - --- Iteration 2 -- -string(11) "34359738369" -string(1) "d" -string(11) "34359738369" -string(1) "d" -string(12) " 34359738369" -string(12) "34359738369 " -string(12) " 34359738369" -string(12) " -34359738369" -string(11) "34359738369" -string(30) " 34359738369" -string(4) "0-9]" -string(1) "d" - --- Iteration 3 -- -string(10) "2147483649" -string(1) "d" -string(10) "2147483649" -string(1) "d" -string(11) " 2147483649" -string(11) "2147483649 " -string(11) " 2147483649" -string(11) " -2147483649" -string(10) "2147483649" -string(30) " 2147483649" -string(4) "0-9]" -string(1) "d" - --- Iteration 4 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 5 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 6 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 7 -- -string(6) "100000" -string(1) "d" -string(6) "100000" -string(1) "d" -string(7) " 100000" -string(7) "100000 " -string(7) " 100000" -string(7) " -100000" -string(6) "100000" -string(30) " 100000" -string(4) "0-9]" -string(1) "d" - --- Iteration 8 -- -string(8) "-1000000" -string(1) "d" -string(8) "-1000000" -string(1) "d" -string(9) " -1000000" -string(9) "-1000000 " -string(9) " -1000000" -string(9) " --1000000" -string(8) "-1000000" -string(30) " -1000000" -string(4) "0-9]" -string(1) "d" - --- Iteration 9 -- -string(9) "100000000" -string(1) "d" -string(9) "100000000" -string(1) "d" -string(10) " 100000000" -string(10) "100000000 " -string(10) " 100000000" -string(10) " -100000000" -string(9) "100000000" -string(30) " 100000000" -string(4) "0-9]" -string(1) "d" - --- Iteration 10 -- -string(11) "-1000000000" -string(1) "d" -string(11) "-1000000000" -string(1) "d" -string(12) " -1000000000" -string(12) "-1000000000 " -string(12) " -1000000000" -string(12) " --1000000000" -string(11) "-1000000000" -string(30) " -1000000000" -string(4) "0-9]" -string(1) "d" - --- Iteration 11 -- -string(2) "10" -string(1) "d" -string(2) "10" -string(1) "d" -string(3) " 10" -string(3) "10 " -string(3) " 10" -string(3) " -10" -string(4) " 10" -string(30) " 10" -string(4) "0-9]" -string(1) "d" - --- Iteration 12 -- -string(7) "1050000" -string(1) "d" -string(7) "1050000" -string(1) "d" -string(8) " 1050000" -string(8) "1050000 " -string(8) " 1050000" -string(8) " -1050000" -string(7) "1050000" -string(30) " 1050000" -string(4) "0-9]" -string(1) "d" -Done ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : integer formats with float values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/sprintf_variation5.phpt b/ext/standard/tests/strings/sprintf_variation5.phpt index afcdb1a9a5..68f6f6f2dc 100644 --- a/ext/standard/tests/strings/sprintf_variation5.phpt +++ b/ext/standard/tests/strings/sprintf_variation5.phpt @@ -50,31 +50,6 @@ echo "Done"; *** Testing sprintf() : integer formats with resource values *** -- Iteration 1 -- -string(%d) "%d" -string(1) "d" -string(%d) " %d" -string(%d) " %d" -string(%d) " -%d" -string(%d) "%s%d" -string(%d) "0-9]" -string(1) "d" - --- Iteration 2 -- -string(%d) "%d" -string(1) "d" -string(%d) " %d" -string(%d) " %d" -string(%d) " -%d" -string(%d) "%s%d" -string(%d) "0-9]" -string(1) "d" -Done ---UEXPECTF-- -*** Testing sprintf() : integer formats with resource values *** - --- Iteration 1 -- unicode(%d) "%d" unicode(1) "d" unicode(%d) " %d" diff --git a/ext/standard/tests/strings/sprintf_variation50.phpt b/ext/standard/tests/strings/sprintf_variation50.phpt index f3319f08c8..9c5514dd2c 100644 --- a/ext/standard/tests/strings/sprintf_variation50.phpt +++ b/ext/standard/tests/strings/sprintf_variation50.phpt @@ -53,296 +53,7 @@ foreach($string_values as $string_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : scientific formats with string values *** - --- Iteration 1 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 2 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 3 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 4 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 5 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 6 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 7 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 8 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 9 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 10 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 11 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 12 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 13 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 14 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 15 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 16 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 17 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 18 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 19 -- -string(12) "3.333333e+29" -string(1) "e" -string(12) "3.333333e+29" -string(1) "e" -string(13) " 3.333333e+29" -string(13) "3.333333e+29 " -string(13) " 3.333333e+29" -string(13) " -3.333333e+29" -string(12) "3.333333e+29" -string(30) " 3.333333e+29" -string(4) "0-1]" -string(1) "e" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : scientific formats with string values *** -- Iteration 1 -- @@ -629,4 +340,4 @@ unicode(12) "3.333333e+29" unicode(30) " 3.333333e+29" unicode(4) "0-1]" unicode(1) "e" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation51.phpt b/ext/standard/tests/strings/sprintf_variation51.phpt index 04091fd433..762a9228a6 100644 --- a/ext/standard/tests/strings/sprintf_variation51.phpt +++ b/ext/standard/tests/strings/sprintf_variation51.phpt @@ -37,71 +37,7 @@ foreach($boolean_values as $boolean_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : scientific formats with boolean values *** - --- Iteration 1 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 2 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 3 -- -string(11) "1.000000e+0" -string(1) "e" -string(11) "1.000000e+0" -string(1) "e" -string(12) " 1.000000e+0" -string(12) "1.000000e+0 " -string(12) " 1.000000e+0" -string(12) " -1.000000e+0" -string(11) "1.000000e+0" -string(30) " 1.000000e+0" -string(4) "0-1]" -string(1) "e" - --- Iteration 4 -- -string(11) "0.000000e+0" -string(1) "e" -string(11) "0.000000e+0" -string(1) "e" -string(12) " 0.000000e+0" -string(12) "0.000000e+0 " -string(12) " 0.000000e+0" -string(12) " -0.000000e+0" -string(11) "0.000000e+0" -string(30) " 0.000000e+0" -string(4) "0-1]" -string(1) "e" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : scientific formats with boolean values *** -- Iteration 1 -- @@ -163,4 +99,4 @@ unicode(11) "0.000000e+0" unicode(30) " 0.000000e+0" unicode(4) "0-1]" unicode(1) "e" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation52.phpt b/ext/standard/tests/strings/sprintf_variation52.phpt index c68b2f3e61..e44a6fa4f1 100644 --- a/ext/standard/tests/strings/sprintf_variation52.phpt +++ b/ext/standard/tests/strings/sprintf_variation52.phpt @@ -36,33 +36,7 @@ var_dump(sprintf("%s", $tempstring, $tempstring, $tempstring)); echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : with typical format strings *** - --- Testing for '%%%.2f' as the format parameter -- -string(15) "%12345678900.00" - --- Testing for '%%' as the format parameter -- -string(1) "%" - --- Testing for precision value more than maximum -- -string(52) "12345678900.0000000000000000000000000000000000000000" - --- Testing for invalid width(-15) specifier -- -string(3) "15s" - --- Testing for '%X' as the format parameter -- -string(1) "C" - --- Testing for multiple format parameters -- -string(39) "12345 abcdefghjklmnpqrstuvwxyz 12345 -" - --- Testing for excess of mixed type arguments -- -string(24) "abcdefghjklmnpqrstuvwxyz" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : with typical format strings *** -- Testing for '%%%.2f' as the format parameter -- @@ -86,4 +60,4 @@ unicode(39) "12345 abcdefghjklmnpqrstuvwxyz 12345 -- Testing for excess of mixed type arguments -- unicode(24) "abcdefghjklmnpqrstuvwxyz" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation53.phpt b/ext/standard/tests/strings/sprintf_variation53.phpt index fb858c4832..106a3f5a7e 100644 --- a/ext/standard/tests/strings/sprintf_variation53.phpt +++ b/ext/standard/tests/strings/sprintf_variation53.phpt @@ -32,44 +32,7 @@ foreach($formats as $format) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : with white spaces in format strings *** -string(4) "1234" -string(4) "1234" -string(4) "1234" -string(11) "1234.000000" -string(11) "1234.000000" -string(11) "1234.000000" -string(11) "1234.000000" -string(11) "1234.000000" -string(11) "1234.000000" -string(11) "10011010010" -string(11) "10011010010" -string(11) "10011010010" -string(1) "Ò" -string(1) "Ò" -string(1) "Ò" -string(11) "1.234000e+3" -string(11) "1.234000e+3" -string(11) "1.234000e+3" -string(4) "1234" -string(4) "1234" -string(4) "1234" -string(4) "2322" -string(4) "2322" -string(4) "2322" -string(3) "4d2" -string(3) "4d2" -string(3) "4d2" -string(3) "4D2" -string(3) "4D2" -string(3) "4D2" -string(11) "1.234000E+3" -string(11) "1.234000E+3" -string(11) "1.234000E+3" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : with white spaces in format strings *** unicode(4) "1234" unicode(4) "1234" @@ -104,4 +67,4 @@ unicode(3) "4D2" unicode(11) "1.234000E+3" unicode(11) "1.234000E+3" unicode(11) "1.234000E+3" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation6.phpt b/ext/standard/tests/strings/sprintf_variation6.phpt index 0b9fc045ca..044047bc13 100644 --- a/ext/standard/tests/strings/sprintf_variation6.phpt +++ b/ext/standard/tests/strings/sprintf_variation6.phpt @@ -48,236 +48,7 @@ foreach($array_types as $arr) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : integer formats with arrays *** - --- Iteration 1 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 2 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 3 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 4 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 5 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 6 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 7 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 8 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 9 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 10 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 11 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 12 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 13 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 14 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 15 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : integer formats with arrays *** -- Iteration 1 -- @@ -504,4 +275,4 @@ unicode(4) " 1" unicode(30) " 1" unicode(4) "0-9]" unicode(1) "d" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation7.phpt b/ext/standard/tests/strings/sprintf_variation7.phpt index 3f5cbda2f5..22f1c56339 100644 --- a/ext/standard/tests/strings/sprintf_variation7.phpt +++ b/ext/standard/tests/strings/sprintf_variation7.phpt @@ -37,71 +37,7 @@ foreach($boolean_values as $boolean_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : integer formats with boolean values *** - --- Iteration 1 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 2 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 3 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 4 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : integer formats with boolean values *** -- Iteration 1 -- @@ -163,4 +99,4 @@ unicode(4) " 0" unicode(30) " 0" unicode(4) "0-9]" unicode(1) "d" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation8.phpt b/ext/standard/tests/strings/sprintf_variation8.phpt index e4323dc57d..df980047e8 100644 --- a/ext/standard/tests/strings/sprintf_variation8.phpt +++ b/ext/standard/tests/strings/sprintf_variation8.phpt @@ -54,326 +54,7 @@ foreach($string_values as $string_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : integer formats with string values *** - --- Iteration 1 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 2 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 3 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 4 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 5 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 6 -- -string(1) "1" -string(1) "d" -string(1) "1" -string(1) "d" -string(2) " 1" -string(2) "1 " -string(2) " 1" -string(2) " -1" -string(4) " 1" -string(30) " 1" -string(4) "0-9]" -string(1) "d" - --- Iteration 7 -- -string(4) "-123" -string(1) "d" -string(4) "-123" -string(1) "d" -string(5) " -123" -string(5) "-123 " -string(5) " -123" -string(5) " --123" -string(4) "-123" -string(30) " -123" -string(4) "0-9]" -string(1) "d" - --- Iteration 8 -- -string(3) "123" -string(1) "d" -string(3) "123" -string(1) "d" -string(4) " 123" -string(4) "123 " -string(4) " 123" -string(4) " -123" -string(4) " 123" -string(30) " 123" -string(4) "0-9]" -string(1) "d" - --- Iteration 9 -- -string(3) "123" -string(1) "d" -string(3) "123" -string(1) "d" -string(4) " 123" -string(4) "123 " -string(4) " 123" -string(4) " -123" -string(4) " 123" -string(30) " 123" -string(4) "0-9]" -string(1) "d" - --- Iteration 10 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 11 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 12 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 13 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 14 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 15 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 16 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 17 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 18 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 19 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 20 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" - --- Iteration 21 -- -string(1) "0" -string(1) "d" -string(1) "0" -string(1) "d" -string(2) " 0" -string(2) "0 " -string(2) " 0" -string(2) " -0" -string(4) " 0" -string(30) " 0" -string(4) "0-9]" -string(1) "d" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : integer formats with string values *** -- Iteration 1 -- @@ -690,4 +371,4 @@ unicode(4) " 0" unicode(30) " 0" unicode(4) "0-9]" unicode(1) "d" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/sprintf_variation9.phpt b/ext/standard/tests/strings/sprintf_variation9.phpt index a160365943..dd6bc77ccb 100644 --- a/ext/standard/tests/strings/sprintf_variation9.phpt +++ b/ext/standard/tests/strings/sprintf_variation9.phpt @@ -64,461 +64,7 @@ foreach($float_values as $float_value) { echo "Done"; ?> ---EXPECTF-- -*** Testing sprintf() : float formats with float values *** - --- Iteration 1 -- -string(18) "-2147483649.000000" -string(1) "f" -string(18) "-2147483649.000000" -string(1) "f" -string(19) " -2147483649.000000" -string(19) "-2147483649.000000 " -string(19) " -2147483649.000000" -string(19) " --2147483649.000000" -string(18) "-2147483649.000000" -string(30) " -2147483649.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 2 -- -string(17) "2147483648.000000" -string(1) "f" -string(17) "2147483648.000000" -string(1) "f" -string(18) " 2147483648.000000" -string(18) "2147483648.000000 " -string(18) " 2147483648.000000" -string(18) " -2147483648.000000" -string(17) "2147483648.000000" -string(30) " 2147483648.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 3 -- -string(18) "-2147483649.000000" -string(1) "f" -string(18) "-2147483649.000000" -string(1) "f" -string(19) " -2147483649.000000" -string(19) "-2147483649.000000 " -string(19) " -2147483649.000000" -string(19) " --2147483649.000000" -string(18) "-2147483649.000000" -string(30) " -2147483649.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 4 -- -string(18) "34359738369.000000" -string(1) "f" -string(18) "34359738369.000000" -string(1) "f" -string(19) " 34359738369.000000" -string(19) "34359738369.000000 " -string(19) " 34359738369.000000" -string(19) " -34359738369.000000" -string(18) "34359738369.000000" -string(30) " 34359738369.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 5 -- -string(17) "2147483649.000000" -string(1) "f" -string(17) "2147483649.000000" -string(1) "f" -string(18) " 2147483649.000000" -string(18) "2147483649.000000 " -string(18) " 2147483649.000000" -string(18) " -2147483649.000000" -string(17) "2147483649.000000" -string(30) " 2147483649.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 6 -- -string(18) "-2147483649.000000" -string(1) "f" -string(18) "-2147483649.000000" -string(1) "f" -string(19) " -2147483649.000000" -string(19) "-2147483649.000000 " -string(19) " -2147483649.000000" -string(19) " --2147483649.000000" -string(18) "-2147483649.000000" -string(30) " -2147483649.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 7 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 8 -- -string(9) "-0.100000" -string(1) "f" -string(9) "-0.100000" -string(1) "f" -string(10) " -0.100000" -string(10) "-0.100000 " -string(10) " -0.100000" -string(10) " --0.100000" -string(9) "-0.100000" -string(30) " -0.100000" -string(4) "0-9]" -string(1) "f" - --- Iteration 9 -- -string(9) "10.000000" -string(1) "f" -string(9) "10.000000" -string(1) "f" -string(10) " 10.000000" -string(10) "10.000000 " -string(10) " 10.000000" -string(10) " -10.000000" -string(9) "10.000000" -string(30) " 10.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 10 -- -string(14) "1050000.000000" -string(1) "f" -string(14) "1050000.000000" -string(1) "f" -string(15) " 1050000.000000" -string(15) "1050000.000000 " -string(15) " 1050000.000000" -string(15) " -1050000.000000" -string(14) "1050000.000000" -string(30) " 1050000.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 11 -- -string(13) "100000.000000" -string(1) "f" -string(13) "100000.000000" -string(1) "f" -string(14) " 100000.000000" -string(14) "100000.000000 " -string(14) " 100000.000000" -string(14) " -100000.000000" -string(13) "100000.000000" -string(30) " 100000.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 12 -- -string(14) "-100000.000000" -string(1) "f" -string(14) "-100000.000000" -string(1) "f" -string(15) " -100000.000000" -string(15) "-100000.000000 " -string(15) " -100000.000000" -string(15) " --100000.000000" -string(14) "-100000.000000" -string(30) " -100000.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 13 -- -string(8) "0.000010" -string(1) "f" -string(8) "0.000010" -string(1) "f" -string(9) " 0.000010" -string(9) "0.000010 " -string(9) " 0.000010" -string(9) " -0.000010" -string(8) "0.000010" -string(30) " 0.000010" -string(4) "0-9]" -string(1) "f" - --- Iteration 14 -- -string(9) "-0.000010" -string(1) "f" -string(9) "-0.000010" -string(1) "f" -string(10) " -0.000010" -string(10) "-0.000010 " -string(10) " -0.000010" -string(10) " --0.000010" -string(9) "-0.000010" -string(30) " -0.000010" -string(4) "0-9]" -string(1) "f" - --- Iteration 15 -- -string(13) "100000.000000" -string(1) "f" -string(13) "100000.000000" -string(1) "f" -string(14) " 100000.000000" -string(14) "100000.000000 " -string(14) " 100000.000000" -string(14) " -100000.000000" -string(13) "100000.000000" -string(30) " 100000.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 16 -- -string(14) "-100000.000000" -string(1) "f" -string(14) "-100000.000000" -string(1) "f" -string(15) " -100000.000000" -string(15) "-100000.000000 " -string(15) " -100000.000000" -string(15) " --100000.000000" -string(14) "-100000.000000" -string(30) " -100000.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 17 -- -string(13) "100000.000000" -string(1) "f" -string(13) "100000.000000" -string(1) "f" -string(14) " 100000.000000" -string(14) "100000.000000 " -string(14) " 100000.000000" -string(14) " -100000.000000" -string(13) "100000.000000" -string(30) " 100000.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 18 -- -string(14) "-100000.000000" -string(1) "f" -string(14) "-100000.000000" -string(1) "f" -string(15) " -100000.000000" -string(15) "-100000.000000 " -string(15) " -100000.000000" -string(15) " --100000.000000" -string(14) "-100000.000000" -string(30) " -100000.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 19 -- -string(13) "100000.000000" -string(1) "f" -string(13) "100000.000000" -string(1) "f" -string(14) " 100000.000000" -string(14) "100000.000000 " -string(14) " 100000.000000" -string(14) " -100000.000000" -string(13) "100000.000000" -string(30) " 100000.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 20 -- -string(14) "-100000.000000" -string(1) "f" -string(14) "-100000.000000" -string(1) "f" -string(15) " -100000.000000" -string(15) "-100000.000000 " -string(15) " -100000.000000" -string(15) " --100000.000000" -string(14) "-100000.000000" -string(30) " -100000.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 21 -- -string(8) "0.000010" -string(1) "f" -string(8) "0.000010" -string(1) "f" -string(9) " 0.000010" -string(9) "0.000010 " -string(9) " 0.000010" -string(9) " -0.000010" -string(8) "0.000010" -string(30) " 0.000010" -string(4) "0-9]" -string(1) "f" - --- Iteration 22 -- -string(9) "-0.000010" -string(1) "f" -string(9) "-0.000010" -string(1) "f" -string(10) " -0.000010" -string(10) "-0.000010 " -string(10) " -0.000010" -string(10) " --0.000010" -string(9) "-0.000010" -string(30) " -0.000010" -string(4) "0-9]" -string(1) "f" - --- Iteration 23 -- -string(14) "5000000.000000" -string(1) "f" -string(14) "5000000.000000" -string(1) "f" -string(15) " 5000000.000000" -string(15) "5000000.000000 " -string(15) " 5000000.000000" -string(15) " -5000000.000000" -string(14) "5000000.000000" -string(30) " 5000000.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 24 -- -string(15) "-5000000.000000" -string(1) "f" -string(15) "-5000000.000000" -string(1) "f" -string(16) " -5000000.000000" -string(16) "-5000000.000000 " -string(16) " -5000000.000000" -string(16) " --5000000.000000" -string(15) "-5000000.000000" -string(30) " -5000000.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 25 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 26 -- -string(9) "-0.000000" -string(1) "f" -string(9) "-0.000000" -string(1) "f" -string(10) " -0.000000" -string(10) "-0.000000 " -string(10) " -0.000000" -string(10) " --0.000000" -string(9) "-0.000000" -string(30) " -0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 27 -- -string(50) "5000000000000000069686058479707049565356032.000000" -string(1) "f" -string(50) "5000000000000000069686058479707049565356032.000000" -string(1) "f" -string(51) " 5000000000000000069686058479707049565356032.000000" -string(51) "5000000000000000069686058479707049565356032.000000 " -string(51) " 5000000000000000069686058479707049565356032.000000" -string(51) " -5000000000000000069686058479707049565356032.000000" -string(50) "5000000000000000069686058479707049565356032.000000" -string(50) "5000000000000000069686058479707049565356032.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 28 -- -string(51) "-5000000000000000069686058479707049565356032.000000" -string(1) "f" -string(51) "-5000000000000000069686058479707049565356032.000000" -string(1) "f" -string(52) " -5000000000000000069686058479707049565356032.000000" -string(52) "-5000000000000000069686058479707049565356032.000000 " -string(52) " -5000000000000000069686058479707049565356032.000000" -string(52) " --5000000000000000069686058479707049565356032.000000" -string(51) "-5000000000000000069686058479707049565356032.000000" -string(51) "-5000000000000000069686058479707049565356032.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 29 -- -string(8) "0.000000" -string(1) "f" -string(8) "0.000000" -string(1) "f" -string(9) " 0.000000" -string(9) "0.000000 " -string(9) " 0.000000" -string(9) " -0.000000" -string(8) "0.000000" -string(30) " 0.000000" -string(4) "0-9]" -string(1) "f" - --- Iteration 30 -- -string(9) "-0.000000" -string(1) "f" -string(9) "-0.000000" -string(1) "f" -string(10) " -0.000000" -string(10) "-0.000000 " -string(10) " -0.000000" -string(10) " --0.000000" -string(9) "-0.000000" -string(30) " -0.000000" -string(4) "0-9]" -string(1) "f" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing sprintf() : float formats with float values *** -- Iteration 1 -- @@ -970,4 +516,4 @@ unicode(9) "-0.000000" unicode(30) " -0.000000" unicode(4) "0-9]" unicode(1) "f" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/str_ireplace.phpt b/ext/standard/tests/strings/str_ireplace.phpt index ceb18d8b8d..61d143e128 100644 --- a/ext/standard/tests/strings/str_ireplace.phpt +++ b/ext/standard/tests/strings/str_ireplace.phpt @@ -47,59 +47,7 @@ var_dump($Data = str_ireplace("\n", "<br>", $Data)); echo "Done\n"; ?> ---EXPECTF-- -Warning: str_ireplace() expects at least 3 parameters, 0 given in %s on line %d -NULL - -Warning: str_ireplace() expects at least 3 parameters, 1 given in %s on line %d -NULL - -Warning: str_ireplace() expects at least 3 parameters, 2 given in %s on line %d -NULL -string(0) "" -string(8) "aaaaaaaT" -string(8) "aaaaaaaT" -int(7) -string(15) "aaaaaaaaaaaaaaT" -string(15) "aaaaaaaaaaaaaaT" -int(7) -string(22) "aaaaaaaaaaaaaaaaaaaaaT" -string(22) "aaaaaaaaaaaaaaaaaaaaaT" -int(7) -string(22) "aaaaaaaaaaaaaaaaaaaaaT" -string(22) "aaaaaaaaaaaaaaaaaaaaaT" -int(7) -string(22) "aaaaaaaaaaaaaaaaaaaaaT" -string(22) "aaaaaaaaaaaaaaaaaaaaaT" -string(22) "aaaaaaaaaaaaaaaaaaaaaT" -string(22) "aaaaaaaaaaaaaaaaaaaaaT" -string(22) "aaaaaaaaaaaaaaaaaaaaaT" -string(22) "aaaaaaaaaaaaaaaaaaaaaT" -array(2) { - [0]=> - string(22) "aaaaaaaaaaaaaaaaaaaaaT" - [1]=> - string(36) "aabbbbbbaabbbasdabbbbbbahsdbbbbbbbbb" -} -array(2) { - ["key"]=> - string(22) "aaaaaaaaaaaaaaaaaaaaaT" - ["test"]=> - string(36) "aabbbbbbaabbbasdabbbbbbahsdbbbbbbbbb" -} -array(2) { - ["key"]=> - string(22) "aaaaaaaaaaaaaaaaaaaaaT" - ["test"]=> - string(36) "aabbbbbbaabbbasdabbbbbbahsdbbbbbbbbb" -} -string(143) "Change tracking and management software designed to watch - for abnormal system behavior. -Suggest features, report bugs, or ask - questions here." -string(152) "Change tracking and management software designed to watch<br> for abnormal system behavior.<br>Suggest features, report bugs, or ask<br> questions here." -Done ---UEXPECTF-- +--EXPECTF-- Warning: str_ireplace() expects at least 3 parameters, 0 given in %s on line %d NULL diff --git a/ext/standard/tests/strings/str_pad.phpt b/ext/standard/tests/strings/str_pad.phpt Binary files differindex e31da10730..fce3f1fbc8 100644 --- a/ext/standard/tests/strings/str_pad.phpt +++ b/ext/standard/tests/strings/str_pad.phpt diff --git a/ext/standard/tests/strings/str_repeat.phpt b/ext/standard/tests/strings/str_repeat.phpt Binary files differindex a0d685c9cc..c786c7dba1 100644 --- a/ext/standard/tests/strings/str_repeat.phpt +++ b/ext/standard/tests/strings/str_repeat.phpt diff --git a/ext/standard/tests/strings/str_replace.phpt b/ext/standard/tests/strings/str_replace.phpt index 3169a6552e..7f88d45f57 100644 --- a/ext/standard/tests/strings/str_replace.phpt +++ b/ext/standard/tests/strings/str_replace.phpt @@ -238,725 +238,7 @@ var_dump( str_replace(1,2,3,$var,5) ); echo "Done\n"; ?> ---EXPECTF-- -*** Testing str_replace() on basic operations *** -string(0) "" -string(4) "tbst" -string(0) "" -int(0) -string(1) "q" -int(1) -string(0) "" -int(0) -string(%d) "Resource id #%d" -int(1) - -*** Testing str_replace() with various search values *** --- Iteration 0 -- -array(12) { - [0]=> - string(5) "FOUND" - [1]=> - string(0) "" - [2]=> - string(5) "FOUND" - [3]=> - string(1) "0" - [4]=> - string(6) "-FOUND" - [5]=> - string(5) "FOUND" - [6]=> - string(1) "0" - [7]=> - string(6) "-FOUND" - [8]=> - string(0) "" - [9]=> - array(0) { - } - [10]=> - string(3) "php" - [11]=> - string(0) "" -} -int(5) - --- Iteration 1 -- -array(12) { - [0]=> - string(1) "1" - [1]=> - string(0) "" - [2]=> - string(1) "1" - [3]=> - string(1) "0" - [4]=> - string(2) "-1" - [5]=> - string(1) "1" - [6]=> - string(1) "0" - [7]=> - string(2) "-1" - [8]=> - string(0) "" - [9]=> - array(0) { - } - [10]=> - string(3) "php" - [11]=> - string(0) "" -} -int(0) - --- Iteration 2 -- -array(12) { - [0]=> - string(5) "FOUND" - [1]=> - string(0) "" - [2]=> - string(5) "FOUND" - [3]=> - string(1) "0" - [4]=> - string(6) "-FOUND" - [5]=> - string(5) "FOUND" - [6]=> - string(1) "0" - [7]=> - string(6) "-FOUND" - [8]=> - string(0) "" - [9]=> - array(0) { - } - [10]=> - string(3) "php" - [11]=> - string(0) "" -} -int(5) - --- Iteration 3 -- -array(12) { - [0]=> - string(1) "1" - [1]=> - string(0) "" - [2]=> - string(1) "1" - [3]=> - string(5) "FOUND" - [4]=> - string(2) "-1" - [5]=> - string(1) "1" - [6]=> - string(5) "FOUND" - [7]=> - string(2) "-1" - [8]=> - string(0) "" - [9]=> - array(0) { - } - [10]=> - string(3) "php" - [11]=> - string(0) "" -} -int(2) - --- Iteration 4 -- -array(12) { - [0]=> - string(1) "1" - [1]=> - string(0) "" - [2]=> - string(1) "1" - [3]=> - string(1) "0" - [4]=> - string(5) "FOUND" - [5]=> - string(1) "1" - [6]=> - string(1) "0" - [7]=> - string(5) "FOUND" - [8]=> - string(0) "" - [9]=> - array(0) { - } - [10]=> - string(3) "php" - [11]=> - string(0) "" -} -int(2) - --- Iteration 5 -- -array(12) { - [0]=> - string(5) "FOUND" - [1]=> - string(0) "" - [2]=> - string(5) "FOUND" - [3]=> - string(1) "0" - [4]=> - string(6) "-FOUND" - [5]=> - string(5) "FOUND" - [6]=> - string(1) "0" - [7]=> - string(6) "-FOUND" - [8]=> - string(0) "" - [9]=> - array(0) { - } - [10]=> - string(3) "php" - [11]=> - string(0) "" -} -int(5) - --- Iteration 6 -- -array(12) { - [0]=> - string(1) "1" - [1]=> - string(0) "" - [2]=> - string(1) "1" - [3]=> - string(5) "FOUND" - [4]=> - string(2) "-1" - [5]=> - string(1) "1" - [6]=> - string(5) "FOUND" - [7]=> - string(2) "-1" - [8]=> - string(0) "" - [9]=> - array(0) { - } - [10]=> - string(3) "php" - [11]=> - string(0) "" -} -int(2) - --- Iteration 7 -- -array(12) { - [0]=> - string(1) "1" - [1]=> - string(0) "" - [2]=> - string(1) "1" - [3]=> - string(1) "0" - [4]=> - string(5) "FOUND" - [5]=> - string(1) "1" - [6]=> - string(1) "0" - [7]=> - string(5) "FOUND" - [8]=> - string(0) "" - [9]=> - array(0) { - } - [10]=> - string(3) "php" - [11]=> - string(0) "" -} -int(2) - --- Iteration 8 -- -array(12) { - [0]=> - string(1) "1" - [1]=> - string(0) "" - [2]=> - string(1) "1" - [3]=> - string(1) "0" - [4]=> - string(2) "-1" - [5]=> - string(1) "1" - [6]=> - string(1) "0" - [7]=> - string(2) "-1" - [8]=> - string(0) "" - [9]=> - array(0) { - } - [10]=> - string(3) "php" - [11]=> - string(0) "" -} -int(0) - --- Iteration 9 -- -array(12) { - [0]=> - string(1) "1" - [1]=> - string(0) "" - [2]=> - string(1) "1" - [3]=> - string(1) "0" - [4]=> - string(2) "-1" - [5]=> - string(1) "1" - [6]=> - string(1) "0" - [7]=> - string(2) "-1" - [8]=> - string(0) "" - [9]=> - array(0) { - } - [10]=> - string(3) "php" - [11]=> - string(0) "" -} -int(0) - --- Iteration 10 -- -array(12) { - [0]=> - string(1) "1" - [1]=> - string(0) "" - [2]=> - string(1) "1" - [3]=> - string(1) "0" - [4]=> - string(2) "-1" - [5]=> - string(1) "1" - [6]=> - string(1) "0" - [7]=> - string(2) "-1" - [8]=> - string(0) "" - [9]=> - array(0) { - } - [10]=> - string(5) "FOUND" - [11]=> - string(0) "" -} -int(1) - --- Iteration 11 -- -array(12) { - [0]=> - string(1) "1" - [1]=> - string(0) "" - [2]=> - string(1) "1" - [3]=> - string(1) "0" - [4]=> - string(2) "-1" - [5]=> - string(1) "1" - [6]=> - string(1) "0" - [7]=> - string(2) "-1" - [8]=> - string(0) "" - [9]=> - array(0) { - } - [10]=> - string(3) "php" - [11]=> - string(0) "" -} -int(0) - -*** Testing str_replace() with various subjects *** ---- Iteration 0 --- --- String after replacing the search value is => -- -string(177) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - - ?FOUND chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '2' times - ---- Iteration 1 --- --- String after replacing the search value is => -- -string(177) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - - ?FOUND chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '2' times - ---- Iteration 2 --- --- String after replacing the search value is => -- -string(182) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '1' times - ---- Iteration 3 --- --- String after replacing the search value is => -- -string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '0' times - ---- Iteration 4 --- --- String after replacing the search value is => -- -string(182) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '1' times - ---- Iteration 5 --- --- String after replacing the search value is => -- -string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '0' times - ---- Iteration 6 --- --- String after replacing the search value is => -- -string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '0' times - ---- Iteration 7 --- --- String after replacing the search value is => -- -string(189) "Hello, world,0120333.3445FOUND67 NULL TRUE FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '1' times - ---- Iteration 8 --- --- String after replacing the search value is => -- -string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '0' times - ---- Iteration 9 --- --- String after replacing the search value is => -- -string(193) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '2' times - ---- Iteration 10 --- --- String after replacing the search value is => -- -string(193) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '1' times - ---- Iteration 11 --- --- String after replacing the search value is => -- -string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '0' times - ---- Iteration 12 --- --- String after replacing the search value is => -- -string(192) "Hello, world,0120333.3445-1.234567 FOUND TRUE FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '1' times - ---- Iteration 13 --- --- String after replacing the search value is => -- -string(207) "Hello, world,FOUND12FOUND333.3445-1.234567 NULL TRUE FALSE - - ?Hello, World chr(FOUND).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '4' times - ---- Iteration 14 --- --- String after replacing the search value is => -- -string(207) "Hello, world,FOUND12FOUND333.3445-1.234567 NULL TRUE FALSE - - ?Hello, World chr(FOUND).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '4' times - ---- Iteration 15 --- --- String after replacing the search value is => -- -string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '0' times - ---- Iteration 16 --- --- String after replacing the search value is => -- -string(307) "Hello,FOUNDworld,0120333.3445-1.234567FOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDNULLFOUNDTRUEFOUNDFALSE -FOUND FOUNDFOUNDFOUNDFOUND - FOUNDFOUNDFOUNDFOUND?Hello,FOUNDWorldFOUNDchr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '29' times - ---- Iteration 17 --- --- String after replacing the search value is => -- -string(203) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSEFOUND - FOUND0«CDFOUNDabcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '3' times - ---- Iteration 18 --- --- String after replacing the search value is => -- -string(194) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - FOUND«CD - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '1' times - ---- Iteration 19 --- --- String after replacing the search value is => -- -string(194) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '1' times - ---- Iteration 20 --- --- String after replacing the search value is => -- -string(194) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - FOUND«CD - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '1' times - ---- Iteration 21 --- --- String after replacing the search value is => -- -string(194) "Hello, world,0120333FOUND445-1.234567 NULL TRUE FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '1' times - ---- Iteration 22 --- --- String after replacing the search value is => -- -string(203) "Hello, world,0FOUND20333.3445-FOUND.234567 NULL TRUE FALSE - - ?Hello, World chr(0).chr(FOUND28).chr(234).chr(65).chr(255).chr(256)" --- search string has found '3' times - ---- Iteration 23 --- --- String after replacing the search value is => -- -string(192) "Hello, world,0120333.3445-1.234567 NULL FOUND FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '1' times - ---- Iteration 24 --- --- String after replacing the search value is => -- -string(203) "Hello, world,0FOUND20333.3445-FOUND.234567 NULL TRUE FALSE - - ?Hello, World chr(0).chr(FOUND28).chr(234).chr(65).chr(255).chr(256)" --- search string has found '3' times - ---- Iteration 25 --- --- String after replacing the search value is => -- -string(203) "Hello, world,0FOUND20333.3445-FOUND.234567 NULL TRUE FALSE - - ?Hello, World chr(0).chr(FOUND28).chr(234).chr(65).chr(255).chr(256)" --- search string has found '3' times - ---- Iteration 26 --- --- String after replacing the search value is => -- -string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '0' times - ---- Iteration 27 --- --- String after replacing the search value is => -- -string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FOUND - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '1' times - ---- Iteration 28 --- --- String after replacing the search value is => -- -string(307) "Hello,FOUNDworld,0120333.3445-1.234567FOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDNULLFOUNDTRUEFOUNDFALSE -FOUND FOUNDFOUNDFOUNDFOUND - FOUNDFOUNDFOUNDFOUND?Hello,FOUNDWorldFOUNDchr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '29' times - ---- Iteration 29 --- --- String after replacing the search value is => -- -string(186) "Hello, world,0120333.3445-1.234567FOUNDNULL TRUE FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '1' times - ---- Iteration 30 --- --- String after replacing the search value is => -- -string(199) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '2' times - ---- Iteration 31 --- --- String after replacing the search value is => -- -string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '0' times - ---- Iteration 32 --- --- String after replacing the search value is => -- -string(203) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - FOUND -FOUND ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '3' times - ---- Iteration 33 --- --- String after replacing the search value is => -- -string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE - - ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" --- search string has found '0' times - ---- Iteration 34 --- --- String after replacing the search value is => -- -string(5) "FOUND" --- search string has found '1' times - -*** Testing Miscelleneous input data *** -string(3) "qqq" -int(5) -array(3) { - [0]=> - string(3) "qqq" - [1]=> - string(0) "" - [2]=> - string(3) "ccc" -} -int(6) - --- Testing objects -- -string(12) "Hello, world" -int(1) - --- Testing arrays -- -string(15) "multimultimulti" -int(3) -string(3) "qqq" -int(3) -array(2) { - [0]=> - string(3) "qqq" - [1]=> - string(3) "ccc" -} -int(6) - -Notice: Array to string conversion in %s on line %d -array(2) { - [0]=> - string(15) "ArrayArrayArray" - [1]=> - string(3) "bbb" -} -int(3) -array(2) { - [0]=> - string(3) "111" - [1]=> - string(3) "bbb" -} -int(3) -array(2) { - [0]=> - string(4) "aaa3" - [1]=> - string(4) "2bbb" -} -int(1) - --- Testing Resources -- -string(%d) "Resource id #%d" -int(0) -string(%d) "Resource id #%d" -int(0) - --- Testing a longer and heredoc string -- -string(623) "FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789 -FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789 -FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789 -FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789 -FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789 -FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789 -FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789 -@#$%^&**&^%$#@!~:())))((((&&&**%$###@@@!!!~~~~@###$%^&* -FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789" -int(16) - --- Testing a heredoc null string -- -string(0) "" -int(0) - --- Testing simple and complex syntax strings -- -string(5) "FOUND" -string(5) "FOUND" - -Notice: Undefined variable: strS in %s on line %d -string(0) "" -string(5) "FOUND" -string(5) "FOUND" - -*** Testing error conditions *** -Warning: str_replace() expects at least 3 parameters, 0 given in %s on line %d -NULL - -Warning: str_replace() expects at least 3 parameters, 1 given in %s on line %d -NULL - -Warning: str_replace() expects at least 3 parameters, 1 given in %s on line %d -NULL - -Warning: str_replace() expects at least 3 parameters, 2 given in %s on line %d -NULL - -Warning: str_replace() expects at most 4 parameters, 5 given in %s on line %d -NULL -Done ---UEXPECTF-- +--EXPECTF-- *** Testing str_replace() on basic operations *** unicode(0) "" unicode(4) "tbst" @@ -1674,4 +956,3 @@ NULL Warning: str_replace() expects at most 4 parameters, 5 given in %s on line %d NULL Done - diff --git a/ext/standard/tests/strings/str_shuffle.phpt b/ext/standard/tests/strings/str_shuffle.phpt index cead24ca02..0f8d9067d2 100644 --- a/ext/standard/tests/strings/str_shuffle.phpt +++ b/ext/standard/tests/strings/str_shuffle.phpt @@ -8,8 +8,5 @@ var_dump(str_shuffle($s)); var_dump($s); ?> --EXPECTF-- -string(3) %s -string(3) "123" ---UEXPECTF-- unicode(3) "%s" unicode(3) "123" diff --git a/ext/standard/tests/strings/str_split_basic.phpt b/ext/standard/tests/strings/str_split_basic.phpt index 9b00b8dcbf..1fcf3c7622 100644 --- a/ext/standard/tests/strings/str_split_basic.phpt +++ b/ext/standard/tests/strings/str_split_basic.phpt @@ -26,70 +26,7 @@ var_dump( str_split($str) ); echo "Done" ?> ---EXPECTF-- -*** Testing str_split() : basic functionality *** --- With all possible arguments -- -array(5) { - [0]=> - string(5) "This " - [1]=> - string(5) "is ba" - [2]=> - string(5) "sic t" - [3]=> - string(5) "estca" - [4]=> - string(2) "se" -} --- With split_length as default argument -- -array(22) { - [0]=> - string(1) "T" - [1]=> - string(1) "h" - [2]=> - string(1) "i" - [3]=> - string(1) "s" - [4]=> - string(1) " " - [5]=> - string(1) "i" - [6]=> - string(1) "s" - [7]=> - string(1) " " - [8]=> - string(1) "b" - [9]=> - string(1) "a" - [10]=> - string(1) "s" - [11]=> - string(1) "i" - [12]=> - string(1) "c" - [13]=> - string(1) " " - [14]=> - string(1) "t" - [15]=> - string(1) "e" - [16]=> - string(1) "s" - [17]=> - string(1) "t" - [18]=> - string(1) "c" - [19]=> - string(1) "a" - [20]=> - string(1) "s" - [21]=> - string(1) "e" -} -Done ---UEXPECTF-- +--EXPECT-- *** Testing str_split() : basic functionality *** -- With all possible arguments -- array(5) { diff --git a/ext/standard/tests/strings/str_split_error.phpt b/ext/standard/tests/strings/str_split_error.phpt index 161ce0c95e..c7075ec0ce 100644 --- a/ext/standard/tests/strings/str_split_error.phpt +++ b/ext/standard/tests/strings/str_split_error.phpt @@ -36,14 +36,3 @@ NULL Warning: str_split() expects at most 2 parameters, 3 given in %s on line %d NULL Done ---UEXPECTF-- -*** Testing str_split() : error conditions *** --- Testing str_split() function with Zero arguments -- - -Warning: str_split() expects at least 1 parameter, 0 given in %s on line %d -NULL --- Testing str_split() function with more than expected no. of arguments -- - -Warning: str_split() expects at most 2 parameters, 3 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/str_split_variation1.phpt b/ext/standard/tests/strings/str_split_variation1.phpt index 177a88bcfb..6443c8a1e8 100644 --- a/ext/standard/tests/strings/str_split_variation1.phpt +++ b/ext/standard/tests/strings/str_split_variation1.phpt @@ -97,153 +97,6 @@ echo "Done"; -- Iteration 1 -- array(1) { [0]=> - string(1) "0" -} --- Iteration 2 -- -array(1) { - [0]=> - string(1) "1" -} --- Iteration 3 -- -array(2) { - [0]=> - string(3) "123" - [1]=> - string(2) "45" -} --- Iteration 4 -- -array(2) { - [0]=> - string(3) "-23" - [1]=> - string(2) "45" -} --- Iteration 5 -- -array(2) { - [0]=> - string(3) "10." - [1]=> - string(1) "5" -} --- Iteration 6 -- -array(2) { - [0]=> - string(3) "-10" - [1]=> - string(2) ".5" -} --- Iteration 7 -- -array(4) { - [0]=> - string(3) "105" - [1]=> - string(3) "000" - [2]=> - string(3) "000" - [3]=> - string(3) "000" -} --- Iteration 8 -- -array(3) { - [0]=> - string(3) "1.0" - [1]=> - string(3) "6E-" - [2]=> - string(1) "9" -} --- Iteration 9 -- -array(1) { - [0]=> - string(3) "0.5" -} --- Iteration 10 -- - -Warning: str_split() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 11 -- - -Warning: str_split() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 12 -- - -Warning: str_split() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 13 -- - -Warning: str_split() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 14 -- - -Warning: str_split() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 15 -- -array(1) { - [0]=> - string(0) "" -} --- Iteration 16 -- -array(1) { - [0]=> - string(0) "" -} --- Iteration 17 -- -array(1) { - [0]=> - string(1) "1" -} --- Iteration 18 -- -array(1) { - [0]=> - string(0) "" -} --- Iteration 19 -- -array(1) { - [0]=> - string(1) "1" -} --- Iteration 20 -- -array(1) { - [0]=> - string(0) "" -} --- Iteration 21 -- -array(1) { - [0]=> - string(0) "" -} --- Iteration 22 -- -array(1) { - [0]=> - string(0) "" -} --- Iteration 23 -- -array(2) { - [0]=> - string(3) "obj" - [1]=> - string(3) "ect" -} --- Iteration 24 -- -array(1) { - [0]=> - string(0) "" -} --- Iteration 25 -- -array(1) { - [0]=> - string(0) "" -} --- Iteration 26 -- - -Warning: str_split() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL -Done ---UEXPECTF-- -*** Testing str_split() : unexpected values for 'str' *** --- Iteration 1 -- -array(1) { - [0]=> unicode(1) "0" } -- Iteration 2 -- diff --git a/ext/standard/tests/strings/str_split_variation2.phpt b/ext/standard/tests/strings/str_split_variation2.phpt index d6069858c9..7d787abf75 100644 --- a/ext/standard/tests/strings/str_split_variation2.phpt +++ b/ext/standard/tests/strings/str_split_variation2.phpt @@ -98,196 +98,6 @@ echo "Done"; --Iteration 1 -- array(3) { [0]=> - string(10) "variation2" - [1]=> - string(10) ":split_len" - [2]=> - string(3) "gth" -} ---Iteration 2 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) ---Iteration 3 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) ---Iteration 4 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) ---Iteration 5 -- - -Warning: str_split() expects parameter 2 to be long, array given in %s on line %d -NULL ---Iteration 6 -- - -Warning: str_split() expects parameter 2 to be long, array given in %s on line %d -NULL ---Iteration 7 -- - -Warning: str_split() expects parameter 2 to be long, array given in %s on line %d -NULL ---Iteration 8 -- - -Warning: str_split() expects parameter 2 to be long, array given in %s on line %d -NULL ---Iteration 9 -- - -Warning: str_split() expects parameter 2 to be long, array given in %s on line %d -NULL ---Iteration 10 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) ---Iteration 11 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) ---Iteration 12 -- -array(23) { - [0]=> - string(1) "v" - [1]=> - string(1) "a" - [2]=> - string(1) "r" - [3]=> - string(1) "i" - [4]=> - string(1) "a" - [5]=> - string(1) "t" - [6]=> - string(1) "i" - [7]=> - string(1) "o" - [8]=> - string(1) "n" - [9]=> - string(1) "2" - [10]=> - string(1) ":" - [11]=> - string(1) "s" - [12]=> - string(1) "p" - [13]=> - string(1) "l" - [14]=> - string(1) "i" - [15]=> - string(1) "t" - [16]=> - string(1) "_" - [17]=> - string(1) "l" - [18]=> - string(1) "e" - [19]=> - string(1) "n" - [20]=> - string(1) "g" - [21]=> - string(1) "t" - [22]=> - string(1) "h" -} ---Iteration 13 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) ---Iteration 14 -- -array(23) { - [0]=> - string(1) "v" - [1]=> - string(1) "a" - [2]=> - string(1) "r" - [3]=> - string(1) "i" - [4]=> - string(1) "a" - [5]=> - string(1) "t" - [6]=> - string(1) "i" - [7]=> - string(1) "o" - [8]=> - string(1) "n" - [9]=> - string(1) "2" - [10]=> - string(1) ":" - [11]=> - string(1) "s" - [12]=> - string(1) "p" - [13]=> - string(1) "l" - [14]=> - string(1) "i" - [15]=> - string(1) "t" - [16]=> - string(1) "_" - [17]=> - string(1) "l" - [18]=> - string(1) "e" - [19]=> - string(1) "n" - [20]=> - string(1) "g" - [21]=> - string(1) "t" - [22]=> - string(1) "h" -} ---Iteration 15 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) ---Iteration 16 -- - -Warning: str_split() expects parameter 2 to be long, string given in %s on line %d -NULL ---Iteration 17 -- - -Warning: str_split() expects parameter 2 to be long, string given in %s on line %d -NULL ---Iteration 18 -- - -Warning: str_split() expects parameter 2 to be long, string given in %s on line %d -NULL ---Iteration 19 -- - -Warning: str_split() expects parameter 2 to be long, string given in %s on line %d -NULL ---Iteration 20 -- - -Warning: str_split() expects parameter 2 to be long, object given in %s on line %d -NULL ---Iteration 21 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) ---Iteration 22 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) ---Iteration 23 -- - -Warning: str_split() expects parameter 2 to be long, resource given in %s on line %d -NULL -Done ---UEXPECTF-- -*** Testing str_split() : unexpected values for 'split_length' *** ---Iteration 1 -- -array(3) { - [0]=> unicode(10) "variation2" [1]=> unicode(10) ":split_len" diff --git a/ext/standard/tests/strings/str_split_variation2_64bit.phpt b/ext/standard/tests/strings/str_split_variation2_64bit.phpt index 3d2ef97fa1..4d465b7aaf 100644 --- a/ext/standard/tests/strings/str_split_variation2_64bit.phpt +++ b/ext/standard/tests/strings/str_split_variation2_64bit.phpt @@ -99,201 +99,6 @@ echo "Done"; --Iteration 1 -- array(3) { [0]=> - string(10) "variation2" - [1]=> - string(10) ":split_len" - [2]=> - string(3) "gth" -} ---Iteration 2 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) ---Iteration 3 -- -array(1) { - [0]=> - string(23) "variation2:split_length" -} ---Iteration 4 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) ---Iteration 5 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) ---Iteration 6 -- - -Warning: str_split() expects parameter 2 to be long, array given in %s on line %d -NULL ---Iteration 7 -- - -Warning: str_split() expects parameter 2 to be long, array given in %s on line %d -NULL ---Iteration 8 -- - -Warning: str_split() expects parameter 2 to be long, array given in %s on line %d -NULL ---Iteration 9 -- - -Warning: str_split() expects parameter 2 to be long, array given in %s on line %d -NULL ---Iteration 10 -- - -Warning: str_split() expects parameter 2 to be long, array given in %s on line %d -NULL ---Iteration 11 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) ---Iteration 12 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) ---Iteration 13 -- -array(23) { - [0]=> - string(1) "v" - [1]=> - string(1) "a" - [2]=> - string(1) "r" - [3]=> - string(1) "i" - [4]=> - string(1) "a" - [5]=> - string(1) "t" - [6]=> - string(1) "i" - [7]=> - string(1) "o" - [8]=> - string(1) "n" - [9]=> - string(1) "2" - [10]=> - string(1) ":" - [11]=> - string(1) "s" - [12]=> - string(1) "p" - [13]=> - string(1) "l" - [14]=> - string(1) "i" - [15]=> - string(1) "t" - [16]=> - string(1) "_" - [17]=> - string(1) "l" - [18]=> - string(1) "e" - [19]=> - string(1) "n" - [20]=> - string(1) "g" - [21]=> - string(1) "t" - [22]=> - string(1) "h" -} ---Iteration 14 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) ---Iteration 15 -- -array(23) { - [0]=> - string(1) "v" - [1]=> - string(1) "a" - [2]=> - string(1) "r" - [3]=> - string(1) "i" - [4]=> - string(1) "a" - [5]=> - string(1) "t" - [6]=> - string(1) "i" - [7]=> - string(1) "o" - [8]=> - string(1) "n" - [9]=> - string(1) "2" - [10]=> - string(1) ":" - [11]=> - string(1) "s" - [12]=> - string(1) "p" - [13]=> - string(1) "l" - [14]=> - string(1) "i" - [15]=> - string(1) "t" - [16]=> - string(1) "_" - [17]=> - string(1) "l" - [18]=> - string(1) "e" - [19]=> - string(1) "n" - [20]=> - string(1) "g" - [21]=> - string(1) "t" - [22]=> - string(1) "h" -} ---Iteration 16 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) ---Iteration 17 -- - -Warning: str_split() expects parameter 2 to be long, string given in %s on line %d -NULL ---Iteration 18 -- - -Warning: str_split() expects parameter 2 to be long, string given in %s on line %d -NULL ---Iteration 19 -- - -Warning: str_split() expects parameter 2 to be long, string given in %s on line %d -NULL ---Iteration 20 -- - -Warning: str_split() expects parameter 2 to be long, string given in %s on line %d -NULL ---Iteration 21 -- - -Warning: str_split() expects parameter 2 to be long, object given in %s on line %d -NULL ---Iteration 22 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) ---Iteration 23 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) ---Iteration 24 -- - -Warning: str_split() expects parameter 2 to be long, resource given in %s on line %d -NULL -Done ---UEXPECTF-- -*** Testing str_split() : unexpected values for 'split_length' *** ---Iteration 1 -- -array(3) { - [0]=> unicode(10) "variation2" [1]=> unicode(10) ":split_len" diff --git a/ext/standard/tests/strings/str_split_variation3.phpt b/ext/standard/tests/strings/str_split_variation3.phpt Binary files differindex f630cb5502..236c5a4ce9 100644 --- a/ext/standard/tests/strings/str_split_variation3.phpt +++ b/ext/standard/tests/strings/str_split_variation3.phpt diff --git a/ext/standard/tests/strings/str_split_variation4.phpt b/ext/standard/tests/strings/str_split_variation4.phpt index 5096fe37cc..cd503269fb 100644 --- a/ext/standard/tests/strings/str_split_variation4.phpt +++ b/ext/standard/tests/strings/str_split_variation4.phpt @@ -43,158 +43,7 @@ for($count = 0; $count < count($values); $count++) { } echo "Done" ?> ---EXPECTF-- -*** Testing str_split() : single quoted strings for 'str' *** --- Iteration 1 -- -array(1) { - [0]=> - string(0) "" -} --- Iteration 2 -- -array(1) { - [0]=> - string(1) " " -} --- Iteration 3 -- -array(1) { - [0]=> - string(4) "1234" -} --- Iteration 4 -- -array(3) { - [0]=> - string(5) "simpl" - [1]=> - string(5) "e str" - [2]=> - string(3) "ing" -} --- Iteration 5 -- -array(5) { - [0]=> - string(5) "It's " - [1]=> - string(5) "strin" - [2]=> - string(5) "g wit" - [3]=> - string(5) "h quo" - [4]=> - string(2) "te" -} --- Iteration 6 -- -array(8) { - [0]=> - string(5) "strin" - [1]=> - string(5) "g\tco" - [2]=> - string(5) "ntain" - [3]=> - string(5) "s\rwh" - [4]=> - string(5) "ite s" - [5]=> - string(5) "pace\" - [6]=> - string(5) "nchar" - [7]=> - string(1) "s" -} --- Iteration 7 -- -array(6) { - [0]=> - string(5) "conta" - [1]=> - string(5) "ining" - [2]=> - string(5) " @ # " - [3]=> - string(5) "$ % ^" - [4]=> - string(5) " & ch" - [5]=> - string(3) "ars" -} --- Iteration 8 -- -array(4) { - [0]=> - string(5) "with " - [1]=> - string(5) "1234 " - [2]=> - string(5) "numbe" - [3]=> - string(2) "rs" -} --- Iteration 9 -- -array(7) { - [0]=> - string(5) "with " - [1]=> - string(5) "\0 an" - [2]=> - string(5) "d ".c" - [3]=> - string(5) "hr(0)" - [4]=> - string(5) "."nul" - [5]=> - string(5) "l cha" - [6]=> - string(2) "rs" -} --- Iteration 10 -- -array(7) { - [0]=> - string(5) "with " - [1]=> - string(5) " mu" - [2]=> - string(5) "ltipl" - [3]=> - string(5) "e " - [4]=> - string(5) " spac" - [5]=> - string(5) "e cha" - [6]=> - string(1) "r" -} --- Iteration 11 -- -array(8) { - [0]=> - string(5) "Testi" - [1]=> - string(5) "ng in" - [2]=> - string(5) "valid" - [3]=> - string(5) " \k a" - [4]=> - string(5) "nd \m" - [5]=> - string(5) " esca" - [6]=> - string(5) "pe ch" - [7]=> - string(2) "ar" -} --- Iteration 12 -- -array(5) { - [0]=> - string(5) "to ch" - [1]=> - string(5) "eck w" - [2]=> - string(5) "ith \" - [3]=> - string(5) "n and" - [4]=> - string(3) " \t" -} -Done ---UEXPECTF-- +--EXPECT-- *** Testing str_split() : single quoted strings for 'str' *** -- Iteration 1 -- array(1) { diff --git a/ext/standard/tests/strings/str_split_variation5.phpt b/ext/standard/tests/strings/str_split_variation5.phpt index b47e46c460..1b00fa8630 100644 --- a/ext/standard/tests/strings/str_split_variation5.phpt +++ b/ext/standard/tests/strings/str_split_variation5.phpt @@ -86,96 +86,7 @@ foreach($heredoc_array as $str) { echo "Done" ?> ---EXPECTF-- -*** Testing str_split() : heredoc strings as 'str' argument *** --- Iteration 1 -- -array(1) { - [0]=> - string(0) "" -} --- Iteration 2 -- -array(1) { - [0]=> - string(0) "" -} --- Iteration 3 -- -array(1) { - [0]=> - string(1) "a" -} --- Iteration 4 -- -array(3) { - [0]=> - string(10) "This is si" - [1]=> - string(10) "mple hered" - [2]=> - string(9) "oc string" -} --- Iteration 5 -- -array(6) { - [0]=> - string(10) "This is to" - [1]=> - string(10) " check str" - [2]=> - string(10) "_split -fun" - [3]=> - string(10) "ction with" - [4]=> - string(10) " multiline" - [5]=> - string(8) " -heredoc" -} --- Iteration 6 -- -array(4) { - [0]=> - string(10) "This check" - [1]=> - string(10) "s heredoc " - [2]=> - string(10) "with $, %," - [3]=> - string(9) " &, chars" -} --- Iteration 7 -- -array(4) { - [0]=> - string(10) "This check" - [1]=> - string(10) "s str_spl" - [2]=> - string(10) "it() -Escap" - [3]=> - string(7) "e -chars" -} --- Iteration 8 -- -array(8) { - [0]=> - string(10) ""To check " - [1]=> - string(10) "" in hered" - [2]=> - string(10) "oc" -I'm su" - [3]=> - string(10) "re it'll w" - [4]=> - string(10) "ork also w" - [5]=> - string(10) "ith \ -whic" - [6]=> - string(10) "h is singl" - [7]=> - string(7) "e slash" -} -Done ---UEXPECTF-- +--EXPECT-- *** Testing str_split() : heredoc strings as 'str' argument *** -- Iteration 1 -- array(1) { diff --git a/ext/standard/tests/strings/str_split_variation6.phpt b/ext/standard/tests/strings/str_split_variation6.phpt index 9fea091a89..b44d33b659 100644 --- a/ext/standard/tests/strings/str_split_variation6.phpt +++ b/ext/standard/tests/strings/str_split_variation6.phpt @@ -50,129 +50,6 @@ bool(false) -- Iteration 2 -- array(42) { [0]=> - string(1) "T" - [1]=> - string(1) "h" - [2]=> - string(1) "i" - [3]=> - string(1) "s" - [4]=> - string(1) " " - [5]=> - string(1) "i" - [6]=> - string(1) "s" - [7]=> - string(1) " " - [8]=> - string(1) "a" - [9]=> - string(1) " " - [10]=> - string(1) "s" - [11]=> - string(1) "t" - [12]=> - string(1) "r" - [13]=> - string(1) "i" - [14]=> - string(1) "n" - [15]=> - string(1) "g" - [16]=> - string(1) " " - [17]=> - string(1) "w" - [18]=> - string(1) "i" - [19]=> - string(1) "t" - [20]=> - string(1) "h" - [21]=> - string(1) " " - [22]=> - string(1) "1" - [23]=> - string(1) "2" - [24]=> - string(1) "3" - [25]=> - string(1) " " - [26]=> - string(1) "&" - [27]=> - string(1) " " - [28]=> - string(1) "e" - [29]=> - string(1) "s" - [30]=> - string(1) "c" - [31]=> - string(1) "a" - [32]=> - string(1) "p" - [33]=> - string(1) "e" - [34]=> - string(1) " " - [35]=> - string(1) "c" - [36]=> - string(1) "h" - [37]=> - string(1) "a" - [38]=> - string(1) "r" - [39]=> - string(1) " " - [40]=> - string(1) "\" - [41]=> - string(1) "t" -} --- Iteration 3 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) --- Iteration 4 -- -array(1) { - [0]=> - string(42) "This is a string with 123 & escape char \t" -} --- Iteration 5 -- -array(2) { - [0]=> - string(26) "This is a string with 123 " - [1]=> - string(16) "& escape char \t" -} --- Iteration 6 -- -array(1) { - [0]=> - string(42) "This is a string with 123 & escape char \t" -} --- Iteration 7 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) --- Iteration 8 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) -Done ---UEXPECTF-- -*** Testing str_split() : different intger values for 'split_length' *** --- Iteration 1 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) --- Iteration 2 -- -array(42) { - [0]=> unicode(1) "T" [1]=> unicode(1) "h" diff --git a/ext/standard/tests/strings/str_split_variation6_64bit.phpt b/ext/standard/tests/strings/str_split_variation6_64bit.phpt index a547f85007..a3a6f757f2 100644 --- a/ext/standard/tests/strings/str_split_variation6_64bit.phpt +++ b/ext/standard/tests/strings/str_split_variation6_64bit.phpt @@ -50,130 +50,6 @@ bool(false) -- Iteration 2 -- array(42) { [0]=> - string(1) "T" - [1]=> - string(1) "h" - [2]=> - string(1) "i" - [3]=> - string(1) "s" - [4]=> - string(1) " " - [5]=> - string(1) "i" - [6]=> - string(1) "s" - [7]=> - string(1) " " - [8]=> - string(1) "a" - [9]=> - string(1) " " - [10]=> - string(1) "s" - [11]=> - string(1) "t" - [12]=> - string(1) "r" - [13]=> - string(1) "i" - [14]=> - string(1) "n" - [15]=> - string(1) "g" - [16]=> - string(1) " " - [17]=> - string(1) "w" - [18]=> - string(1) "i" - [19]=> - string(1) "t" - [20]=> - string(1) "h" - [21]=> - string(1) " " - [22]=> - string(1) "1" - [23]=> - string(1) "2" - [24]=> - string(1) "3" - [25]=> - string(1) " " - [26]=> - string(1) "&" - [27]=> - string(1) " " - [28]=> - string(1) "e" - [29]=> - string(1) "s" - [30]=> - string(1) "c" - [31]=> - string(1) "a" - [32]=> - string(1) "p" - [33]=> - string(1) "e" - [34]=> - string(1) " " - [35]=> - string(1) "c" - [36]=> - string(1) "h" - [37]=> - string(1) "a" - [38]=> - string(1) "r" - [39]=> - string(1) " " - [40]=> - string(1) "\" - [41]=> - string(1) "t" -} --- Iteration 3 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) --- Iteration 4 -- -array(1) { - [0]=> - string(42) "This is a string with 123 & escape char \t" -} --- Iteration 5 -- -array(2) { - [0]=> - string(26) "This is a string with 123 " - [1]=> - string(16) "& escape char \t" -} --- Iteration 6 -- -array(1) { - [0]=> - string(42) "This is a string with 123 & escape char \t" -} --- Iteration 7 -- -array(1) { - [0]=> - string(42) "This is a string with 123 & escape char \t" -} --- Iteration 8 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) -Done ---UEXPECTF-- -*** Testing str_split() : different intger values for 'split_length' *** --- Iteration 1 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) --- Iteration 2 -- -array(42) { - [0]=> unicode(1) "T" [1]=> unicode(1) "h" diff --git a/ext/standard/tests/strings/str_split_variation7.phpt b/ext/standard/tests/strings/str_split_variation7.phpt index 1c21611baa..75b187d6f9 100644 --- a/ext/standard/tests/strings/str_split_variation7.phpt +++ b/ext/standard/tests/strings/str_split_variation7.phpt @@ -52,105 +52,6 @@ bool(false) -- Iteration 2 -- array(30) { [0]=> - string(1) "s" - [1]=> - string(1) "t" - [2]=> - string(1) "r" - [3]=> - string(1) "i" - [4]=> - string(1) "n" - [5]=> - string(1) "g" - [6]=> - string(1) " " - [7]=> - string(1) "w" - [8]=> - string(1) "i" - [9]=> - string(1) "t" - [10]=> - string(1) "h" - [11]=> - string(1) " " - [12]=> - string(1) "1" - [13]=> - string(1) "2" - [14]=> - string(1) "3" - [15]=> - string(1) "," - [16]=> - string(1) "e" - [17]=> - string(1) "s" - [18]=> - string(1) "c" - [19]=> - string(1) "a" - [20]=> - string(1) "p" - [21]=> - string(1) "e" - [22]=> - string(1) " " - [23]=> - string(1) "c" - [24]=> - string(1) "h" - [25]=> - string(1) "a" - [26]=> - string(1) "r" - [27]=> - string(1) " " - [28]=> - string(1) " " - [29]=> - string(1) "." -} --- Iteration 3 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) --- Iteration 4 -- -array(1) { - [0]=> - string(30) "string with 123,escape char ." -} --- Iteration 5 -- -array(2) { - [0]=> - string(26) "string with 123,escape cha" - [1]=> - string(4) "r ." -} --- Iteration 6 -- -array(1) { - [0]=> - string(30) "string with 123,escape char ." -} --- Iteration 7 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) --- Iteration 8 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) -Done ---UEXPECTF-- -*** Testing str_split() : different intger values for 'split_length' with heredoc 'str' *** --- Iteration 1 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) --- Iteration 2 -- -array(30) { - [0]=> unicode(1) "s" [1]=> unicode(1) "t" diff --git a/ext/standard/tests/strings/str_split_variation7_64bit.phpt b/ext/standard/tests/strings/str_split_variation7_64bit.phpt index 638af63421..849974bdaf 100644 --- a/ext/standard/tests/strings/str_split_variation7_64bit.phpt +++ b/ext/standard/tests/strings/str_split_variation7_64bit.phpt @@ -52,106 +52,6 @@ bool(false) -- Iteration 2 -- array(30) { [0]=> - string(1) "s" - [1]=> - string(1) "t" - [2]=> - string(1) "r" - [3]=> - string(1) "i" - [4]=> - string(1) "n" - [5]=> - string(1) "g" - [6]=> - string(1) " " - [7]=> - string(1) "w" - [8]=> - string(1) "i" - [9]=> - string(1) "t" - [10]=> - string(1) "h" - [11]=> - string(1) " " - [12]=> - string(1) "1" - [13]=> - string(1) "2" - [14]=> - string(1) "3" - [15]=> - string(1) "," - [16]=> - string(1) "e" - [17]=> - string(1) "s" - [18]=> - string(1) "c" - [19]=> - string(1) "a" - [20]=> - string(1) "p" - [21]=> - string(1) "e" - [22]=> - string(1) " " - [23]=> - string(1) "c" - [24]=> - string(1) "h" - [25]=> - string(1) "a" - [26]=> - string(1) "r" - [27]=> - string(1) " " - [28]=> - string(1) " " - [29]=> - string(1) "." -} --- Iteration 3 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) --- Iteration 4 -- -array(1) { - [0]=> - string(30) "string with 123,escape char ." -} --- Iteration 5 -- -array(2) { - [0]=> - string(26) "string with 123,escape cha" - [1]=> - string(4) "r ." -} --- Iteration 6 -- -array(1) { - [0]=> - string(30) "string with 123,escape char ." -} --- Iteration 7 -- -array(1) { - [0]=> - string(30) "string with 123,escape char ." -} --- Iteration 8 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) -Done ---UEXPECTF-- -*** Testing str_split() : different intger values for 'split_length' with heredoc 'str' *** --- Iteration 1 -- - -Warning: str_split(): The length of each segment must be greater than zero in %s on line %d -bool(false) --- Iteration 2 -- -array(30) { - [0]=> unicode(1) "s" [1]=> unicode(1) "t" diff --git a/ext/standard/tests/strings/str_word_count.phpt b/ext/standard/tests/strings/str_word_count.phpt index af2aaf9069..28897d9cea 100644 --- a/ext/standard/tests/strings/str_word_count.phpt +++ b/ext/standard/tests/strings/str_word_count.phpt @@ -47,209 +47,6 @@ echo "Done\n"; --EXPECTF-- array(6) { [0]=> - string(5) "Hello" - [1]=> - string(6) "friend" - [2]=> - string(6) "you're" - [3]=> - string(7) "looking" - [4]=> - string(4) "good" - [5]=> - string(5) "today" -} -array(6) { - [0]=> - string(5) "Hello" - [6]=> - string(6) "friend" - [14]=> - string(6) "you're" - [27]=> - string(7) "looking" - [44]=> - string(4) "good" - [49]=> - string(5) "today" -} -int(6) - -Warning: str_word_count(): Invalid format value 3 in %s on line %d -bool(false) - -Warning: str_word_count(): Invalid format value 123 in %s on line %d -bool(false) - -Warning: str_word_count(): Invalid format value -1 in %s on line %d -bool(false) - -Warning: str_word_count(): Invalid format value 99999999 in %s on line %d -bool(false) - -Warning: str_word_count() expects parameter 2 to be long, array given in %s on line %d -NULL - -Warning: str_word_count() expects parameter 2 to be long, string given in %s on line %d -NULL -string(55) "Hello friend, you're - looking good today!" -int(5) -int(6) -int(5) - -Warning: str_word_count() expects parameter 3 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: str_word_count() expects parameter 3 to be string (Unicode or binary), object given in %s on line %d -NULL -int(7) -array(5) { - [0]=> - string(3) "F0o" - [1]=> - string(3) "B4r" - [2]=> - string(1) "s" - [3]=> - string(3) "bar" - [4]=> - string(3) "foo" -} -array(6) { - [0]=> - string(3) "F0o" - [1]=> - string(1) "B" - [2]=> - string(1) "r" - [3]=> - string(2) "1s" - [4]=> - string(3) "bar" - [5]=> - string(3) "foo" -} -array(5) { - [0]=> - string(3) "F0o" - [1]=> - string(3) "B4r" - [2]=> - string(2) "1s" - [3]=> - string(3) "bar" - [4]=> - string(3) "foo" -} - -Warning: str_word_count() expects parameter 3 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: str_word_count() expects parameter 3 to be string (Unicode or binary), object given in %s on line %d -NULL -array(7) { - [0]=> - string(1) "F" - [1]=> - string(1) "o" - [2]=> - string(1) "B" - [3]=> - string(1) "r" - [4]=> - string(1) "s" - [5]=> - string(3) "bar" - [6]=> - string(3) "foo" -} -array(5) { - [0]=> - string(3) "F0o" - [4]=> - string(3) "B4r" - [9]=> - string(1) "s" - [11]=> - string(3) "bar" - [15]=> - string(3) "foo" -} -array(6) { - [0]=> - string(3) "F0o" - [4]=> - string(1) "B" - [6]=> - string(1) "r" - [8]=> - string(2) "1s" - [11]=> - string(3) "bar" - [15]=> - string(3) "foo" -} -array(5) { - [0]=> - string(3) "F0o" - [4]=> - string(3) "B4r" - [8]=> - string(2) "1s" - [11]=> - string(3) "bar" - [15]=> - string(3) "foo" -} - -Warning: str_word_count() expects parameter 3 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: str_word_count() expects parameter 3 to be string (Unicode or binary), object given in %s on line %d -NULL -array(7) { - [0]=> - string(1) "F" - [2]=> - string(1) "o" - [4]=> - string(1) "B" - [6]=> - string(1) "r" - [9]=> - string(1) "s" - [11]=> - string(3) "bar" - [15]=> - string(3) "foo" -} -array(2) { - [0]=> - string(5) "foo'0" - [6]=> - string(8) "bar-0var" -} -array(1) { - [1]=> - string(4) "foo'" -} -array(1) { - [0]=> - string(5) "'foo'" -} -array(1) { - [1]=> - string(3) "foo" -} -array(1) { - [0]=> - string(5) "-foo-" -} -Done ---UEXPECTF-- -array(6) { - [0]=> unicode(5) "Hello" [1]=> unicode(6) "friend" diff --git a/ext/standard/tests/strings/str_word_count1.phpt b/ext/standard/tests/strings/str_word_count1.phpt index 5f49fcfbf3..e942a17385 100644 --- a/ext/standard/tests/strings/str_word_count1.phpt +++ b/ext/standard/tests/strings/str_word_count1.phpt @@ -10,7 +10,7 @@ var_dump($a); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- int(0) Warning: str_word_count(): Invalid format value -1 in %s on line %d diff --git a/ext/standard/tests/strings/strcmp.phpt b/ext/standard/tests/strings/strcmp.phpt Binary files differindex e2da28eb55..44346d8de3 100644 --- a/ext/standard/tests/strings/strcmp.phpt +++ b/ext/standard/tests/strings/strcmp.phpt diff --git a/ext/standard/tests/strings/strcspn.phpt b/ext/standard/tests/strings/strcspn.phpt index 73f0738bed..0000a20d4a 100644 --- a/ext/standard/tests/strings/strcspn.phpt +++ b/ext/standard/tests/strings/strcspn.phpt @@ -12,13 +12,6 @@ var_dump(strcspn($a,$b,9,6)); var_dump(strcspn('a', 'B', 1, 2147483647)); ?> --EXPECT-- -string(25) "22222222aaaa bbb1111 cccc" -string(4) "1234" -int(0) -int(7) -int(6) -int(0) ---UEXPECT-- unicode(25) "22222222aaaa bbb1111 cccc" unicode(4) "1234" int(0) diff --git a/ext/standard/tests/strings/strcspn_basic.phpt b/ext/standard/tests/strings/strcspn_basic.phpt index a7735dd630..7ed9847edf 100644 --- a/ext/standard/tests/strings/strcspn_basic.phpt +++ b/ext/standard/tests/strings/strcspn_basic.phpt @@ -33,14 +33,7 @@ var_dump( strcspn($str, $mask) ); echo "Done" ?> ---EXPECTF-- -*** Testing strcspn() : basic functionality *** -int(2) -int(2) -int(3) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing strcspn() : basic functionality *** int(2) int(2) diff --git a/ext/standard/tests/strings/strcspn_error.phpt b/ext/standard/tests/strings/strcspn_error.phpt index 39af8beccb..03b4f2d2cf 100644 --- a/ext/standard/tests/strings/strcspn_error.phpt +++ b/ext/standard/tests/strings/strcspn_error.phpt @@ -55,22 +55,3 @@ NULL Warning: strcspn() expects at least 2 parameters, 1 given in %s on line %d NULL Done - ---UEXPECTF-- -*** Testing strcspn() : error conditions *** - --- Testing strcspn() function with Zero arguments -- - -Warning: strcspn() expects at least 2 parameters, 0 given in %s on line %d -NULL - --- Testing strcspn() function with more than expected no. of arguments -- - -Warning: strcspn() expects at most 4 parameters, 5 given in %s on line %d -NULL - --- Testing strcspn() function with less than expected no. of arguments -- - -Warning: strcspn() expects at least 2 parameters, 1 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/strcspn_variation1.phpt b/ext/standard/tests/strings/strcspn_variation1.phpt index 0b459b9cbc..b0d76c3605 100644 --- a/ext/standard/tests/strings/strcspn_variation1.phpt +++ b/ext/standard/tests/strings/strcspn_variation1.phpt @@ -271,172 +271,3 @@ NULL Warning: strcspn() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d NULL Done ---UEXPECTF-- -*** Testing strcspn() : with unexpected values for str argument *** - --- Iteration with str value as "0" -int(0) -int(0) -int(0) - --- Iteration with str value as "1" -int(0) -int(0) -int(0) - --- Iteration with str value as "12345" -int(0) -int(0) -int(0) - --- Iteration with str value as "-2345" -int(1) -int(0) -int(0) - --- Iteration with str value as "10.5" -int(0) -int(0) -int(0) - --- Iteration with str value as "-10.5" -int(1) -int(0) -int(0) - --- Iteration with str value as "101234567000" -int(0) -int(0) -int(0) - --- Iteration with str value as "1.07654321E-9" -int(0) -int(1) -int(1) - --- Iteration with str value as "0.5" -int(0) -int(1) -int(1) - --- Iteration with str value as "Array" - -Warning: strcspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with str value as "Array" - -Warning: strcspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with str value as "Array" - -Warning: strcspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with str value as "Array" - -Warning: strcspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with str value as "Array" - -Warning: strcspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with str value as "" -int(0) -bool(false) -bool(false) - --- Iteration with str value as "" -int(0) -bool(false) -bool(false) - --- Iteration with str value as "1" -int(0) -int(0) -int(0) - --- Iteration with str value as "" -int(0) -bool(false) -bool(false) - --- Iteration with str value as "1" -int(0) -int(0) -int(0) - --- Iteration with str value as "" -int(0) -bool(false) -bool(false) - --- Iteration with str value as "" -int(0) -bool(false) -bool(false) - --- Iteration with str value as "" -int(0) -bool(false) -bool(false) - --- Iteration with str value as "object" -int(0) -int(0) -int(0) - --- Iteration with str value as "" -int(0) -bool(false) -bool(false) - --- Iteration with str value as "" -int(0) -bool(false) -bool(false) - --- Iteration with str value as "Resource id #5" - -Warning: strcspn() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL - -Warning: strcspn() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL - -Warning: strcspn() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/strcspn_variation10.phpt b/ext/standard/tests/strings/strcspn_variation10.phpt index 2465f70bf4..ce99ba5746 100644 --- a/ext/standard/tests/strings/strcspn_variation10.phpt +++ b/ext/standard/tests/strings/strcspn_variation10.phpt @@ -63,7 +63,7 @@ foreach($strings as $str) { echo "Done" ?> ---EXPECTF-- +--EXPECT-- *** Testing strcspn() : with different mask strings and default start and len arguments *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/strcspn_variation11.phpt b/ext/standard/tests/strings/strcspn_variation11.phpt index a5fc9bb59d..89353ec5d3 100644 --- a/ext/standard/tests/strings/strcspn_variation11.phpt +++ b/ext/standard/tests/strings/strcspn_variation11.phpt @@ -77,1235 +77,7 @@ foreach($strings as $str) { echo "Done" ?> ---EXPECTF-- -*** Testing strcspn() : with different start and default len values *** - --- Iteration 1 -- -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) - --- Iteration 2 -- -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) - --- Iteration 3 -- -int(1) -int(0) -bool(false) -int(1) -int(1) -bool(false) -int(1) -int(1) -int(0) -bool(false) -int(1) -int(1) -bool(false) -int(1) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -int(0) -bool(false) -int(1) -int(1) -bool(false) -int(1) -int(1) -int(0) -bool(false) -int(1) -int(1) -bool(false) -int(1) -int(1) -int(0) -bool(false) -int(1) -int(1) -bool(false) -int(1) -int(1) -int(0) -bool(false) -int(1) -int(1) -bool(false) -int(1) -int(1) -int(0) -bool(false) -int(1) -int(1) -bool(false) -int(1) -int(1) -int(0) -bool(false) -int(1) -int(1) -bool(false) -int(1) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) - --- Iteration 4 -- -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(0) -int(1) -int(0) -int(1) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(0) -int(1) -int(0) -int(1) -int(0) -bool(false) -int(0) -int(0) -int(1) -int(0) -int(1) -int(0) -bool(false) -int(0) -int(0) -int(1) -int(0) -int(1) -int(0) -bool(false) -int(0) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(0) -int(1) -int(0) -int(1) -int(0) -bool(false) -int(0) - --- Iteration 5 -- -int(24) -int(23) -int(22) -int(1) -int(2) -bool(false) -int(24) -int(24) -int(23) -int(22) -int(1) -int(2) -bool(false) -int(24) -int(2) -int(1) -int(0) -int(0) -int(1) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(24) -int(23) -int(22) -int(1) -int(2) -bool(false) -int(24) -int(24) -int(23) -int(22) -int(1) -int(2) -bool(false) -int(24) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(5) -int(4) -int(3) -int(0) -int(1) -bool(false) -int(5) - --- Iteration 6 -- -int(28) -int(27) -int(26) -int(1) -int(2) -bool(false) -int(28) -int(28) -int(27) -int(26) -int(1) -int(2) -bool(false) -int(28) -int(2) -int(1) -int(0) -int(1) -int(0) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(0) -int(0) -bool(false) -int(2) -int(28) -int(27) -int(26) -int(1) -int(2) -bool(false) -int(28) -int(5) -int(4) -int(3) -int(1) -int(0) -bool(false) -int(5) -int(5) -int(4) -int(3) -int(1) -int(0) -bool(false) -int(5) -int(5) -int(4) -int(3) -int(1) -int(0) -bool(false) -int(5) -int(28) -int(27) -int(26) -int(1) -int(2) -bool(false) -int(28) -int(5) -int(4) -int(3) -int(1) -int(0) -bool(false) -int(5) - --- Iteration 7 -- -int(20) -int(19) -int(18) -int(1) -int(2) -bool(false) -int(20) -int(20) -int(19) -int(18) -int(1) -int(2) -bool(false) -int(20) -int(6) -int(5) -int(4) -int(1) -int(2) -bool(false) -int(6) -int(6) -int(5) -int(4) -int(1) -int(2) -bool(false) -int(6) -int(16) -int(15) -int(14) -int(1) -int(2) -bool(false) -int(16) -int(20) -int(19) -int(18) -int(1) -int(2) -bool(false) -int(20) -int(20) -int(19) -int(18) -int(1) -int(2) -bool(false) -int(20) -int(16) -int(15) -int(14) -int(1) -int(2) -bool(false) -int(16) -int(16) -int(15) -int(14) -int(1) -int(2) -bool(false) -int(16) -int(16) -int(15) -int(14) -int(1) -int(2) -bool(false) -int(16) - --- Iteration 8 -- -int(21) -int(20) -int(19) -int(1) -int(2) -bool(false) -int(21) -int(21) -int(20) -int(19) -int(1) -int(2) -bool(false) -int(21) -int(6) -int(5) -int(4) -int(1) -int(2) -bool(false) -int(6) -int(6) -int(5) -int(4) -int(1) -int(2) -bool(false) -int(6) -int(21) -int(20) -int(19) -int(1) -int(2) -bool(false) -int(21) -int(16) -int(15) -int(14) -int(1) -int(2) -bool(false) -int(16) -int(16) -int(15) -int(14) -int(1) -int(2) -bool(false) -int(16) -int(16) -int(15) -int(14) -int(1) -int(2) -bool(false) -int(16) -int(21) -int(20) -int(19) -int(1) -int(2) -bool(false) -int(21) -int(16) -int(15) -int(14) -int(1) -int(2) -bool(false) -int(16) - --- Iteration 9 -- -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(2) -int(1) -int(0) -int(0) -int(1) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(12) -int(11) -int(10) -int(1) -int(2) -bool(false) -int(12) -int(12) -int(11) -int(10) -int(1) -int(2) -bool(false) -int(12) -int(12) -int(11) -int(10) -int(1) -int(2) -bool(false) -int(12) -int(12) -int(11) -int(10) -int(1) -int(2) -bool(false) -int(12) -int(12) -int(11) -int(10) -int(1) -int(2) -bool(false) -int(12) -int(11) -int(10) -int(9) -int(0) -int(1) -bool(false) -int(11) - --- Iteration 10 -- -int(16) -int(15) -int(14) -int(1) -int(2) -bool(false) -int(16) -int(16) -int(15) -int(14) -int(1) -int(2) -bool(false) -int(16) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(16) -int(15) -int(14) -int(1) -int(2) -bool(false) -int(16) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(16) -int(15) -int(14) -int(1) -int(2) -bool(false) -int(16) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) - --- Iteration 11 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) - --- Iteration 12 -- -int(0) -int(5) -int(4) -int(0) -int(1) -bool(false) -int(0) -int(0) -int(5) -int(4) -int(0) -int(1) -bool(false) -int(0) -int(3) -int(2) -int(1) -int(1) -int(2) -bool(false) -int(3) -int(3) -int(2) -int(1) -int(1) -int(2) -bool(false) -int(3) -int(13) -int(12) -int(11) -int(1) -int(2) -bool(false) -int(13) -int(13) -int(12) -int(11) -int(1) -int(2) -bool(false) -int(13) -int(13) -int(12) -int(11) -int(1) -int(2) -bool(false) -int(13) -int(13) -int(12) -int(11) -int(1) -int(2) -bool(false) -int(13) -int(13) -int(12) -int(11) -int(1) -int(2) -bool(false) -int(13) -int(13) -int(12) -int(11) -int(1) -int(2) -bool(false) -int(13) - --- Iteration 13 -- -int(0) -int(12) -int(11) -int(0) -int(1) -bool(false) -int(0) -int(0) -int(12) -int(11) -int(0) -int(1) -bool(false) -int(0) -int(3) -int(2) -int(1) -int(1) -int(2) -bool(false) -int(3) -int(3) -int(2) -int(1) -int(1) -int(2) -bool(false) -int(3) -int(14) -int(13) -int(12) -int(1) -int(2) -bool(false) -int(14) -int(6) -int(5) -int(4) -int(1) -int(2) -bool(false) -int(6) -int(6) -int(5) -int(4) -int(1) -int(2) -bool(false) -int(6) -int(6) -int(5) -int(4) -int(1) -int(2) -bool(false) -int(6) -int(14) -int(13) -int(12) -int(1) -int(2) -bool(false) -int(14) -int(6) -int(5) -int(4) -int(1) -int(2) -bool(false) -int(6) - --- Iteration 14 -- -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(2) -int(1) -int(0) -int(1) -int(0) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(0) -bool(false) -int(2) -int(11) -int(10) -int(9) -int(1) -int(2) -bool(false) -int(11) -int(11) -int(10) -int(9) -int(1) -int(2) -bool(false) -int(11) -int(11) -int(10) -int(9) -int(1) -int(2) -bool(false) -int(11) -int(11) -int(10) -int(9) -int(1) -int(2) -bool(false) -int(11) -int(11) -int(10) -int(9) -int(1) -int(2) -bool(false) -int(11) -int(11) -int(10) -int(9) -int(1) -int(2) -bool(false) -int(11) - --- Iteration 15 -- -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(2) -int(1) -int(0) -int(1) -int(0) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(0) -bool(false) -int(2) -int(11) -int(10) -int(9) -int(1) -int(2) -bool(false) -int(11) -int(11) -int(10) -int(9) -int(1) -int(2) -bool(false) -int(11) -int(11) -int(10) -int(9) -int(1) -int(2) -bool(false) -int(11) -int(11) -int(10) -int(9) -int(1) -int(2) -bool(false) -int(11) -int(11) -int(10) -int(9) -int(1) -int(2) -bool(false) -int(11) -int(11) -int(10) -int(9) -int(1) -int(2) -bool(false) -int(11) - --- Iteration 16 -- -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(2) -int(1) -int(0) -int(1) -int(0) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(0) -bool(false) -int(2) -int(14) -int(13) -int(12) -int(1) -int(2) -bool(false) -int(14) -int(14) -int(13) -int(12) -int(1) -int(2) -bool(false) -int(14) -int(14) -int(13) -int(12) -int(1) -int(2) -bool(false) -int(14) -int(14) -int(13) -int(12) -int(1) -int(2) -bool(false) -int(14) -int(14) -int(13) -int(12) -int(1) -int(2) -bool(false) -int(14) -int(6) -int(5) -int(4) -int(1) -int(2) -bool(false) -int(6) - --- Iteration 17 -- -int(21) -int(20) -int(19) -int(1) -int(2) -bool(false) -int(21) -int(21) -int(20) -int(19) -int(1) -int(2) -bool(false) -int(21) -int(2) -int(1) -int(0) -int(1) -int(0) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(0) -bool(false) -int(2) -int(21) -int(20) -int(19) -int(1) -int(2) -bool(false) -int(21) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(21) -int(20) -int(19) -int(1) -int(2) -bool(false) -int(21) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing strcspn() : with different start and default len values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/strcspn_variation12.phpt b/ext/standard/tests/strings/strcspn_variation12.phpt index 624f2a998a..804cd3647a 100644 --- a/ext/standard/tests/strings/strcspn_variation12.phpt +++ b/ext/standard/tests/strings/strcspn_variation12.phpt @@ -79,2409 +79,7 @@ foreach($strings as $str) { echo "Done" ?> ---EXPECTF-- -*** Testing strcspn() : with different start and len values *** - --- Iteration 1 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 2 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 3 -- -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 4 -- -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 5 -- -int(0) -int(1) -int(2) -int(23) -int(24) -int(0) -int(0) -int(1) -int(2) -int(22) -int(23) -int(0) -int(0) -int(1) -int(2) -int(21) -int(22) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(23) -int(24) -int(0) -int(0) -int(1) -int(2) -int(23) -int(24) -int(0) -int(0) -int(1) -int(2) -int(22) -int(23) -int(0) -int(0) -int(1) -int(2) -int(21) -int(22) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(23) -int(24) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(23) -int(24) -int(0) -int(0) -int(1) -int(2) -int(22) -int(23) -int(0) -int(0) -int(1) -int(2) -int(21) -int(22) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(23) -int(24) -int(0) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) - --- Iteration 6 -- -int(0) -int(1) -int(2) -int(19) -int(20) -int(0) -int(0) -int(1) -int(2) -int(18) -int(19) -int(0) -int(0) -int(1) -int(2) -int(17) -int(18) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(19) -int(20) -int(0) -int(0) -int(1) -int(2) -int(19) -int(20) -int(0) -int(0) -int(1) -int(2) -int(18) -int(19) -int(0) -int(0) -int(1) -int(2) -int(17) -int(18) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(19) -int(20) -int(0) -int(0) -int(1) -int(2) -int(6) -int(6) -int(0) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(6) -int(6) -int(0) -int(0) -int(1) -int(2) -int(16) -int(16) -int(0) -int(0) -int(1) -int(2) -int(15) -int(15) -int(0) -int(0) -int(1) -int(2) -int(14) -int(14) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(16) -int(16) -int(0) -int(0) -int(1) -int(2) -int(19) -int(20) -int(0) -int(0) -int(1) -int(2) -int(18) -int(19) -int(0) -int(0) -int(1) -int(2) -int(17) -int(18) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(19) -int(20) -int(0) -int(0) -int(1) -int(2) -int(16) -int(16) -int(0) -int(0) -int(1) -int(2) -int(15) -int(15) -int(0) -int(0) -int(1) -int(2) -int(14) -int(14) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(16) -int(16) -int(0) - --- Iteration 7 -- -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(2) -int(11) -int(12) -int(0) -int(0) -int(1) -int(2) -int(10) -int(11) -int(0) -int(0) -int(1) -int(2) -int(9) -int(10) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(11) -int(12) -int(0) -int(0) -int(1) -int(2) -int(11) -int(12) -int(0) -int(0) -int(1) -int(2) -int(10) -int(11) -int(0) -int(0) -int(1) -int(2) -int(9) -int(10) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(11) -int(12) -int(0) -int(0) -int(1) -int(2) -int(11) -int(11) -int(0) -int(0) -int(1) -int(2) -int(10) -int(10) -int(0) -int(0) -int(1) -int(2) -int(9) -int(9) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(11) -int(11) -int(0) - --- Iteration 8 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) - --- Iteration 9 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(12) -int(13) -int(0) -int(0) -int(1) -int(2) -int(11) -int(12) -int(0) -int(0) -int(1) -int(2) -int(10) -int(11) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(12) -int(13) -int(0) -int(0) -int(1) -int(2) -int(12) -int(13) -int(0) -int(0) -int(1) -int(2) -int(11) -int(12) -int(0) -int(0) -int(1) -int(2) -int(10) -int(11) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(12) -int(13) -int(0) -int(0) -int(1) -int(2) -int(12) -int(13) -int(0) -int(0) -int(1) -int(2) -int(11) -int(12) -int(0) -int(0) -int(1) -int(2) -int(10) -int(11) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(12) -int(13) -int(0) - --- Iteration 10 -- -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(2) -int(10) -int(11) -int(0) -int(0) -int(1) -int(2) -int(9) -int(10) -int(0) -int(0) -int(1) -int(2) -int(8) -int(9) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(10) -int(11) -int(0) -int(0) -int(1) -int(2) -int(10) -int(11) -int(0) -int(0) -int(1) -int(2) -int(9) -int(10) -int(0) -int(0) -int(1) -int(2) -int(8) -int(9) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(10) -int(11) -int(0) -int(0) -int(1) -int(2) -int(10) -int(11) -int(0) -int(0) -int(1) -int(2) -int(9) -int(10) -int(0) -int(0) -int(1) -int(2) -int(8) -int(9) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(10) -int(11) -int(0) - --- Iteration 11 -- -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(2) -int(12) -int(13) -int(0) -int(0) -int(1) -int(2) -int(11) -int(12) -int(0) -int(0) -int(1) -int(2) -int(10) -int(11) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(12) -int(13) -int(0) -int(0) -int(1) -int(2) -int(12) -int(13) -int(0) -int(0) -int(1) -int(2) -int(11) -int(12) -int(0) -int(0) -int(1) -int(2) -int(10) -int(11) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(12) -int(13) -int(0) -int(0) -int(1) -int(2) -int(6) -int(6) -int(0) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(6) -int(6) -int(0) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing strcspn() : with different start and len values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/strcspn_variation2.phpt b/ext/standard/tests/strings/strcspn_variation2.phpt index 6b3e4a37bc..1c8a2823a7 100644 --- a/ext/standard/tests/strings/strcspn_variation2.phpt +++ b/ext/standard/tests/strings/strcspn_variation2.phpt @@ -270,172 +270,3 @@ NULL Warning: strcspn() expects parameter 2 to be string (Unicode or binary), resource given in %s on line %d NULL Done ---UEXPECTF-- -*** Testing strcspn() : with diferent unexpected values of mask argument *** - --- Iteration with mask value as "0" -- -int(10) -int(9) -int(9) - --- Iteration with mask value as "1" -- -int(10) -int(9) -int(9) - --- Iteration with mask value as "12345" -- -int(10) -int(9) -int(9) - --- Iteration with mask value as "-2345" -- -int(10) -int(9) -int(9) - --- Iteration with mask value as "10.5" -- -int(10) -int(9) -int(9) - --- Iteration with mask value as "-10.5" -- -int(10) -int(9) -int(9) - --- Iteration with mask value as "101234567000" -- -int(10) -int(9) -int(9) - --- Iteration with mask value as "1.07654321E-9" -- -int(10) -int(9) -int(9) - --- Iteration with mask value as "0.5" -- -int(10) -int(9) -int(9) - --- Iteration with mask value as "Array" -- - -Warning: strcspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with mask value as "Array" -- - -Warning: strcspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with mask value as "Array" -- - -Warning: strcspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with mask value as "Array" -- - -Warning: strcspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with mask value as "Array" -- - -Warning: strcspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with mask value as "" -- -int(10) -int(9) -int(9) - --- Iteration with mask value as "" -- -int(10) -int(9) -int(9) - --- Iteration with mask value as "1" -- -int(10) -int(9) -int(9) - --- Iteration with mask value as "" -- -int(10) -int(9) -int(9) - --- Iteration with mask value as "1" -- -int(10) -int(9) -int(9) - --- Iteration with mask value as "" -- -int(10) -int(9) -int(9) - --- Iteration with mask value as "" -- -int(10) -int(9) -int(9) - --- Iteration with mask value as "" -- -int(10) -int(9) -int(9) - --- Iteration with mask value as "object" -- -int(1) -int(0) -int(0) - --- Iteration with mask value as "" -- -int(10) -int(9) -int(9) - --- Iteration with mask value as "" -- -int(10) -int(9) -int(9) - --- Iteration with mask value as "Resource id #5" -- - -Warning: strcspn() expects parameter 2 to be string (Unicode or binary), resource given in %s on line %d -NULL - -Warning: strcspn() expects parameter 2 to be string (Unicode or binary), resource given in %s on line %d -NULL - -Warning: strcspn() expects parameter 2 to be string (Unicode or binary), resource given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/strcspn_variation3.phpt b/ext/standard/tests/strings/strcspn_variation3.phpt index 1c735dccc7..be6408a039 100644 --- a/ext/standard/tests/strings/strcspn_variation3.phpt +++ b/ext/standard/tests/strings/strcspn_variation3.phpt @@ -123,149 +123,6 @@ int(0) -- Iteration with start value as "Array" -- -Warning: strcspn() expects parameter 3 to be long, array given in %s on line 89 -NULL - -Warning: strcspn() expects parameter 3 to be long, array given in %s on line %d -NULL - --- Iteration with start value as "Array" -- - -Warning: strcspn() expects parameter 3 to be long, array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 3 to be long, array given in %s on line %d -NULL - --- Iteration with start value as "Array" -- - -Warning: strcspn() expects parameter 3 to be long, array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 3 to be long, array given in %s on line %d -NULL - --- Iteration with start value as "Array" -- - -Warning: strcspn() expects parameter 3 to be long, array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 3 to be long, array given in %s on line %d -NULL - --- Iteration with start value as "Array" -- - -Warning: strcspn() expects parameter 3 to be long, array given in %s on line %d -NULL - -Warning: strcspn() expects parameter 3 to be long, array given in %s on line %d -NULL - --- Iteration with start value as "" -- -int(0) -int(0) - --- Iteration with start value as "" -- -int(0) -int(0) - --- Iteration with start value as "1" -- -int(0) -int(0) - --- Iteration with start value as "" -- -int(0) -int(0) - --- Iteration with start value as "1" -- -int(0) -int(0) - --- Iteration with start value as "" -- -int(0) -int(0) - --- Iteration with start value as "" -- - -Warning: strcspn() expects parameter 3 to be long, string given in %s on line %d -NULL - -Warning: strcspn() expects parameter 3 to be long, string given in %s on line %d -NULL - --- Iteration with start value as "" -- - -Warning: strcspn() expects parameter 3 to be long, string given in %s on line %d -NULL - -Warning: strcspn() expects parameter 3 to be long, string given in %s on line %d -NULL - --- Iteration with start value as "string" -- - -Warning: strcspn() expects parameter 3 to be long, string given in %s on line %d -NULL - -Warning: strcspn() expects parameter 3 to be long, string given in %s on line %d -NULL - --- Iteration with start value as "string" -- - -Warning: strcspn() expects parameter 3 to be long, string given in %s on line %d -NULL - -Warning: strcspn() expects parameter 3 to be long, string given in %s on line %d -NULL - --- Iteration with start value as "object" -- - -Warning: strcspn() expects parameter 3 to be long, object given in %s on line %d -NULL - -Warning: strcspn() expects parameter 3 to be long, object given in %s on line %d -NULL - --- Iteration with start value as "" -- -int(0) -int(0) - --- Iteration with start value as "" -- -int(0) -int(0) - --- Iteration with start value as "Resource id #%d" -- - -Warning: strcspn() expects parameter 3 to be long, resource given in %s on line %d -NULL - -Warning: strcspn() expects parameter 3 to be long, resource given in %s on line %d -NULL -Done ---UEXPECTF-- -*** Testing strcspn() : with unexpected values of start argument *** - --- Iteration with start value as "10.5" -- -int(0) -int(0) - --- Iteration with start value as "-10.5" -- -int(0) -int(0) - --- Iteration with start value as "1012345670" -- -bool(false) -bool(false) - --- Iteration with start value as "1.07654321E-7" -- -int(0) -int(0) - --- Iteration with start value as "0.5" -- -int(0) -int(0) - --- Iteration with start value as "Array" -- - Warning: strcspn() expects parameter 3 to be long, array given in %s on line %d NULL diff --git a/ext/standard/tests/strings/strcspn_variation4.phpt b/ext/standard/tests/strings/strcspn_variation4.phpt index 9251497eb5..8e2fb67484 100644 --- a/ext/standard/tests/strings/strcspn_variation4.phpt +++ b/ext/standard/tests/strings/strcspn_variation4.phpt @@ -160,103 +160,6 @@ int(0) -- Iteration with len value as "" -- -Warning: strcspn() expects parameter 4 to be long, string given in %s on line %d -NULL - --- Iteration with len value as "" -- - -Warning: strcspn() expects parameter 4 to be long, string given in %s on line %d -NULL - --- Iteration with len value as "string" -- - -Warning: strcspn() expects parameter 4 to be long, string given in %s on line %d -NULL - --- Iteration with len value as "string" -- - -Warning: strcspn() expects parameter 4 to be long, string given in %s on line %d -NULL - --- Iteration with len value as "object" -- - -Warning: strcspn() expects parameter 4 to be long, object given in %s on line %d -NULL - --- Iteration with len value as "" -- -int(0) - --- Iteration with len value as "" -- -int(0) - --- Iteration with len value as "Resource id #%d" -- - -Warning: strcspn() expects parameter 4 to be long, resource given in %s on line %d -NULL -Done ---UEXPECTF-- -*** Testing strcspn() : with unexpected values of len argument *** - --- Iteration with len value as "10.5" -- -int(0) - --- Iteration with len value as "-10.5" -- -int(0) - --- Iteration with len value as "101234567000" -- -int(0) - --- Iteration with len value as "1.07654321E-9" -- -int(0) - --- Iteration with len value as "0.5" -- -int(0) - --- Iteration with len value as "Array" -- - -Warning: strcspn() expects parameter 4 to be long, array given in %s on line %d -NULL - --- Iteration with len value as "Array" -- - -Warning: strcspn() expects parameter 4 to be long, array given in %s on line %d -NULL - --- Iteration with len value as "Array" -- - -Warning: strcspn() expects parameter 4 to be long, array given in %s on line %d -NULL - --- Iteration with len value as "Array" -- - -Warning: strcspn() expects parameter 4 to be long, array given in %s on line %d -NULL - --- Iteration with len value as "Array" -- - -Warning: strcspn() expects parameter 4 to be long, array given in %s on line %d -NULL - --- Iteration with len value as "" -- -int(0) - --- Iteration with len value as "" -- -int(0) - --- Iteration with len value as "1" -- -int(0) - --- Iteration with len value as "" -- -int(0) - --- Iteration with len value as "1" -- -int(0) - --- Iteration with len value as "" -- -int(0) - --- Iteration with len value as "" -- - Warning: strcspn() expects parameter 4 to be long, Unicode string given in %s on line %d NULL diff --git a/ext/standard/tests/strings/strcspn_variation5.phpt b/ext/standard/tests/strings/strcspn_variation5.phpt Binary files differindex 1ad7df84ee..c96bccc226 100644 --- a/ext/standard/tests/strings/strcspn_variation5.phpt +++ b/ext/standard/tests/strings/strcspn_variation5.phpt diff --git a/ext/standard/tests/strings/strcspn_variation6.phpt b/ext/standard/tests/strings/strcspn_variation6.phpt index 2da884bb87..04e788e923 100644 --- a/ext/standard/tests/strings/strcspn_variation6.phpt +++ b/ext/standard/tests/strings/strcspn_variation6.phpt @@ -88,95 +88,7 @@ foreach($heredoc_strings as $str) { echo "Done" ?> ---EXPECTF-- -*** Testing strcspn() : with different mask strings *** - --- Iteration 1 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 2 -- -int(2) -int(2) -int(0) -int(2) -int(2) -int(2) -int(2) -int(2) -int(2) -int(2) - --- Iteration 3 -- -int(86) -int(86) -int(1) -int(1) -int(86) -int(4) -int(4) -int(5) -int(5) -int(1) - --- Iteration 4 -- -int(24) -int(24) -int(2) -int(2) -int(5) -int(24) -int(24) -int(5) -int(5) -int(5) - --- Iteration 5 -- -int(31) -int(31) -int(2) -int(2) -int(26) -int(31) -int(31) -int(26) -int(26) -int(26) - --- Iteration 6 -- -int(5) -int(5) -int(2) -int(2) -int(25) -int(25) -int(25) -int(25) -int(25) -int(25) - --- Iteration 7 -- -int(5) -int(5) -int(2) -int(2) -int(27) -int(27) -int(27) -int(27) -int(27) -int(6) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing strcspn() : with different mask strings *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/strcspn_variation7.phpt b/ext/standard/tests/strings/strcspn_variation7.phpt index 175dd0e274..ce059969ce 100644 --- a/ext/standard/tests/strings/strcspn_variation7.phpt +++ b/ext/standard/tests/strings/strcspn_variation7.phpt @@ -103,515 +103,7 @@ foreach($heredoc_strings as $str) { echo "Done" ?> ---EXPECTF-- -*** Testing strcspn() : with different start values *** - --- Iteration 1 -- -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) - --- Iteration 2 -- -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) - --- Iteration 3 -- -int(86) -int(85) -int(84) -int(1) -int(2) -bool(false) -int(86) -int(86) -int(85) -int(84) -int(1) -int(2) -bool(false) -int(86) -int(1) -int(0) -int(0) -int(1) -int(2) -bool(false) -int(1) -int(1) -int(0) -int(0) -int(1) -int(0) -bool(false) -int(1) -int(86) -int(85) -int(84) -int(1) -int(2) -bool(false) -int(86) -int(4) -int(3) -int(2) -int(1) -int(2) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(1) -int(2) -bool(false) -int(4) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(1) -int(0) -int(5) -int(1) -int(2) -bool(false) -int(1) - --- Iteration 4 -- -int(24) -int(23) -int(22) -int(1) -int(2) -bool(false) -int(24) -int(24) -int(23) -int(22) -int(1) -int(2) -bool(false) -int(24) -int(2) -int(1) -int(0) -int(0) -int(1) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(24) -int(23) -int(22) -int(1) -int(2) -bool(false) -int(24) -int(24) -int(23) -int(22) -int(1) -int(2) -bool(false) -int(24) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) -int(5) -int(4) -int(3) -int(1) -int(2) -bool(false) -int(5) - --- Iteration 5 -- -int(31) -int(30) -int(29) -int(1) -int(2) -bool(false) -int(31) -int(31) -int(30) -int(29) -int(1) -int(2) -bool(false) -int(31) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(26) -int(25) -int(24) -int(1) -int(2) -bool(false) -int(26) -int(31) -int(30) -int(29) -int(1) -int(2) -bool(false) -int(31) -int(31) -int(30) -int(29) -int(1) -int(2) -bool(false) -int(31) -int(26) -int(25) -int(24) -int(1) -int(2) -bool(false) -int(26) -int(26) -int(25) -int(24) -int(1) -int(2) -bool(false) -int(26) -int(26) -int(25) -int(24) -int(1) -int(2) -bool(false) -int(26) - --- Iteration 6 -- -int(5) -int(4) -int(3) -int(0) -int(1) -bool(false) -int(5) -int(5) -int(4) -int(3) -int(0) -int(1) -bool(false) -int(5) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(25) -int(24) -int(23) -int(1) -int(2) -bool(false) -int(25) -int(25) -int(24) -int(23) -int(1) -int(2) -bool(false) -int(25) -int(25) -int(24) -int(23) -int(1) -int(2) -bool(false) -int(25) -int(25) -int(24) -int(23) -int(1) -int(2) -bool(false) -int(25) -int(25) -int(24) -int(23) -int(1) -int(2) -bool(false) -int(25) -int(25) -int(24) -int(23) -int(1) -int(2) -bool(false) -int(25) - --- Iteration 7 -- -int(5) -int(4) -int(3) -int(0) -int(1) -bool(false) -int(5) -int(5) -int(4) -int(3) -int(0) -int(1) -bool(false) -int(5) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(27) -int(26) -int(25) -int(1) -int(2) -bool(false) -int(27) -int(27) -int(26) -int(25) -int(1) -int(2) -bool(false) -int(27) -int(27) -int(26) -int(25) -int(1) -int(2) -bool(false) -int(27) -int(27) -int(26) -int(25) -int(1) -int(2) -bool(false) -int(27) -int(27) -int(26) -int(25) -int(1) -int(2) -bool(false) -int(27) -int(6) -int(5) -int(4) -int(1) -int(2) -bool(false) -int(6) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing strcspn() : with different start values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/strcspn_variation8.phpt b/ext/standard/tests/strings/strcspn_variation8.phpt index eb0019409e..c259929550 100644 --- a/ext/standard/tests/strings/strcspn_variation8.phpt +++ b/ext/standard/tests/strings/strcspn_variation8.phpt @@ -109,1789 +109,7 @@ foreach($heredoc_strings as $str) { echo "Done" ?> ---EXPECTF-- -*** Testing strcspn() : with different start and len values *** - --- Iteration 1 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 2 -- -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) - --- Iteration 3 -- -int(0) -int(1) -int(2) -int(85) -int(86) -int(0) -int(0) -int(1) -int(2) -int(84) -int(85) -int(0) -int(0) -int(1) -int(2) -int(83) -int(84) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(85) -int(86) -int(0) -int(0) -int(1) -int(2) -int(85) -int(86) -int(0) -int(0) -int(1) -int(2) -int(84) -int(85) -int(0) -int(0) -int(1) -int(2) -int(83) -int(84) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(85) -int(86) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(1) -int(2) -int(85) -int(86) -int(0) -int(0) -int(1) -int(2) -int(84) -int(85) -int(0) -int(0) -int(1) -int(2) -int(83) -int(84) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(85) -int(86) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) - --- Iteration 4 -- -int(0) -int(1) -int(2) -int(23) -int(24) -int(0) -int(0) -int(1) -int(2) -int(22) -int(23) -int(0) -int(0) -int(1) -int(2) -int(21) -int(22) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(23) -int(24) -int(0) -int(0) -int(1) -int(2) -int(23) -int(24) -int(0) -int(0) -int(1) -int(2) -int(22) -int(23) -int(0) -int(0) -int(1) -int(2) -int(21) -int(22) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(23) -int(24) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(23) -int(24) -int(0) -int(0) -int(1) -int(2) -int(22) -int(23) -int(0) -int(0) -int(1) -int(2) -int(21) -int(22) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(23) -int(24) -int(0) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) - --- Iteration 5 -- -int(0) -int(1) -int(2) -int(30) -int(31) -int(0) -int(0) -int(1) -int(2) -int(29) -int(30) -int(0) -int(0) -int(1) -int(2) -int(28) -int(29) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(30) -int(31) -int(0) -int(0) -int(1) -int(2) -int(30) -int(31) -int(0) -int(0) -int(1) -int(2) -int(29) -int(30) -int(0) -int(0) -int(1) -int(2) -int(28) -int(29) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(30) -int(31) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(2) -int(26) -int(26) -int(0) -int(0) -int(1) -int(2) -int(25) -int(25) -int(0) -int(0) -int(1) -int(2) -int(24) -int(24) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(26) -int(26) -int(0) -int(0) -int(1) -int(2) -int(30) -int(31) -int(0) -int(0) -int(1) -int(2) -int(29) -int(30) -int(0) -int(0) -int(1) -int(2) -int(28) -int(29) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(30) -int(31) -int(0) -int(0) -int(1) -int(2) -int(26) -int(26) -int(0) -int(0) -int(1) -int(2) -int(25) -int(25) -int(0) -int(0) -int(1) -int(2) -int(24) -int(24) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(26) -int(26) -int(0) -int(0) -int(1) -int(2) -int(26) -int(26) -int(0) -int(0) -int(1) -int(2) -int(25) -int(25) -int(0) -int(0) -int(1) -int(2) -int(24) -int(24) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(26) -int(26) -int(0) - --- Iteration 6 -- -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(2) -int(24) -int(25) -int(0) -int(0) -int(1) -int(2) -int(23) -int(24) -int(0) -int(0) -int(1) -int(2) -int(22) -int(23) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(24) -int(25) -int(0) -int(0) -int(1) -int(2) -int(24) -int(25) -int(0) -int(0) -int(1) -int(2) -int(23) -int(24) -int(0) -int(0) -int(1) -int(2) -int(22) -int(23) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(24) -int(25) -int(0) -int(0) -int(1) -int(2) -int(24) -int(25) -int(0) -int(0) -int(1) -int(2) -int(23) -int(24) -int(0) -int(0) -int(1) -int(2) -int(22) -int(23) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(24) -int(25) -int(0) -int(0) -int(1) -int(2) -int(24) -int(25) -int(0) -int(0) -int(1) -int(2) -int(23) -int(24) -int(0) -int(0) -int(1) -int(2) -int(22) -int(23) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(24) -int(25) -int(0) - --- Iteration 7 -- -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(2) -int(26) -int(27) -int(0) -int(0) -int(1) -int(2) -int(25) -int(26) -int(0) -int(0) -int(1) -int(2) -int(24) -int(25) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(26) -int(27) -int(0) -int(0) -int(1) -int(2) -int(26) -int(27) -int(0) -int(0) -int(1) -int(2) -int(25) -int(26) -int(0) -int(0) -int(1) -int(2) -int(24) -int(25) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(26) -int(27) -int(0) -int(0) -int(1) -int(2) -int(26) -int(27) -int(0) -int(0) -int(1) -int(2) -int(25) -int(26) -int(0) -int(0) -int(1) -int(2) -int(24) -int(25) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(26) -int(27) -int(0) -int(0) -int(1) -int(2) -int(6) -int(6) -int(0) -int(0) -int(1) -int(2) -int(5) -int(5) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(6) -int(6) -int(0) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing strcspn() : with different start and len values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/strcspn_variation9.phpt b/ext/standard/tests/strings/strcspn_variation9.phpt Binary files differindex 9ed28979c5..4cc177412c 100644 --- a/ext/standard/tests/strings/strcspn_variation9.phpt +++ b/ext/standard/tests/strings/strcspn_variation9.phpt diff --git a/ext/standard/tests/strings/strings001.phpt b/ext/standard/tests/strings/strings001.phpt index 4ccb558fad..52bacfbeb0 100644 --- a/ext/standard/tests/strings/strings001.phpt +++ b/ext/standard/tests/strings/strings001.phpt @@ -8,8 +8,5 @@ var_dump(strstr($s, "nic")); var_dump(strrchr($s," nic")); ?> --EXPECTREGEX-- -string\(18\) \"nica\x00turska panica\" -string\(7\) \" panica\" ---UEXPECTREGEX-- unicode\(18\) \"nica\x00turska panica\" unicode\(7\) \" panica\" diff --git a/ext/standard/tests/strings/strip_tags_basic1.phpt b/ext/standard/tests/strings/strip_tags_basic1.phpt index 42f7a81af9..a20646b4a6 100644 --- a/ext/standard/tests/strings/strip_tags_basic1.phpt +++ b/ext/standard/tests/strings/strip_tags_basic1.phpt @@ -42,38 +42,7 @@ foreach($string_array as $string) echo "Done"; ?> ---EXPECTF-- -*** Testing strip_tags() : basic functionality *** --- Iteration 1 -- -string(5) "hello" --- Iteration 2 -- -string(5) "hello" --- Iteration 3 -- -string(0) "" --- Iteration 4 -- -string(0) "" --- Iteration 5 -- -string(0) "" --- Iteration 6 -- -string(0) "" --- Iteration 7 -- -string(0) "" --- Iteration 8 -- -string(0) "" --- Iteration 9 -- -string(12) " echo hello " --- Iteration 10 -- -string(12) " echo hello " --- Iteration 11 -- -string(10) "helloworld" --- Iteration 12 -- -string(10) "helloworld" --- Iteration 13 -- -string(0) "" --- Iteration 14 -- -string(0) "" -Done ---UEXPECTF-- +--EXPECT-- *** Testing strip_tags() : basic functionality *** -- Iteration 1 -- unicode(5) "hello" diff --git a/ext/standard/tests/strings/strip_tags_basic2.phpt b/ext/standard/tests/strings/strip_tags_basic2.phpt index fb3e883957..2d91ba4d3b 100644 --- a/ext/standard/tests/strings/strip_tags_basic2.phpt +++ b/ext/standard/tests/strings/strip_tags_basic2.phpt @@ -38,28 +38,7 @@ foreach($allowed_tags_array as $tags) echo "Done"; ?> ---EXPECTF-- -*** Testing strip_tags() : basic functionality *** --- Iteration 1 -- -string(33) "<html>helloworldOther text</html>" --- Iteration 2 -- -string(33) "<html>helloworldOther text</html>" --- Iteration 3 -- -string(27) "<p>hello</p>worldOther text" --- Iteration 4 -- -string(27) "<p>hello</p>worldOther text" --- Iteration 5 -- -string(44) "helloworld<a href="#fragment">Other text</a>" --- Iteration 6 -- -string(44) "helloworld<a href="#fragment">Other text</a>" --- Iteration 7 -- -string(20) "helloworldOther text" --- Iteration 8 -- -string(20) "helloworldOther text" --- Iteration 9 -- -string(64) "<html><p>hello</p>world<a href="#fragment">Other text</a></html>" -Done ---UEXPECTF-- +--EXPECT-- *** Testing strip_tags() : basic functionality *** -- Iteration 1 -- unicode(33) "<html>helloworldOther text</html>" diff --git a/ext/standard/tests/strings/strip_tags_error.phpt b/ext/standard/tests/strings/strip_tags_error.phpt index 4fd8044031..c45cbb115a 100644 --- a/ext/standard/tests/strings/strip_tags_error.phpt +++ b/ext/standard/tests/strings/strip_tags_error.phpt @@ -38,16 +38,3 @@ NULL Warning: strip_tags() expects at most 2 parameters, 3 given in %s on line %d NULL Done ---UEXPECTF-- -*** Testing strip_tags() : error conditions *** - --- Testing strip_tags() function with Zero arguments -- - -Warning: strip_tags() expects at least 1 parameter, 0 given in %s on line %d -NULL - --- Testing strip_tags() function with more than expected no. of arguments -- - -Warning: strip_tags() expects at most 2 parameters, 3 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/strip_tags_variation1.phpt b/ext/standard/tests/strings/strip_tags_variation1.phpt index e997051fc7..46a11c788e 100644 --- a/ext/standard/tests/strings/strip_tags_variation1.phpt +++ b/ext/standard/tests/strings/strip_tags_variation1.phpt @@ -93,73 +93,6 @@ echo "Done"; --EXPECTF-- *** Testing strip_tags() : usage variations *** -- Iteration 1 -- -string(1) "0" --- Iteration 2 -- -string(1) "1" --- Iteration 3 -- -string(5) "12345" --- Iteration 4 -- -string(5) "-2345" --- Iteration 5 -- -string(4) "10.5" --- Iteration 6 -- -string(5) "-10.5" --- Iteration 7 -- -string(12) "105000000000" --- Iteration 8 -- -string(7) "1.06E-9" --- Iteration 9 -- -string(3) "0.5" --- Iteration 10 -- - -Warning: strip_tags() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 11 -- - -Warning: strip_tags() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 12 -- - -Warning: strip_tags() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 13 -- - -Warning: strip_tags() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 14 -- - -Warning: strip_tags() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 15 -- -string(0) "" --- Iteration 16 -- -string(0) "" --- Iteration 17 -- -string(1) "1" --- Iteration 18 -- -string(0) "" --- Iteration 19 -- -string(1) "1" --- Iteration 20 -- -string(0) "" --- Iteration 21 -- -string(0) "" --- Iteration 22 -- -string(0) "" --- Iteration 23 -- -string(14) "Class A object" --- Iteration 24 -- -string(0) "" --- Iteration 25 -- -string(0) "" --- Iteration 26 -- - -Warning: strip_tags() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL -Done ---UEXPECTF-- -*** Testing strip_tags() : usage variations *** --- Iteration 1 -- unicode(1) "0" -- Iteration 2 -- unicode(1) "1" diff --git a/ext/standard/tests/strings/strip_tags_variation10.phpt b/ext/standard/tests/strings/strip_tags_variation10.phpt index ae06ecd4d6..8a94b0b8e3 100644 --- a/ext/standard/tests/strings/strip_tags_variation10.phpt +++ b/ext/standard/tests/strings/strip_tags_variation10.phpt @@ -38,22 +38,7 @@ foreach($single_quote_string as $string_value) echo "Done"; ?> ---EXPECTF-- -*** Testing strip_tags() : usage variations *** --- Iteration 1 -- -string(51) "<html> \$ -> This represents the dollar sign</html>" --- Iteration 2 -- -string(63) "<html>\t\r\v The quick brown fo\fx jumped over the lazy dog</p>" --- Iteration 3 -- -string(31) "<a>This is a hyper text tag</a>" --- Iteration 4 -- -string(0) "" --- Iteration 5 -- -string(26) "<p>This is a paragraph</p>" --- Iteration 6 -- -string(65) "<b>This is \ta text in bold letters\r\s\malong with slashes\n</b>" -Done ---UEXPECTF-- +--EXPECT-- *** Testing strip_tags() : usage variations *** -- Iteration 1 -- unicode(51) "<html> \$ -> This represents the dollar sign</html>" diff --git a/ext/standard/tests/strings/strip_tags_variation2.phpt b/ext/standard/tests/strings/strip_tags_variation2.phpt index 40f8bac884..eb64a300bf 100644 --- a/ext/standard/tests/strings/strip_tags_variation2.phpt +++ b/ext/standard/tests/strings/strip_tags_variation2.phpt @@ -95,73 +95,6 @@ echo "Done"; --EXPECTF-- *** Testing strip_tags() : usage variations *** -- Iteration 1 -- -string(10) "helloworld" --- Iteration 2 -- -string(10) "helloworld" --- Iteration 3 -- -string(10) "helloworld" --- Iteration 4 -- -string(10) "helloworld" --- Iteration 5 -- -string(10) "helloworld" --- Iteration 6 -- -string(10) "helloworld" --- Iteration 7 -- -string(10) "helloworld" --- Iteration 8 -- -string(10) "helloworld" --- Iteration 9 -- -string(10) "helloworld" --- Iteration 10 -- - -Warning: strip_tags() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 11 -- - -Warning: strip_tags() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 12 -- - -Warning: strip_tags() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 13 -- - -Warning: strip_tags() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 14 -- - -Warning: strip_tags() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 15 -- -string(10) "helloworld" --- Iteration 16 -- -string(10) "helloworld" --- Iteration 17 -- -string(10) "helloworld" --- Iteration 18 -- -string(10) "helloworld" --- Iteration 19 -- -string(10) "helloworld" --- Iteration 20 -- -string(10) "helloworld" --- Iteration 21 -- -string(10) "helloworld" --- Iteration 22 -- -string(10) "helloworld" --- Iteration 23 -- -string(10) "helloworld" --- Iteration 24 -- -string(10) "helloworld" --- Iteration 25 -- -string(10) "helloworld" --- Iteration 26 -- - -Warning: strip_tags() expects parameter 2 to be string (Unicode or binary), resource given in %s on line %d -NULL -Done ---UEXPECTF-- -*** Testing strip_tags() : usage variations *** --- Iteration 1 -- unicode(10) "helloworld" -- Iteration 2 -- unicode(10) "helloworld" diff --git a/ext/standard/tests/strings/strip_tags_variation3.phpt b/ext/standard/tests/strings/strip_tags_variation3.phpt index 9e49276424..9e1a0e5b75 100644 --- a/ext/standard/tests/strings/strip_tags_variation3.phpt +++ b/ext/standard/tests/strings/strip_tags_variation3.phpt @@ -93,73 +93,6 @@ echo "Done"; --EXPECTF-- *** Testing strip_tags() : usage variations *** -- Iteration 1 -- -string(1) "0" --- Iteration 2 -- -string(1) "1" --- Iteration 3 -- -string(5) "12345" --- Iteration 4 -- -string(5) "-2345" --- Iteration 5 -- -string(4) "10.5" --- Iteration 6 -- -string(5) "-10.5" --- Iteration 7 -- -string(12) "105000000000" --- Iteration 8 -- -string(7) "1.06E-9" --- Iteration 9 -- -string(3) "0.5" --- Iteration 10 -- - -Warning: strip_tags() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 11 -- - -Warning: strip_tags() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 12 -- - -Warning: strip_tags() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 13 -- - -Warning: strip_tags() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 14 -- - -Warning: strip_tags() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 15 -- -string(0) "" --- Iteration 16 -- -string(0) "" --- Iteration 17 -- -string(1) "1" --- Iteration 18 -- -string(0) "" --- Iteration 19 -- -string(1) "1" --- Iteration 20 -- -string(0) "" --- Iteration 21 -- -string(0) "" --- Iteration 22 -- -string(0) "" --- Iteration 23 -- -string(14) "Class A object" --- Iteration 24 -- -string(0) "" --- Iteration 25 -- -string(0) "" --- Iteration 26 -- - -Warning: strip_tags() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL -Done ---UEXPECTF-- -*** Testing strip_tags() : usage variations *** --- Iteration 1 -- unicode(1) "0" -- Iteration 2 -- unicode(1) "1" diff --git a/ext/standard/tests/strings/strip_tags_variation4.phpt b/ext/standard/tests/strings/strip_tags_variation4.phpt index d3fce45d39..a77d231dc1 100644 --- a/ext/standard/tests/strings/strip_tags_variation4.phpt +++ b/ext/standard/tests/strings/strip_tags_variation4.phpt @@ -45,34 +45,7 @@ foreach($strings as $string_value) echo "Done"; ?> ---EXPECTF-- -*** Testing strip_tags() : usage variations *** --- Iteration 1 -- -string(32) "hello world... strip_tags_test" --- Iteration 2 -- -string(34) "hello \t\tworld... strip_tags_test" --- Iteration 3 -- -string(0) "" --- Iteration 4 -- -string(0) "" --- Iteration 5 -- -string(18) "<htmL>hello</htmL>" --- Iteration 6 -- -string(18) "<htmL>hello</htmL>" --- Iteration 7 -- -string(9) "HtMl text" --- Iteration 8 -- -string(9) "HtMl text" --- Iteration 9 -- -string(26) "I am not a valid html text" --- Iteration 10 -- -string(26) "I am not a valid html text" --- Iteration 11 -- -string(62) "I am a quoted (") string with special chars like $,\!,\@,\%,\&" --- Iteration 12 -- -string(64) "I am a quoted (\") string with special chars like \$,\!,\@,\%,\&" -Done ---UEXPECTF-- +--EXPECT-- *** Testing strip_tags() : usage variations *** -- Iteration 1 -- unicode(32) "hello world... strip_tags_test" diff --git a/ext/standard/tests/strings/strip_tags_variation5.phpt b/ext/standard/tests/strings/strip_tags_variation5.phpt index 5018f84fee..52c19a78bd 100644 --- a/ext/standard/tests/strings/strip_tags_variation5.phpt +++ b/ext/standard/tests/strings/strip_tags_variation5.phpt @@ -77,33 +77,7 @@ for($index =0; $index < count($res_heredoc_strings); $index ++) { echo "Done\n"; ?> ---EXPECTF-- -*** Testing strip_tags() : usage variations *** --- Iteration 1 -- -string(0) "" --- Iteration 2 -- -string(0) "" --- Iteration 3 -- -string(67) "<html>hello world</html> -13 < 25 - -This is a double quoted string" --- Iteration 4 -- -string(44) "<html>hello - world -1111 != 2222</html> -" --- Iteration 5 -- -string(56) "<html>11 < 12. 123 >22</html> -string 1111 0000 = 0000 -" --- Iteration 6 -- -string(150) "<html>This's a string with quotes:</html> -"strings in double quote"; -'strings in single quote'; -<html>this\line is single quoted /with\slashes </html>" -Done ---UEXPECTF-- +--EXPECT-- *** Testing strip_tags() : usage variations *** -- Iteration 1 -- unicode(0) "" diff --git a/ext/standard/tests/strings/strip_tags_variation6.phpt b/ext/standard/tests/strings/strip_tags_variation6.phpt index 6db6408767..d6243d18fd 100644 --- a/ext/standard/tests/strings/strip_tags_variation6.phpt +++ b/ext/standard/tests/strings/strip_tags_variation6.phpt @@ -34,18 +34,7 @@ foreach($strings as $value) echo "Done"; ?> ---EXPECTF-- -*** Testing strip_tags() : usage variations *** --- Iteration 1 -- -string(18) " I am html string " --- Iteration 2 -- -string(18) " I am html string " --- Iteration 3 -- -string(16) "I am html string" --- Iteration 4 -- -string(23) "I am html string1000001" -Done ---UEXPECTF-- +--EXPECT-- *** Testing strip_tags() : usage variations *** -- Iteration 1 -- unicode(18) " I am html string " diff --git a/ext/standard/tests/strings/strip_tags_variation7.phpt b/ext/standard/tests/strings/strip_tags_variation7.phpt index a34536132d..a0c2a2400f 100644 --- a/ext/standard/tests/strings/strip_tags_variation7.phpt +++ b/ext/standard/tests/strings/strip_tags_variation7.phpt @@ -43,34 +43,7 @@ foreach($strings as $string_value) echo "Done"; ?> ---EXPECTF-- -*** Testing strip_tags() : usage variations *** --- Iteration 1 -- -string(43) "<abc>hello</abc> world... strip_tags_test" --- Iteration 2 -- -string(45) "<abc>hello</abc> \t\tworld... strip_tags_test" --- Iteration 3 -- -string(0) "" --- Iteration 4 -- -string(0) "" --- Iteration 5 -- -string(18) "<htmL>hello</htmL>" --- Iteration 6 -- -string(18) "<htmL>hello</htmL>" --- Iteration 7 -- -string(9) "HtMl text" --- Iteration 8 -- -string(9) "HtMl text" --- Iteration 9 -- -string(37) "<nnn>I am not a valid html text</nnn>" --- Iteration 10 -- -string(37) "<nnn>I am not a valid html text</nnn>" --- Iteration 11 -- -string(73) "<nnn>I am a quoted (") string with special chars like $,\!,\@,\%,\&</nnn>" --- Iteration 12 -- -string(75) "<nnn>I am a quoted (\") string with special chars like \$,\!,\@,\%,\&</nnn>" -Done ---UEXPECTF-- +--EXPECT-- *** Testing strip_tags() : usage variations *** -- Iteration 1 -- unicode(43) "<abc>hello</abc> world... strip_tags_test" diff --git a/ext/standard/tests/strings/strip_tags_variation8.phpt b/ext/standard/tests/strings/strip_tags_variation8.phpt index 29c0ed0020..494fb8ef58 100644 --- a/ext/standard/tests/strings/strip_tags_variation8.phpt +++ b/ext/standard/tests/strings/strip_tags_variation8.phpt @@ -38,26 +38,7 @@ foreach($quotes as $string_value) } echo "Done"; ---EXPECTF-- -*** Testing strip_tags() : usage variations *** --- Iteration 1 -- -string(33) "hello world... strip_tags_test" --- Iteration 2 -- -string(33) "hello world... strip_tags_test" --- Iteration 3 -- -string(33) "hello world... strip_tags_test" --- Iteration 4 -- -string(33) "hello world... strip_tags_test" --- Iteration 5 -- -string(33) "hello world... strip_tags_test" --- Iteration 6 -- -string(33) "hello world... strip_tags_test" --- Iteration 7 -- -string(46) "<html>hello</html> world... strip_tags_test" --- Iteration 8 -- -string(46) "<html>hello</html> world... strip_tags_test" -Done ---UEXPECTF-- +--EXPECT-- *** Testing strip_tags() : usage variations *** -- Iteration 1 -- unicode(33) "hello world... strip_tags_test" diff --git a/ext/standard/tests/strings/strip_tags_variation9.phpt b/ext/standard/tests/strings/strip_tags_variation9.phpt index d70ea893cf..2f6b41d893 100644 --- a/ext/standard/tests/strings/strip_tags_variation9.phpt +++ b/ext/standard/tests/strings/strip_tags_variation9.phpt @@ -36,25 +36,7 @@ foreach($double_quote_string as $string_value) } echo "Done"; ---EXPECTF-- -*** Testing strip_tags() : usage variations *** --- Iteration 1 -- -string(50) "<html> $ -> This represents the dollar sign</html>" --- Iteration 2 -- -string(59) "<html> - The quick brown fox jumped over the lazy dog</p>" --- Iteration 3 -- -string(31) "<a>This is a hyper text tag</a>" --- Iteration 4 -- -string(0) "" --- Iteration 5 -- -string(26) "<p>This is a paragraph</p>" --- Iteration 6 -- -string(62) "<b>This is a text in bold letters -\s\malong with slashes -</b>" -Done ---UEXPECTF-- +--EXPECT-- *** Testing strip_tags() : usage variations *** -- Iteration 1 -- unicode(50) "<html> $ -> This represents the dollar sign</html>" diff --git a/ext/standard/tests/strings/stripos_basic1.phpt b/ext/standard/tests/strings/stripos_basic1.phpt index 37b737edda..a4a8b7c8f5 100644 --- a/ext/standard/tests/strings/stripos_basic1.phpt +++ b/ext/standard/tests/strings/stripos_basic1.phpt @@ -36,23 +36,7 @@ var_dump( stripos('Hello, World', (unicode)"hello") ); var_dump( stripos("Hello, World", "ooo") ); echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing stripos() function: basic functionality *** --- With default arguments -- -int(0) -int(0) -int(7) -int(7) -int(4) -int(5) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing stripos() function: basic functionality *** -- With default arguments -- int(0) diff --git a/ext/standard/tests/strings/stripos_basic2.phpt b/ext/standard/tests/strings/stripos_basic2.phpt index 1115171b34..1484e2706b 100644 --- a/ext/standard/tests/strings/stripos_basic2.phpt +++ b/ext/standard/tests/strings/stripos_basic2.phpt @@ -33,24 +33,7 @@ var_dump( stripos("Hello, World", "o", 6) ); var_dump( stripos("Hello, World", "o", 10) ); echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing stripos() function: basic functionality *** --- With all arguments -- -int(0) -bool(false) -int(7) -int(7) -int(0) -int(0) -bool(false) -int(0) -bool(false) -int(4) -int(8) -int(8) -bool(false) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing stripos() function: basic functionality *** -- With all arguments -- int(0) diff --git a/ext/standard/tests/strings/stripos_error.phpt b/ext/standard/tests/strings/stripos_error.phpt index 71d93ef5a8..ef6ad9e6ec 100644 --- a/ext/standard/tests/strings/stripos_error.phpt +++ b/ext/standard/tests/strings/stripos_error.phpt @@ -33,18 +33,3 @@ NULL Warning: stripos() expects at most 3 parameters, 4 given in %s on line %d NULL *** Done *** ---UEXPECTF-- -*** Testing stripos() function: error conditions *** - --- With Zero arguments -- -Warning: stripos() expects at least 2 parameters, 0 given in %s on line %d -NULL - --- With less than expected number of arguments -- -Warning: stripos() expects at least 2 parameters, 1 given in %s on line %d -NULL - --- With more than expected number of arguments -- -Warning: stripos() expects at most 3 parameters, 4 given in %s on line %d -NULL -*** Done *** diff --git a/ext/standard/tests/strings/stripos_variation1.phpt b/ext/standard/tests/strings/stripos_variation1.phpt index 374c3a0e01..d96bcbed94 100644 --- a/ext/standard/tests/strings/stripos_variation1.phpt +++ b/ext/standard/tests/strings/stripos_variation1.phpt @@ -78,133 +78,7 @@ for($index=0; $index<count($needle); $index++) { } echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing stripos() function: with double quoted strings *** --- Iteration 1 -- -int(2) -int(2) --- Iteration 2 -- -int(2) -int(2) --- Iteration 3 -- -int(0) -int(34) --- Iteration 4 -- -int(0) -int(34) --- Iteration 5 -- -int(6) -int(6) --- Iteration 6 -- -bool(false) -bool(false) --- Iteration 7 -- -bool(false) -bool(false) --- Iteration 8 -- -int(7) -int(7) --- Iteration 9 -- -bool(false) -bool(false) --- Iteration 10 -- -int(7) -int(9) --- Iteration 11 -- -int(8) -bool(false) --- Iteration 12 -- -int(8) -bool(false) --- Iteration 13 -- -int(8) -bool(false) --- Iteration 14 -- -int(8) -bool(false) --- Iteration 15 -- -int(8) -bool(false) --- Iteration 16 -- -bool(false) -bool(false) --- Iteration 17 -- -int(10) -int(47) --- Iteration 18 -- -int(12) -bool(false) --- Iteration 19 -- -int(11) -bool(false) --- Iteration 20 -- -int(13) -bool(false) --- Iteration 21 -- -int(14) -bool(false) --- Iteration 22 -- -int(16) -bool(false) --- Iteration 23 -- -int(17) -bool(false) --- Iteration 24 -- -int(20) -bool(false) --- Iteration 25 -- -int(22) -bool(false) --- Iteration 26 -- -int(23) -bool(false) --- Iteration 27 -- -int(25) -bool(false) --- Iteration 28 -- -bool(false) -bool(false) --- Iteration 29 -- -int(27) -bool(false) --- Iteration 30 -- -int(28) -bool(false) --- Iteration 31 -- -int(29) -bool(false) --- Iteration 32 -- -int(31) -int(31) --- Iteration 33 -- -int(30) -bool(false) --- Iteration 34 -- -int(33) -int(33) --- Iteration 35 -- -int(39) -int(39) --- Iteration 36 -- -int(15) -int(48) --- Iteration 37 -- -int(15) -int(48) --- Iteration 38 -- -int(51) -int(51) --- Iteration 39 -- -int(51) -int(51) --- Iteration 40 -- -bool(false) -bool(false) --- Iteration 41 -- -int(0) -bool(false) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing stripos() function: with double quoted strings *** -- Iteration 1 -- int(2) diff --git a/ext/standard/tests/strings/stripos_variation10.phpt b/ext/standard/tests/strings/stripos_variation10.phpt index c8acf19e33..ea29521100 100644 --- a/ext/standard/tests/strings/stripos_variation10.phpt +++ b/ext/standard/tests/strings/stripos_variation10.phpt @@ -103,89 +103,6 @@ bool(false) bool(false) -- Iteration 4 -- -bool(false) - --- Iteration 5 -- -bool(false) - --- Iteration 6 -- -bool(false) - --- Iteration 7 -- -bool(false) - --- Iteration 8 -- -bool(false) - --- Iteration 9 -- -bool(false) - --- Iteration 10 -- -bool(false) - --- Iteration 11 -- -bool(false) - --- Iteration 12 -- -bool(false) - --- Iteration 13 -- -bool(false) - --- Iteration 14 -- -bool(false) - --- Iteration 15 -- -bool(false) - --- Iteration 16 -- -bool(false) - --- Iteration 17 -- -bool(false) - --- Iteration 18 -- -bool(false) - --- Iteration 19 -- - -Notice: Object of class sample could not be converted to int in %s on line %d -bool(false) - --- Iteration 20 -- -bool(false) - --- Iteration 21 -- -bool(false) - --- Iteration 22 -- -bool(false) - --- Iteration 23 -- -bool(false) - --- Iteration 24 -- -%s - --- Iteration 25 -- -bool(false) - --- Iteration 26 -- -bool(false) -*** Done *** ---UEXPECTF-- -*** Testing stripos() function with unexpected values for needle *** - --- Iteration 1 -- -bool(false) - --- Iteration 2 -- -bool(false) - --- Iteration 3 -- -bool(false) - --- Iteration 4 -- Warning: Needle argument codepoint value out of range (0 - 0x10FFFF) in %s on line %d bool(false) diff --git a/ext/standard/tests/strings/stripos_variation11.phpt b/ext/standard/tests/strings/stripos_variation11.phpt index 3bc862fa5e..92aaeb37a9 100644 --- a/ext/standard/tests/strings/stripos_variation11.phpt +++ b/ext/standard/tests/strings/stripos_variation11.phpt @@ -92,127 +92,6 @@ echo "*** Done ***"; *** Testing stripos() function with unexpected values for haystack and needle *** -- Iteration 1 -- bool(false) -bool(false) --- Iteration 2 -- -bool(false) -bool(false) --- Iteration 3 -- -bool(false) -bool(false) --- Iteration 4 -- -bool(false) -bool(false) --- Iteration 5 -- -bool(false) -bool(false) --- Iteration 6 -- -bool(false) -bool(false) --- Iteration 7 -- -bool(false) -bool(false) --- Iteration 8 -- -bool(false) -bool(false) --- Iteration 9 -- -bool(false) -bool(false) --- Iteration 10 -- - -Notice: Array to string conversion in %s on line %d -bool(false) - -Notice: Array to string conversion in %s on line %d -bool(false) --- Iteration 11 -- - -Notice: Array to string conversion in %s on line %d -bool(false) - -Notice: Array to string conversion in %s on line %d -bool(false) --- Iteration 12 -- - -Notice: Array to string conversion in %s on line %d -bool(false) - -Notice: Array to string conversion in %s on line %d -bool(false) --- Iteration 13 -- - -Notice: Array to string conversion in %s on line %d -bool(false) - -Notice: Array to string conversion in %s on line %d -bool(false) --- Iteration 14 -- - -Notice: Array to string conversion in %s on line %d -bool(false) - -Notice: Array to string conversion in %s on line %d -bool(false) --- Iteration 15 -- -bool(false) -bool(false) --- Iteration 16 -- -bool(false) - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) --- Iteration 17 -- -bool(false) -bool(false) --- Iteration 18 -- -bool(false) - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) --- Iteration 19 -- - -Notice: Object of class sample could not be converted to int in %s on line %d -bool(false) - -Notice: Object of class sample could not be converted to int in %s on line %d -bool(false) --- Iteration 20 -- -bool(false) - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) --- Iteration 21 -- -bool(false) - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) --- Iteration 22 -- -bool(false) - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) --- Iteration 23 -- -bool(false) - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) --- Iteration 24 -- -bool(false) -bool(false) --- Iteration 25 -- -bool(false) - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) --- Iteration 26 -- -bool(false) - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) -*** Done *** ---UEXPECTF-- -*** Testing stripos() function with unexpected values for haystack and needle *** --- Iteration 1 -- -bool(false) int(1) -- Iteration 2 -- bool(false) diff --git a/ext/standard/tests/strings/stripos_variation12.phpt b/ext/standard/tests/strings/stripos_variation12.phpt index 4a62f09960..c29e3533a5 100644 --- a/ext/standard/tests/strings/stripos_variation12.phpt +++ b/ext/standard/tests/strings/stripos_variation12.phpt @@ -26,24 +26,7 @@ for($index = 0; $index < count($haystacks); $index++ ) { } echo "*** Done ***"; ?> ---EXPECTF-- -*** Test stripos() function: binary safe *** -int(5) -int(5) -int(0) -bool(false) -int(11) -int(11) -int(0) -bool(false) -int(5) -int(5) -int(0) -bool(false) -int(5) -bool(false) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Test stripos() function: binary safe *** int(5) int(5) diff --git a/ext/standard/tests/strings/stripos_variation13.phpt b/ext/standard/tests/strings/stripos_variation13.phpt index a9e7b64b73..2e58e6b8f0 100644 --- a/ext/standard/tests/strings/stripos_variation13.phpt +++ b/ext/standard/tests/strings/stripos_variation13.phpt @@ -27,22 +27,7 @@ for($index = 0; $index < count($needles); $index++ ) { } echo "*** Done ***"; ?> ---EXPECTF-- -*** Test stripos() function: binary safe *** -int(1) -int(1) -bool(false) -bool(false) -bool(false) -bool(false) -int(1) -bool(false) -int(0) -bool(false) -int(1) -bool(false) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Test stripos() function: binary safe *** int(1) int(1) diff --git a/ext/standard/tests/strings/stripos_variation14.phpt b/ext/standard/tests/strings/stripos_variation14.phpt index 6ed60a56f3..cf568a451f 100644 --- a/ext/standard/tests/strings/stripos_variation14.phpt +++ b/ext/standard/tests/strings/stripos_variation14.phpt @@ -134,75 +134,6 @@ Warning: stripos() expects parameter 3 to be long, object given in %s on line %d NULL -- Iteration 16 -- -Warning: stripos() expects parameter 3 to be long, string given in %s on line %d -NULL --- Iteration 17 -- - -Warning: stripos() expects parameter 3 to be long, string given in %s on line %d -NULL --- Iteration 18 -- -int(6) --- Iteration 19 -- -int(6) --- Iteration 20 -- - -Warning: stripos() expects parameter 3 to be long, resource given in %s on line %d -NULL --- Iteration 21 -- -int(6) --- Iteration 22 -- -int(6) -*** Done *** ---UEXPECTF-- -*** Testing stripos() function with unexpected values for haystack and needle *** --- Iteration 1 -- -int(6) --- Iteration 2 -- - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) --- Iteration 3 -- - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) --- Iteration 4 -- -int(6) --- Iteration 5 -- -int(6) --- Iteration 6 -- - -Warning: stripos() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 7 -- - -Warning: stripos() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 8 -- - -Warning: stripos() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 9 -- - -Warning: stripos() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 10 -- - -Warning: stripos() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 11 -- -int(6) --- Iteration 12 -- -int(6) --- Iteration 13 -- -int(6) --- Iteration 14 -- -int(6) --- Iteration 15 -- - -Warning: stripos() expects parameter 3 to be long, object given in %s on line %d -NULL --- Iteration 16 -- - Warning: stripos() expects parameter 3 to be long, Unicode string given in %s on line %d NULL -- Iteration 17 -- diff --git a/ext/standard/tests/strings/stripos_variation15.phpt b/ext/standard/tests/strings/stripos_variation15.phpt index 3f443899bd..16360f5c6d 100644 --- a/ext/standard/tests/strings/stripos_variation15.phpt +++ b/ext/standard/tests/strings/stripos_variation15.phpt @@ -150,89 +150,6 @@ Warning: stripos() expects parameter 3 to be long, object given in %s on line %d NULL -- Iteration 20 -- -Warning: stripos() expects parameter 3 to be long, string given in %s on line %d -NULL --- Iteration 21 -- - -Warning: stripos() expects parameter 3 to be long, string given in %s on line %d -NULL --- Iteration 22 -- -bool(false) --- Iteration 23 -- -bool(false) --- Iteration 24 -- - -Warning: stripos() expects parameter 3 to be long, resource given in %s on line %d -NULL --- Iteration 25 -- -bool(false) --- Iteration 26 -- -bool(false) -*** Done *** ---UEXPECTF-- -*** Testing stripos() function with unexpected values for haystack, needle & offset *** --- Iteration 1 -- -bool(false) --- Iteration 2 -- -bool(false) --- Iteration 3 -- - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) --- Iteration 4 -- - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) --- Iteration 5 -- - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) --- Iteration 6 -- - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) --- Iteration 7 -- - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) --- Iteration 8 -- -bool(false) --- Iteration 9 -- -bool(false) --- Iteration 10 -- - -Warning: stripos() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 11 -- - -Warning: stripos() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 12 -- - -Warning: stripos() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 13 -- - -Warning: stripos() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 14 -- - -Warning: stripos() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 15 -- -bool(false) --- Iteration 16 -- -bool(false) --- Iteration 17 -- -bool(false) --- Iteration 18 -- -bool(false) --- Iteration 19 -- - -Warning: stripos() expects parameter 3 to be long, object given in %s on line %d -NULL --- Iteration 20 -- - Warning: stripos() expects parameter 3 to be long, Unicode string given in %s on line %d NULL -- Iteration 21 -- diff --git a/ext/standard/tests/strings/stripos_variation2.phpt b/ext/standard/tests/strings/stripos_variation2.phpt index 48ce5e968e..85717161a5 100644 --- a/ext/standard/tests/strings/stripos_variation2.phpt +++ b/ext/standard/tests/strings/stripos_variation2.phpt @@ -82,145 +82,7 @@ for($index=0; $index<count($needle); $index++) { } echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing stripos() function: with single quoted strings *** --- Iteration 1 -- -int(2) -int(2) --- Iteration 2 -- -int(2) -int(2) --- Iteration 3 -- -int(0) -int(38) --- Iteration 4 -- -int(0) -int(38) --- Iteration 5 -- -int(6) -int(6) --- Iteration 6 -- -int(6) -int(6) --- Iteration 7 -- -bool(false) -bool(false) --- Iteration 8 -- -int(8) -int(8) --- Iteration 9 -- -int(8) -int(8) --- Iteration 10 -- -bool(false) -bool(false) --- Iteration 11 -- -int(10) -int(10) --- Iteration 12 -- -bool(false) -bool(false) --- Iteration 13 -- -bool(false) -bool(false) --- Iteration 14 -- -bool(false) -bool(false) --- Iteration 15 -- -bool(false) -bool(false) --- Iteration 16 -- -bool(false) -bool(false) --- Iteration 17 -- -int(14) -int(51) --- Iteration 18 -- -int(16) -bool(false) --- Iteration 19 -- -int(15) -bool(false) --- Iteration 20 -- -int(17) -bool(false) --- Iteration 21 -- -int(18) -bool(false) --- Iteration 22 -- -int(20) -bool(false) --- Iteration 23 -- -int(21) -bool(false) --- Iteration 24 -- -int(24) -int(24) --- Iteration 25 -- -int(26) -int(26) --- Iteration 26 -- -int(27) -int(27) --- Iteration 27 -- -int(28) -int(28) --- Iteration 28 -- -int(29) -int(29) --- Iteration 29 -- -bool(false) -bool(false) --- Iteration 30 -- -bool(false) -bool(false) --- Iteration 31 -- -int(31) -int(31) --- Iteration 32 -- -int(32) -int(32) --- Iteration 33 -- -int(33) -int(33) --- Iteration 34 -- -int(35) -int(35) --- Iteration 35 -- -int(34) -int(34) --- Iteration 36 -- -int(36) -int(36) --- Iteration 37 -- -int(37) -int(37) --- Iteration 38 -- -int(37) -int(37) --- Iteration 39 -- -int(43) -int(43) --- Iteration 40 -- -int(52) -int(52) --- Iteration 41 -- -int(19) -bool(false) --- Iteration 42 -- -int(58) -int(58) --- Iteration 43 -- -bool(false) -bool(false) --- Iteration 44 -- -int(26) -bool(false) --- Iteration 45 -- -int(0) -bool(false) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing stripos() function: with single quoted strings *** -- Iteration 1 -- int(2) diff --git a/ext/standard/tests/strings/stripos_variation3.phpt b/ext/standard/tests/strings/stripos_variation3.phpt index 012dbf4930..3310ecd26f 100644 --- a/ext/standard/tests/strings/stripos_variation3.phpt +++ b/ext/standard/tests/strings/stripos_variation3.phpt @@ -24,16 +24,7 @@ var_dump( stripos($multi_line_str, " ") ); echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing stripos() function: with heredoc strings *** --- With heredoc string containing multi lines -- -int(14) -int(23) -int(23) -bool(false) -int(7) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing stripos() function: with heredoc strings *** -- With heredoc string containing multi lines -- int(14) diff --git a/ext/standard/tests/strings/stripos_variation4.phpt b/ext/standard/tests/strings/stripos_variation4.phpt index ee611dccb3..babbc051bd 100644 --- a/ext/standard/tests/strings/stripos_variation4.phpt +++ b/ext/standard/tests/strings/stripos_variation4.phpt @@ -26,18 +26,7 @@ var_dump( stripos($special_chars_str, "(special)") ); echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing stripos() function: with heredoc strings *** --- With heredoc string containing special chars -- -int(0) -bool(false) -int(38) -int(39) -int(55) -int(55) -int(57) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing stripos() function: with heredoc strings *** -- With heredoc string containing special chars -- int(0) diff --git a/ext/standard/tests/strings/stripos_variation5.phpt b/ext/standard/tests/strings/stripos_variation5.phpt index 7d8f90b6f4..2b09e3734b 100644 --- a/ext/standard/tests/strings/stripos_variation5.phpt +++ b/ext/standard/tests/strings/stripos_variation5.phpt @@ -22,15 +22,7 @@ var_dump( stripos($control_char_str, "\t", 15) ); echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing stripos() function: with heredoc strings *** --- With heredoc string containing escape characters -- -int(12) -int(19) -int(12) -int(19) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing stripos() function: with heredoc strings *** -- With heredoc string containing escape characters -- int(12) diff --git a/ext/standard/tests/strings/stripos_variation6.phpt b/ext/standard/tests/strings/stripos_variation6.phpt index 7ed69cec2b..b30be173ee 100644 --- a/ext/standard/tests/strings/stripos_variation6.phpt +++ b/ext/standard/tests/strings/stripos_variation6.phpt @@ -23,15 +23,7 @@ var_dump( stripos($quote_char_str, 'things', 0) ); var_dump( stripos($quote_char_str, "things", 20) ); echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing stripos() function: with heredoc strings *** --- With heredoc string containing quote & slash chars -- -int(88) -int(34) -int(34) -int(34) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing stripos() function: with heredoc strings *** -- With heredoc string containing quote & slash chars -- int(88) diff --git a/ext/standard/tests/strings/stripos_variation7.phpt b/ext/standard/tests/strings/stripos_variation7.phpt index fb5f42706c..a1658d9d8c 100644 --- a/ext/standard/tests/strings/stripos_variation7.phpt +++ b/ext/standard/tests/strings/stripos_variation7.phpt @@ -30,13 +30,3 @@ bool(false) bool(false) bool(false) *** Done *** ---UEXPECTF-- -*** Testing stripos() function: with heredoc strings *** --- With empty heredoc string -- -bool(false) - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) -bool(false) -bool(false) -*** Done *** diff --git a/ext/standard/tests/strings/stripos_variation8.phpt b/ext/standard/tests/strings/stripos_variation8.phpt index 1266427246..acbb0c77fc 100644 --- a/ext/standard/tests/strings/stripos_variation8.phpt +++ b/ext/standard/tests/strings/stripos_variation8.phpt @@ -33,186 +33,7 @@ for($index = 0; $index < count($needles); $index++) { } echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing stripos() function: variations with offset *** - --- Iteration 1 -- -int(0) -int(2) -int(2) -int(4) -int(4) -int(6) -int(6) -int(8) -int(8) -int(10) -int(10) -int(12) -int(12) -int(14) -int(14) -int(16) -int(16) -bool(false) -bool(false) -bool(false) - --- Iteration 2 -- -int(0) -int(2) -int(2) -int(4) -int(4) -int(6) -int(6) -int(8) -int(8) -int(10) -int(10) -int(12) -int(12) -int(14) -int(14) -int(16) -int(16) -bool(false) -bool(false) -bool(false) - --- Iteration 3 -- -int(0) -int(2) -int(2) -int(4) -int(4) -int(6) -int(6) -int(8) -int(8) -int(10) -int(10) -int(12) -int(12) -int(14) -int(14) -int(16) -int(16) -bool(false) -bool(false) -bool(false) - --- Iteration 4 -- -int(0) -int(2) -int(2) -int(4) -int(4) -int(6) -int(6) -int(8) -int(8) -int(10) -int(10) -int(12) -int(12) -int(14) -int(14) -int(16) -int(16) -bool(false) -bool(false) -bool(false) - --- Iteration 5 -- -int(1) -int(1) -int(3) -int(3) -int(5) -int(5) -int(7) -int(7) -int(9) -int(9) -int(11) -int(11) -int(13) -int(13) -int(15) -int(15) -bool(false) -bool(false) -bool(false) -bool(false) - --- Iteration 6 -- -int(1) -int(1) -int(3) -int(3) -int(5) -int(5) -int(7) -int(7) -int(9) -int(9) -int(11) -int(11) -int(13) -int(13) -int(15) -int(15) -bool(false) -bool(false) -bool(false) -bool(false) - --- Iteration 7 -- -int(1) -int(1) -int(3) -int(3) -int(5) -int(5) -int(7) -int(7) -int(9) -int(9) -int(11) -int(11) -int(13) -int(13) -int(15) -int(15) -bool(false) -bool(false) -bool(false) -bool(false) - --- Iteration 8 -- -int(1) -int(1) -int(3) -int(3) -int(5) -int(5) -int(7) -int(7) -int(9) -int(9) -int(11) -int(11) -int(13) -int(13) -int(15) -int(15) -bool(false) -bool(false) -bool(false) -bool(false) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing stripos() function: variations with offset *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/stripslashes_basic.phpt b/ext/standard/tests/strings/stripslashes_basic.phpt Binary files differindex bfabd8cfef..1873ee3038 100644 --- a/ext/standard/tests/strings/stripslashes_basic.phpt +++ b/ext/standard/tests/strings/stripslashes_basic.phpt diff --git a/ext/standard/tests/strings/stripslashes_error.phpt b/ext/standard/tests/strings/stripslashes_error.phpt index 2ed74bc6a6..8905217ee8 100644 --- a/ext/standard/tests/strings/stripslashes_error.phpt +++ b/ext/standard/tests/strings/stripslashes_error.phpt @@ -39,20 +39,5 @@ NULL Warning: Wrong parameter count for stripslashes() in %s on line %d NULL -string(18) "\"hello\"\"world\"" -Done - ---UEXPECTF-- -*** Testing stripslashes() : error conditions *** - --- Testing stripslashes() function with Zero arguments -- - -Warning: Wrong parameter count for stripslashes() in %s on line %d -NULL - --- Testing stripslashes() function with more than expected no. of arguments -- - -Warning: Wrong parameter count for stripslashes() in %s on line %d -NULL unicode(18) "\"hello\"\"world\"" Done diff --git a/ext/standard/tests/strings/stripslashes_variation1.phpt b/ext/standard/tests/strings/stripslashes_variation1.phpt index 4e56dcde20..15ee4abf4c 100644 --- a/ext/standard/tests/strings/stripslashes_variation1.phpt +++ b/ext/standard/tests/strings/stripslashes_variation1.phpt @@ -106,78 +106,6 @@ Notice: Undefined variable: unset_var in %s on line %d --- Testing stripslashes() by supplying different values for 'str' argument --- -- Iteration 1 -- -string(1) "0" --- Iteration 2 -- -string(1) "1" --- Iteration 3 -- -string(5) "12345" --- Iteration 4 -- -string(5) "-2345" --- Iteration 5 -- -string(4) "10.5" --- Iteration 6 -- -string(5) "-10.5" --- Iteration 7 -- -string(12) "105000000000" --- Iteration 8 -- -string(7) "1.06E-9" --- Iteration 9 -- -string(3) "0.5" --- Iteration 10 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" --- Iteration 11 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" --- Iteration 12 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" --- Iteration 13 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" --- Iteration 14 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" --- Iteration 15 -- -string(1) "1" --- Iteration 16 -- -string(0) "" --- Iteration 17 -- -string(1) "1" --- Iteration 18 -- -string(0) "" --- Iteration 19 -- -string(0) "" --- Iteration 20 -- -string(0) "" --- Iteration 21 -- -string(0) "" --- Iteration 22 -- -string(0) "" --- Iteration 23 -- -string(6) "obj'ct" --- Iteration 24 -- -string(%d) "Resource id #%d" --- Iteration 25 -- -string(0) "" --- Iteration 26 -- -string(0) "" -Done - ---UEXPECTF-- -*** Testing stripslashes() : with non-string type argument *** - -Notice: Undefined variable: undefined_var in %s on line %d - -Notice: Undefined variable: unset_var in %s on line %d - ---- Testing stripslashes() by supplying different values for 'str' argument --- --- Iteration 1 -- unicode(1) "0" -- Iteration 2 -- unicode(1) "1" diff --git a/ext/standard/tests/strings/stripslashes_variation2.phpt b/ext/standard/tests/strings/stripslashes_variation2.phpt Binary files differindex 26527156bb..5a3c23cd9c 100644 --- a/ext/standard/tests/strings/stripslashes_variation2.phpt +++ b/ext/standard/tests/strings/stripslashes_variation2.phpt diff --git a/ext/standard/tests/strings/stripslashes_variation3.phpt b/ext/standard/tests/strings/stripslashes_variation3.phpt index ddc8184f02..fa1ed34a4b 100644 --- a/ext/standard/tests/strings/stripslashes_variation3.phpt +++ b/ext/standard/tests/strings/stripslashes_variation3.phpt @@ -59,71 +59,7 @@ foreach( $str_array as $str ) { echo "Done\n"; ?> ---EXPECTF-- -*** Testing stripslashes() : with strings containing newline and tab characters *** - --- Iteration 1 -- -string(1) " -" - --- Iteration 2 -- -string(1) "n" - --- Iteration 3 -- -string(12) "Hello -world" - --- Iteration 4 -- -string(12) "Hello nworld" - --- Iteration 5 -- -string(1) "n" - --- Iteration 6 -- -string(1) "n" - --- Iteration 7 -- -string(12) "Hello nworld" - --- Iteration 8 -- -string(12) "Hello nworld" - --- Iteration 9 -- -string(71) "This is line 1 -of 'heredoc' string -This is line 2 -of "heredoc" string" - --- Iteration 10 -- -string(1) " " - --- Iteration 11 -- -string(1) "t" - --- Iteration 12 -- -string(12) "Hello world" - --- Iteration 13 -- -string(12) "Hello tworld" - --- Iteration 14 -- -string(1) "t" - --- Iteration 15 -- -string(1) "t" - --- Iteration 16 -- -string(12) "Hello tworld" - --- Iteration 17 -- -string(12) "Hello tworld" - --- Iteration 18 -- -string(71) "This is line 1 of 'heredoc' string -This is line 2 of "heredoc" string" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing stripslashes() : with strings containing newline and tab characters *** -- Iteration 1 -- @@ -185,4 +121,4 @@ unicode(12) "Hello tworld" -- Iteration 18 -- unicode(71) "This is line 1 of 'heredoc' string This is line 2 of "heredoc" string" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/stripslashes_variation4.phpt b/ext/standard/tests/strings/stripslashes_variation4.phpt index 8469f2b942..fa67dbb21e 100644 --- a/ext/standard/tests/strings/stripslashes_variation4.phpt +++ b/ext/standard/tests/strings/stripslashes_variation4.phpt @@ -38,101 +38,7 @@ foreach( $str_array as $arr ) { echo "Done\n"; ?> ---EXPECTF-- -*** Testing stripslashes() : with double dimensional arrays *** - --- Iteration 1 -- -array(2) { - [0]=> - string(0) "" - [1]=> - array(0) { - } -} - --- Iteration 2 -- -array(2) { - [0]=> - string(0) "" - [1]=> - array(1) { - [0]=> - string(0) "" - } -} - --- Iteration 3 -- -array(3) { - [0]=> - string(4) "f'oo" - [1]=> - string(4) "b'ar" - [2]=> - array(2) { - [0]=> - string(4) "fo'o" - [1]=> - string(4) "b'ar" - } -} - --- Iteration 4 -- -array(3) { - [0]=> - string(4) "f'oo" - [1]=> - string(4) "b'ar" - [2]=> - array(1) { - [0]=> - string(0) "" - } -} - --- Iteration 5 -- -array(3) { - [0]=> - string(4) "f'oo" - [1]=> - string(4) "b'ar" - [2]=> - array(3) { - [0]=> - string(4) "fo'o" - [1]=> - string(4) "b'ar" - [2]=> - array(1) { - [0]=> - string(0) "" - } - } -} - --- Iteration 6 -- -array(3) { - [0]=> - string(4) "f'oo" - [1]=> - string(4) "b'ar" - [2]=> - array(3) { - [0]=> - string(4) "fo'o" - [1]=> - string(4) "b'ar" - [2]=> - array(2) { - [0]=> - string(4) "fo'o" - [1]=> - string(4) "b'ar" - } - } -} -Done - ---UEXPECTF-- +--EXPECT-- *** Testing stripslashes() : with double dimensional arrays *** -- Iteration 1 -- @@ -224,4 +130,4 @@ array(3) { } } } -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/stristr.phpt b/ext/standard/tests/strings/stristr.phpt index 6e7f78d332..f336d3598f 100644 --- a/ext/standard/tests/strings/stristr.phpt +++ b/ext/standard/tests/strings/stristr.phpt @@ -32,30 +32,6 @@ bool(false) Notice: Array to string conversion in %s on line %d bool(false) -string(11) "tEsT sTrInG" -string(6) "sTrInG" -string(6) "sTrInG" -string(8) "T sTrInG" -string(1) "G" -string(32) "7272696018bdeb2c9a3f8d01fc2a9273" -bool(false) -bool(false) -bool(false) -string(32) "6ec19f52f0766c463f3bb240f4396913" -string(7) " sTrInG" -string(4) "tEsT" ---UEXPECTF-- -Warning: stristr() expects at least 2 parameters, 0 given in %s on line %d -NULL - -Notice: Array to string conversion in %s on line %d - -Warning: stristr(): Empty delimiter in %s on line %d -bool(false) -bool(false) - -Notice: Array to string conversion in %s on line %d -bool(false) unicode(11) "tEsT sTrInG" unicode(6) "sTrInG" unicode(6) "sTrInG" diff --git a/ext/standard/tests/strings/strncasecmp_basic.phpt b/ext/standard/tests/strings/strncasecmp_basic.phpt index 4a2b21caa4..34a1b08dc4 100644 --- a/ext/standard/tests/strings/strncasecmp_basic.phpt +++ b/ext/standard/tests/strings/strncasecmp_basic.phpt @@ -44,18 +44,3 @@ int\(0\) int\(-[1-9][0-9]*\) int\([1-9][0-9]*\) \*\*\* Done \*\*\* ---UEXPECTREGEX-- -\*\*\* Testing strncasecmp\(\) function: basic functionality \*\*\* --- Testing strncasecmp\(\) with single quoted string -- -int\(0\) -int\(-[1-9][0-9]*\) -int\([1-9][0-9]*\) --- Testing strncasecmp\(\) with double quoted string -- -int\(0\) -int\(-[1-9][0-9]*\) -int\([1-9][0-9]*\) --- Testing strncasecmp\(\) with here-doc string -- -int\(0\) -int\(-[1-9][0-9]*\) -int\([1-9][0-9]*\) -\*\*\* Done \*\*\* diff --git a/ext/standard/tests/strings/strncasecmp_error.phpt b/ext/standard/tests/strings/strncasecmp_error.phpt index 4d837d978e..7b2d19e616 100644 --- a/ext/standard/tests/strings/strncasecmp_error.phpt +++ b/ext/standard/tests/strings/strncasecmp_error.phpt @@ -50,25 +50,3 @@ NULL Warning: Length must be greater than or equal to 0 in %s on line %d bool(false) *** Done *** ---UEXPECTF-- -*** Testing strncasecmp() function: error conditions *** - --- Testing strncasecmp() function with Zero arguments -- -Warning: strncasecmp() expects exactly 3 parameters, 0 given in %s on line %d -NULL - --- Testing strncasecmp() function with less than expected number of arguments -- -Warning: strncasecmp() expects exactly 3 parameters, 1 given in %s on line %d -NULL - -Warning: strncasecmp() expects exactly 3 parameters, 2 given in %s on line %d -NULL - --- Testing strncasecmp() function with more than expected number of arguments -- -Warning: strncasecmp() expects exactly 3 parameters, 4 given in %s on line %d -NULL - --- Testing strncasecmp() function with invalid argument -- -Warning: Length must be greater than or equal to 0 in %s on line %d -bool(false) -*** Done *** diff --git a/ext/standard/tests/strings/strncasecmp_variation1.phpt b/ext/standard/tests/strings/strncasecmp_variation1.phpt index 9b30706c10..642a66a19e 100644 --- a/ext/standard/tests/strings/strncasecmp_variation1.phpt +++ b/ext/standard/tests/strings/strncasecmp_variation1.phpt @@ -23,117 +23,7 @@ for($ASCII = 97; $ASCII <= 122; $ASCII++) { } echo "*** Done ***\n"; ?> ---EXPECTF-- -*** Test strncasecmp() function: with alphabets *** --- Passing upper-case letters for 'str1' -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Passing lower-case letters for 'str1' -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Test strncasecmp() function: with alphabets *** -- Passing upper-case letters for 'str1' -- int(0) diff --git a/ext/standard/tests/strings/strncasecmp_variation10.phpt b/ext/standard/tests/strings/strncasecmp_variation10.phpt index 6e7d4f89c4..c0157c9b73 100644 --- a/ext/standard/tests/strings/strncasecmp_variation10.phpt +++ b/ext/standard/tests/strings/strncasecmp_variation10.phpt @@ -184,90 +184,3 @@ NULL -- Iteration 31 -- int(-%d) *** Done *** ---UEXPECTF-- -*** Testing strncasecmp() function: with unexpected values for 'str1' *** --- Iteration 1 -- -int(-%d) --- Iteration 2 -- -int(-%d) --- Iteration 3 -- -int(-%d) --- Iteration 4 -- -int(-%d) --- Iteration 5 -- -int(-%d) --- Iteration 6 -- -int(-%d) --- Iteration 7 -- -int(-%d) --- Iteration 8 -- -int(-%d) --- Iteration 9 -- -int(-%d) --- Iteration 10 -- -int(-%d) --- Iteration 11 -- -int(-%d) --- Iteration 12 -- -int(-%d) --- Iteration 13 -- -int(-%d) --- Iteration 14 -- -int(-%d) --- Iteration 15 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncasecmp() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 16 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncasecmp() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 17 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncasecmp() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 18 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncasecmp() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 19 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncasecmp() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 20 -- -int(-%d) --- Iteration 21 -- -int(-%d) --- Iteration 22 -- -int(-%d) --- Iteration 23 -- -int(-%d) --- Iteration 24 -- -int(-%d) --- Iteration 25 -- -int(-%d) --- Iteration 26 -- -int(-%d) --- Iteration 27 -- -int(-%d) --- Iteration 28 -- -int(-%d) --- Iteration 29 -- -int(-%d) --- Iteration 30 -- - -Warning: strncasecmp() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL --- Iteration 31 -- -int(-%d) -*** Done *** diff --git a/ext/standard/tests/strings/strncasecmp_variation11.phpt b/ext/standard/tests/strings/strncasecmp_variation11.phpt index 966df2eb41..d4991420f1 100644 --- a/ext/standard/tests/strings/strncasecmp_variation11.phpt +++ b/ext/standard/tests/strings/strncasecmp_variation11.phpt @@ -185,90 +185,3 @@ NULL -- Iteration 31 -- int(%d) *** Done *** ---UEXPECTF-- -*** Testing strncasecmp() function: with unexpected values for 'str2' *** --- Iteration 1 -- -int(%d) --- Iteration 2 -- -int(%d) --- Iteration 3 -- -int(%d) --- Iteration 4 -- -int(%d) --- Iteration 5 -- -int(%d) --- Iteration 6 -- -int(%d) --- Iteration 7 -- -int(%d) --- Iteration 8 -- -int(%d) --- Iteration 9 -- -int(%d) --- Iteration 10 -- -int(%d) --- Iteration 11 -- -int(%d) --- Iteration 12 -- -int(%d) --- Iteration 13 -- -int(%d) --- Iteration 14 -- -int(%d) --- Iteration 15 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncasecmp() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 16 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncasecmp() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 17 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncasecmp() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 18 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncasecmp() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 19 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncasecmp() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 20 -- -int(%d) --- Iteration 21 -- -int(%d) --- Iteration 22 -- -int(%d) --- Iteration 23 -- -int(%d) --- Iteration 24 -- -int(%d) --- Iteration 25 -- -int(%d) --- Iteration 26 -- -int(%d) --- Iteration 27 -- -int(%d) --- Iteration 28 -- -int(%d) --- Iteration 29 -- -int(%d) --- Iteration 30 -- - -Warning: strncasecmp() expects parameter 2 to be string (Unicode or binary), resource given in %s on line %d -NULL --- Iteration 31 -- -int(%d) -*** Done *** diff --git a/ext/standard/tests/strings/strncasecmp_variation2.phpt b/ext/standard/tests/strings/strncasecmp_variation2.phpt index a51ca3769f..a6f8c1ebb8 100644 --- a/ext/standard/tests/strings/strncasecmp_variation2.phpt +++ b/ext/standard/tests/strings/strncasecmp_variation2.phpt @@ -61,36 +61,3 @@ int\(-[1-9][0-9]*\) int\(-[1-9][0-9]*\) int\(0\) \*\*\* Done \*\*\* ---UEXPECTREGEX-- -\*\*\* Test strncasecmp\(\) function: with double quoted strings \*\*\* --- Iteration 1 -- -int\(0\) -int\(0\) -int\(0\) -int\(-[1-9][0-9]*\) -int\([1-9][0-9]*\) --- Iteration 2 -- -int\(0\) -int\(0\) -int\(0\) -int\(-[1-9][0-9]*\) -int\([1-9][0-9]*\) --- Iteration 3 -- -int\(0\) -int\(0\) -int\(0\) -int\(-[1-9][0-9]*\) -int\([1-9][0-9]*\) --- Iteration 4 -- -int\([1-9][0-9]*\) -int\([1-9][0-9]*\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) --- Iteration 5 -- -int\(-[1-9][0-9]*\) -int\(-[1-9][0-9]*\) -int\(-[1-9][0-9]*\) -int\(-[1-9][0-9]*\) -int\(0\) -\*\*\* Done \*\*\* diff --git a/ext/standard/tests/strings/strncasecmp_variation3.phpt b/ext/standard/tests/strings/strncasecmp_variation3.phpt index ef23953582..f8e2704e25 100644 --- a/ext/standard/tests/strings/strncasecmp_variation3.phpt +++ b/ext/standard/tests/strings/strncasecmp_variation3.phpt @@ -20,24 +20,7 @@ for($len = strlen($str1); $len >= 0; $len--) { } echo "*** Done ***\n"; ?> ---EXPECTF-- -*** Test strncasecmp() function: with different lengths *** -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Test strncasecmp() function: with different lengths *** int(0) int(0) diff --git a/ext/standard/tests/strings/strncasecmp_variation4.phpt b/ext/standard/tests/strings/strncasecmp_variation4.phpt index ce1bd7e79c..b1aa9f6a06 100644 --- a/ext/standard/tests/strings/strncasecmp_variation4.phpt +++ b/ext/standard/tests/strings/strncasecmp_variation4.phpt @@ -185,90 +185,3 @@ NULL -- Iteration 31 -- int(0) *** Done *** ---UEXPECTF-- -*** Testing strncasecmp() function: with unexpected values for 'str1' and 'str2' *** --- Iteration 1 -- -int(0) --- Iteration 2 -- -int(0) --- Iteration 3 -- -int(0) --- Iteration 4 -- -int(0) --- Iteration 5 -- -int(0) --- Iteration 6 -- -int(0) --- Iteration 7 -- -int(0) --- Iteration 8 -- -int(0) --- Iteration 9 -- -int(0) --- Iteration 10 -- -int(0) --- Iteration 11 -- -int(0) --- Iteration 12 -- -int(0) --- Iteration 13 -- -int(0) --- Iteration 14 -- -int(0) --- Iteration 15 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncasecmp() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 16 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncasecmp() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 17 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncasecmp() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 18 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncasecmp() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 19 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncasecmp() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 20 -- -int(0) --- Iteration 21 -- -int(0) --- Iteration 22 -- -int(0) --- Iteration 23 -- -int(0) --- Iteration 24 -- -int(0) --- Iteration 25 -- -int(0) --- Iteration 26 -- -int(0) --- Iteration 27 -- -int(0) --- Iteration 28 -- -int(0) --- Iteration 29 -- -int(0) --- Iteration 30 -- - -Warning: strncasecmp() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL --- Iteration 31 -- -int(0) -*** Done *** diff --git a/ext/standard/tests/strings/strncasecmp_variation5.phpt b/ext/standard/tests/strings/strncasecmp_variation5.phpt index d7fa36da8d..5c51cdfd70 100644 --- a/ext/standard/tests/strings/strncasecmp_variation5.phpt +++ b/ext/standard/tests/strings/strncasecmp_variation5.phpt @@ -142,75 +142,6 @@ int(0) int(0) -- Iteration 19 -- -Warning: strncasecmp() expects parameter 3 to be long, string given in %s on line %d -NULL --- Iteration 20 -- - -Warning: strncasecmp() expects parameter 3 to be long, string given in %s on line %d -NULL --- Iteration 21 -- -int(0) --- Iteration 22 -- -int(0) --- Iteration 23 -- - -Warning: strncasecmp() expects parameter 3 to be long, resource given in %s on line %d -NULL --- Iteration 24 -- - -Warning: strncasecmp() expects parameter 3 to be long, object given in %s on line %d -NULL -*** Done *** ---UEXPECTF-- -*** Test strncasecmp() function: unexpected values for 'len' *** --- Iteration 1 -- -int(0) --- Iteration 2 -- -int(0) --- Iteration 3 -- -int(0) --- Iteration 4 -- -int(0) --- Iteration 5 -- -int(0) --- Iteration 6 -- -int(0) --- Iteration 7 -- -int(0) --- Iteration 8 -- - -Warning: strncasecmp() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 9 -- - -Warning: strncasecmp() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 10 -- - -Warning: strncasecmp() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 11 -- - -Warning: strncasecmp() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 12 -- - -Warning: strncasecmp() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 13 -- -int(0) --- Iteration 14 -- -int(0) --- Iteration 15 -- -int(0) --- Iteration 16 -- -int(0) --- Iteration 17 -- -int(0) --- Iteration 18 -- -int(0) --- Iteration 19 -- - Warning: strncasecmp() expects parameter 3 to be long, Unicode string given in %s on line %d NULL -- Iteration 20 -- diff --git a/ext/standard/tests/strings/strncasecmp_variation6.phpt b/ext/standard/tests/strings/strncasecmp_variation6.phpt index 302ab50a1b..57ec2b23d8 100644 --- a/ext/standard/tests/strings/strncasecmp_variation6.phpt +++ b/ext/standard/tests/strings/strncasecmp_variation6.phpt @@ -31,784 +31,7 @@ var_dump( strncasecmp($str1, $str2, 8) ); //comparing all the 8-bits; expected: echo "\n*** Done ***\n"; ?> ---EXPECTF-- -*** Test strncasecmp() function: with binary inputs *** - --- Checking with all 256 characters given, in binary format -- --- Iteration 1 -- -int(0) -int(0) --- Iteration 2 -- -int(0) -int(0) --- Iteration 3 -- -int(0) -int(0) --- Iteration 4 -- -int(0) -int(0) --- Iteration 5 -- -int(0) -int(0) --- Iteration 6 -- -int(0) -int(0) --- Iteration 7 -- -int(0) -int(0) --- Iteration 8 -- -int(0) -int(0) --- Iteration 9 -- -int(0) -int(0) --- Iteration 10 -- -int(0) -int(0) --- Iteration 11 -- -int(0) -int(0) --- Iteration 12 -- -int(0) -int(0) --- Iteration 13 -- -int(0) -int(0) --- Iteration 14 -- -int(0) -int(0) --- Iteration 15 -- -int(0) -int(0) --- Iteration 16 -- -int(0) -int(0) --- Iteration 17 -- -int(0) -int(0) --- Iteration 18 -- -int(0) -int(0) --- Iteration 19 -- -int(0) -int(0) --- Iteration 20 -- -int(0) -int(0) --- Iteration 21 -- -int(0) -int(0) --- Iteration 22 -- -int(0) -int(0) --- Iteration 23 -- -int(0) -int(0) --- Iteration 24 -- -int(0) -int(0) --- Iteration 25 -- -int(0) -int(0) --- Iteration 26 -- -int(0) -int(0) --- Iteration 27 -- -int(0) -int(0) --- Iteration 28 -- -int(0) -int(0) --- Iteration 29 -- -int(0) -int(0) --- Iteration 30 -- -int(0) -int(0) --- Iteration 31 -- -int(0) -int(0) --- Iteration 32 -- -int(0) -int(0) --- Iteration 33 -- -int(0) -int(0) --- Iteration 34 -- -int(0) -int(0) --- Iteration 35 -- -int(0) -int(0) --- Iteration 36 -- -int(0) -int(0) --- Iteration 37 -- -int(0) -int(0) --- Iteration 38 -- -int(0) -int(0) --- Iteration 39 -- -int(0) -int(0) --- Iteration 40 -- -int(0) -int(0) --- Iteration 41 -- -int(0) -int(0) --- Iteration 42 -- -int(0) -int(0) --- Iteration 43 -- -int(0) -int(0) --- Iteration 44 -- -int(0) -int(0) --- Iteration 45 -- -int(0) -int(0) --- Iteration 46 -- -int(0) -int(0) --- Iteration 47 -- -int(0) -int(0) --- Iteration 48 -- -int(0) -int(0) --- Iteration 49 -- -int(0) -int(0) --- Iteration 50 -- -int(0) -int(0) --- Iteration 51 -- -int(0) -int(0) --- Iteration 52 -- -int(0) -int(0) --- Iteration 53 -- -int(0) -int(0) --- Iteration 54 -- -int(0) -int(0) --- Iteration 55 -- -int(0) -int(0) --- Iteration 56 -- -int(0) -int(0) --- Iteration 57 -- -int(0) -int(0) --- Iteration 58 -- -int(0) -int(0) --- Iteration 59 -- -int(0) -int(0) --- Iteration 60 -- -int(0) -int(0) --- Iteration 61 -- -int(0) -int(0) --- Iteration 62 -- -int(0) -int(0) --- Iteration 63 -- -int(0) -int(0) --- Iteration 64 -- -int(0) -int(0) --- Iteration 65 -- -int(0) -int(0) --- Iteration 66 -- -int(0) -int(0) --- Iteration 67 -- -int(0) -int(0) --- Iteration 68 -- -int(0) -int(0) --- Iteration 69 -- -int(0) -int(0) --- Iteration 70 -- -int(0) -int(0) --- Iteration 71 -- -int(0) -int(0) --- Iteration 72 -- -int(0) -int(0) --- Iteration 73 -- -int(0) -int(0) --- Iteration 74 -- -int(0) -int(0) --- Iteration 75 -- -int(0) -int(0) --- Iteration 76 -- -int(0) -int(0) --- Iteration 77 -- -int(0) -int(0) --- Iteration 78 -- -int(0) -int(0) --- Iteration 79 -- -int(0) -int(0) --- Iteration 80 -- -int(0) -int(0) --- Iteration 81 -- -int(0) -int(0) --- Iteration 82 -- -int(0) -int(0) --- Iteration 83 -- -int(0) -int(0) --- Iteration 84 -- -int(0) -int(0) --- Iteration 85 -- -int(0) -int(0) --- Iteration 86 -- -int(0) -int(0) --- Iteration 87 -- -int(0) -int(0) --- Iteration 88 -- -int(0) -int(0) --- Iteration 89 -- -int(0) -int(0) --- Iteration 90 -- -int(0) -int(0) --- Iteration 91 -- -int(0) -int(0) --- Iteration 92 -- -int(0) -int(0) --- Iteration 93 -- -int(0) -int(0) --- Iteration 94 -- -int(0) -int(0) --- Iteration 95 -- -int(0) -int(0) --- Iteration 96 -- -int(0) -int(0) --- Iteration 97 -- -int(0) -int(0) --- Iteration 98 -- -int(0) -int(0) --- Iteration 99 -- -int(0) -int(0) --- Iteration 100 -- -int(0) -int(0) --- Iteration 101 -- -int(0) -int(0) --- Iteration 102 -- -int(0) -int(0) --- Iteration 103 -- -int(0) -int(0) --- Iteration 104 -- -int(0) -int(0) --- Iteration 105 -- -int(0) -int(0) --- Iteration 106 -- -int(0) -int(0) --- Iteration 107 -- -int(0) -int(0) --- Iteration 108 -- -int(0) -int(0) --- Iteration 109 -- -int(0) -int(0) --- Iteration 110 -- -int(0) -int(0) --- Iteration 111 -- -int(0) -int(0) --- Iteration 112 -- -int(0) -int(0) --- Iteration 113 -- -int(0) -int(0) --- Iteration 114 -- -int(0) -int(0) --- Iteration 115 -- -int(0) -int(0) --- Iteration 116 -- -int(0) -int(0) --- Iteration 117 -- -int(0) -int(0) --- Iteration 118 -- -int(0) -int(0) --- Iteration 119 -- -int(0) -int(0) --- Iteration 120 -- -int(0) -int(0) --- Iteration 121 -- -int(0) -int(0) --- Iteration 122 -- -int(0) -int(0) --- Iteration 123 -- -int(0) -int(0) --- Iteration 124 -- -int(0) -int(0) --- Iteration 125 -- -int(0) -int(0) --- Iteration 126 -- -int(0) -int(0) --- Iteration 127 -- -int(0) -int(0) --- Iteration 128 -- -int(0) -int(0) --- Iteration 129 -- -int(0) -int(0) --- Iteration 130 -- -int(0) -int(0) --- Iteration 131 -- -int(0) -int(0) --- Iteration 132 -- -int(0) -int(0) --- Iteration 133 -- -int(0) -int(0) --- Iteration 134 -- -int(0) -int(0) --- Iteration 135 -- -int(0) -int(0) --- Iteration 136 -- -int(0) -int(0) --- Iteration 137 -- -int(0) -int(0) --- Iteration 138 -- -int(0) -int(0) --- Iteration 139 -- -int(0) -int(0) --- Iteration 140 -- -int(0) -int(0) --- Iteration 141 -- -int(0) -int(0) --- Iteration 142 -- -int(0) -int(0) --- Iteration 143 -- -int(0) -int(0) --- Iteration 144 -- -int(0) -int(0) --- Iteration 145 -- -int(0) -int(0) --- Iteration 146 -- -int(0) -int(0) --- Iteration 147 -- -int(0) -int(0) --- Iteration 148 -- -int(0) -int(0) --- Iteration 149 -- -int(0) -int(0) --- Iteration 150 -- -int(0) -int(0) --- Iteration 151 -- -int(0) -int(0) --- Iteration 152 -- -int(0) -int(0) --- Iteration 153 -- -int(0) -int(0) --- Iteration 154 -- -int(0) -int(0) --- Iteration 155 -- -int(0) -int(0) --- Iteration 156 -- -int(0) -int(0) --- Iteration 157 -- -int(0) -int(0) --- Iteration 158 -- -int(0) -int(0) --- Iteration 159 -- -int(0) -int(0) --- Iteration 160 -- -int(0) -int(0) --- Iteration 161 -- -int(0) -int(0) --- Iteration 162 -- -int(0) -int(0) --- Iteration 163 -- -int(0) -int(0) --- Iteration 164 -- -int(0) -int(0) --- Iteration 165 -- -int(0) -int(0) --- Iteration 166 -- -int(0) -int(0) --- Iteration 167 -- -int(0) -int(0) --- Iteration 168 -- -int(0) -int(0) --- Iteration 169 -- -int(0) -int(0) --- Iteration 170 -- -int(0) -int(0) --- Iteration 171 -- -int(0) -int(0) --- Iteration 172 -- -int(0) -int(0) --- Iteration 173 -- -int(0) -int(0) --- Iteration 174 -- -int(0) -int(0) --- Iteration 175 -- -int(0) -int(0) --- Iteration 176 -- -int(0) -int(0) --- Iteration 177 -- -int(0) -int(0) --- Iteration 178 -- -int(0) -int(0) --- Iteration 179 -- -int(0) -int(0) --- Iteration 180 -- -int(0) -int(0) --- Iteration 181 -- -int(0) -int(0) --- Iteration 182 -- -int(0) -int(0) --- Iteration 183 -- -int(0) -int(0) --- Iteration 184 -- -int(0) -int(0) --- Iteration 185 -- -int(0) -int(0) --- Iteration 186 -- -int(0) -int(0) --- Iteration 187 -- -int(0) -int(0) --- Iteration 188 -- -int(0) -int(0) --- Iteration 189 -- -int(0) -int(0) --- Iteration 190 -- -int(0) -int(0) --- Iteration 191 -- -int(0) -int(0) --- Iteration 192 -- -int(0) -int(0) --- Iteration 193 -- -int(0) -int(0) --- Iteration 194 -- -int(0) -int(0) --- Iteration 195 -- -int(0) -int(0) --- Iteration 196 -- -int(0) -int(0) --- Iteration 197 -- -int(0) -int(0) --- Iteration 198 -- -int(0) -int(0) --- Iteration 199 -- -int(0) -int(0) --- Iteration 200 -- -int(0) -int(0) --- Iteration 201 -- -int(0) -int(0) --- Iteration 202 -- -int(0) -int(0) --- Iteration 203 -- -int(0) -int(0) --- Iteration 204 -- -int(0) -int(0) --- Iteration 205 -- -int(0) -int(0) --- Iteration 206 -- -int(0) -int(0) --- Iteration 207 -- -int(0) -int(0) --- Iteration 208 -- -int(0) -int(0) --- Iteration 209 -- -int(0) -int(0) --- Iteration 210 -- -int(0) -int(0) --- Iteration 211 -- -int(0) -int(0) --- Iteration 212 -- -int(0) -int(0) --- Iteration 213 -- -int(0) -int(0) --- Iteration 214 -- -int(0) -int(0) --- Iteration 215 -- -int(0) -int(0) --- Iteration 216 -- -int(0) -int(0) --- Iteration 217 -- -int(0) -int(0) --- Iteration 218 -- -int(0) -int(0) --- Iteration 219 -- -int(0) -int(0) --- Iteration 220 -- -int(0) -int(0) --- Iteration 221 -- -int(0) -int(0) --- Iteration 222 -- -int(0) -int(0) --- Iteration 223 -- -int(0) -int(0) --- Iteration 224 -- -int(0) -int(0) --- Iteration 225 -- -int(0) -int(0) --- Iteration 226 -- -int(0) -int(0) --- Iteration 227 -- -int(0) -int(0) --- Iteration 228 -- -int(0) -int(0) --- Iteration 229 -- -int(0) -int(0) --- Iteration 230 -- -int(0) -int(0) --- Iteration 231 -- -int(0) -int(0) --- Iteration 232 -- -int(0) -int(0) --- Iteration 233 -- -int(0) -int(0) --- Iteration 234 -- -int(0) -int(0) --- Iteration 235 -- -int(0) -int(0) --- Iteration 236 -- -int(0) -int(0) --- Iteration 237 -- -int(0) -int(0) --- Iteration 238 -- -int(0) -int(0) --- Iteration 239 -- -int(0) -int(0) --- Iteration 240 -- -int(0) -int(0) --- Iteration 241 -- -int(0) -int(0) --- Iteration 242 -- -int(0) -int(0) --- Iteration 243 -- -int(0) -int(0) --- Iteration 244 -- -int(0) -int(0) --- Iteration 245 -- -int(0) -int(0) --- Iteration 246 -- -int(0) -int(0) --- Iteration 247 -- -int(0) -int(0) --- Iteration 248 -- -int(0) -int(0) --- Iteration 249 -- -int(0) -int(0) --- Iteration 250 -- -int(0) -int(0) --- Iteration 251 -- -int(0) -int(0) --- Iteration 252 -- -int(0) -int(0) --- Iteration 253 -- -int(0) -int(0) --- Iteration 254 -- -int(0) -int(0) --- Iteration 255 -- -int(0) -int(0) --- Iteration 256 -- -int(0) -int(0) - --- Checking with out of character's range, given in binary format -- -int(1) - -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Test strncasecmp() function: with binary inputs *** -- Checking with all 256 characters given, in binary format -- diff --git a/ext/standard/tests/strings/strncasecmp_variation7.phpt b/ext/standard/tests/strings/strncasecmp_variation7.phpt index 4b009a5aa2..6622b907f6 100644 --- a/ext/standard/tests/strings/strncasecmp_variation7.phpt +++ b/ext/standard/tests/strings/strncasecmp_variation7.phpt @@ -22,13 +22,7 @@ var_dump( strncasecmp($str4, "Hello,world", 12) ); echo "*** Done ***\n"; ?> ---EXPECTF-- -*** Test strncasecmp() function: with null terminated strings and binary inputs *** -int(5) -int(0) -int(-119) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Test strncasecmp() function: with null terminated strings and binary inputs *** int(1) int(0) diff --git a/ext/standard/tests/strings/strncasecmp_variation8.phpt b/ext/standard/tests/strings/strncasecmp_variation8.phpt index 898f0f1ae9..6011a7b0fd 100644 --- a/ext/standard/tests/strings/strncasecmp_variation8.phpt +++ b/ext/standard/tests/strings/strncasecmp_variation8.phpt @@ -50,26 +50,3 @@ int\([1-9][0-9]*\) int\([1-9][0-9]*\) int\(0\) \*\*\* Done \*\*\* ---UEXPECTREGEX-- -\*\*\* Test strncasecmp\(\) function: with single quoted strings \*\*\* --- Iteration 1 -- -int\(0\) -int\(0\) -int\(0\) -int\(-[1-9][0-9]*\) --- Iteration 2 -- -int\(0\) -int\(0\) -int\(0\) -int\(-[1-9][0-9]*\) --- Iteration 3 -- -int\(0\) -int\(0\) -int\(0\) -int\(-[1-9][0-9]*\) --- Iteration 4 -- -int\([1-9][0-9]*\) -int\([1-9][0-9]*\) -int\([1-9][0-9]*\) -int\(0\) -\*\*\* Done \*\*\* diff --git a/ext/standard/tests/strings/strncasecmp_variation9.phpt b/ext/standard/tests/strings/strncasecmp_variation9.phpt index 904dac2c62..b00a43dd15 100644 --- a/ext/standard/tests/strings/strncasecmp_variation9.phpt +++ b/ext/standard/tests/strings/strncasecmp_variation9.phpt @@ -73,24 +73,7 @@ for($index1 = 0; $index1 < count($strings); $index1++) { } echo "*** Done ***\n"; ?> ---EXPECTF-- -*** Test strncasecmp() function: with here-doc strings *** -int(0) -int(63) -int(0) -int(84) -int(0) -int(-1) -int(0) -int(0) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Test strncasecmp() function: with here-doc strings *** int(0) int(1) diff --git a/ext/standard/tests/strings/strncmp_basic.phpt b/ext/standard/tests/strings/strncmp_basic.phpt index 62f5a050be..317039859f 100644 --- a/ext/standard/tests/strings/strncmp_basic.phpt +++ b/ext/standard/tests/strings/strncmp_basic.phpt @@ -44,18 +44,3 @@ int\(0\) int\(-[1-9][0-9]*\) int\([1-9][0-9]*\) \*\*\* Done \*\*\* ---UEXPECTREGEX-- -\*\*\* Testing strncmp\(\) function: basic functionality \*\*\* --- Testing strncmp\(\) with single quoted string -- -int\(0\) -int\(-[1-9][0-9]*\) -int\([1-9][0-9]*\) --- Testing strncmp\(\) with double quoted string -- -int\(0\) -int\(-[1-9][0-9]*\) -int\([1-9][0-9]*\) --- Testing strncmp\(\) with here-doc string -- -int\(0\) -int\(-[1-9][0-9]*\) -int\([1-9][0-9]*\) -\*\*\* Done \*\*\* diff --git a/ext/standard/tests/strings/strncmp_error.phpt b/ext/standard/tests/strings/strncmp_error.phpt index 53e59e7400..8e4d2805eb 100644 --- a/ext/standard/tests/strings/strncmp_error.phpt +++ b/ext/standard/tests/strings/strncmp_error.phpt @@ -43,21 +43,3 @@ NULL Warning: Length must be greater than or equal to 0 in %s on line %d bool(false) *** Done *** ---UEXPECTF-- -*** Testing strncmp() function: error conditions *** - -Warning: strncmp() expects exactly 3 parameters, 0 given in %s on line %d -NULL - -Warning: strncmp() expects exactly 3 parameters, 1 given in %s on line %d -NULL - -Warning: strncmp() expects exactly 3 parameters, 2 given in %s on line %d -NULL - -Warning: strncmp() expects exactly 3 parameters, 4 given in %s on line %d -NULL - -Warning: Length must be greater than or equal to 0 in %s on line %d -bool(false) -*** Done *** diff --git a/ext/standard/tests/strings/strncmp_variation1.phpt b/ext/standard/tests/strings/strncmp_variation1.phpt index 8927acb705..7e488fb1ba 100644 --- a/ext/standard/tests/strings/strncmp_variation1.phpt +++ b/ext/standard/tests/strings/strncmp_variation1.phpt @@ -133,113 +133,3 @@ int\([1-9][0-9]*\) int\(0\) int\([1-9][0-9]*\) \*\*\* Done \*\*\* ---UEXPECTREGEX-- -\*\*\* Test strncmp\(\) function: with alphabets \*\*\* --- Passing upper-case letters for 'str1' -- -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) - --- Passing lower-case letters for 'str1' -- -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -\*\*\* Done \*\*\* diff --git a/ext/standard/tests/strings/strncmp_variation2.phpt b/ext/standard/tests/strings/strncmp_variation2.phpt index 601924db1b..9a2f3833ce 100644 --- a/ext/standard/tests/strings/strncmp_variation2.phpt +++ b/ext/standard/tests/strings/strncmp_variation2.phpt @@ -61,36 +61,3 @@ int\([1-9][0-9]*\) int\(-[1-9][0-9]*\) int\(0\) \*\*\* Done \*\*\* ---UEXPECTREGEX-- -\*\*\* Test strncmp\(\) function: with double quoted strings \*\*\* --- Iteration [1-9][0-9]* -- -int\(0\) -int\(-[1-9][0-9]*\) -int\([1-9][0-9]*\) -int\(-[1-9][0-9]*\) -int\([1-9][0-9]*\) --- Iteration 2 -- -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\([1-9][0-9]*\) -int\([1-9][0-9]*\) --- Iteration 3 -- -int\(-[1-9][0-9]*\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) -int\(-[1-9][0-9]*\) --- Iteration 4 -- -int\([1-9][0-9]*\) -int\(-[1-9][0-9]*\) -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) --- Iteration 5 -- -int\(-[1-9][0-9]*\) -int\(-[1-9][0-9]*\) -int\([1-9][0-9]*\) -int\(-[1-9][0-9]*\) -int\(0\) -\*\*\* Done \*\*\* diff --git a/ext/standard/tests/strings/strncmp_variation3.phpt b/ext/standard/tests/strings/strncmp_variation3.phpt index beec322f5a..c21f666135 100644 --- a/ext/standard/tests/strings/strncmp_variation3.phpt +++ b/ext/standard/tests/strings/strncmp_variation3.phpt @@ -37,20 +37,3 @@ int\(0\) int\(0\) int\(0\) \*\*\* Done \*\*\* ---UEXPECTREGEX-- -\*\*\* Test strncmp\(\) function: with different lengths \*\*\* -int\(-[1-9][0-9]*\) -int\(-[1-9][0-9]*\) -int\(-[1-9][0-9]*\) -int\(-[1-9][0-9]*\) -int\(-[1-9][0-9]*\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(0\) -int\(0\) -int\(0\) -int\(0\) -int\(0\) -int\(0\) -int\(0\) -\*\*\* Done \*\*\* diff --git a/ext/standard/tests/strings/strncmp_variation4.phpt b/ext/standard/tests/strings/strncmp_variation4.phpt index ae27fe2410..3af2a9ebdd 100644 --- a/ext/standard/tests/strings/strncmp_variation4.phpt +++ b/ext/standard/tests/strings/strncmp_variation4.phpt @@ -188,94 +188,3 @@ NULL -- Iteration 31 -- int(0) *** Done *** ---UEXPECTF-- -*** Testing strncmp() function: by supplying all types for 'str1' and 'str2' *** - -Notice: Undefined variable: undefined_var in %s on line %d - -Notice: Undefined variable: unset_var in %s on line %d --- Iteration 1 -- -int(0) --- Iteration 2 -- -int(0) --- Iteration 3 -- -int(0) --- Iteration 4 -- -int(0) --- Iteration 5 -- -int(0) --- Iteration 6 -- -int(0) --- Iteration 7 -- -int(0) --- Iteration 8 -- -int(0) --- Iteration 9 -- -int(0) --- Iteration 10 -- -int(0) --- Iteration 11 -- -int(0) --- Iteration 12 -- -int(0) --- Iteration 13 -- -int(0) --- Iteration 14 -- -int(0) --- Iteration 15 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncmp() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 16 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncmp() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 17 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncmp() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 18 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncmp() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 19 -- - -Notice: Array to string conversion in %s on line %d - -Warning: strncmp() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 20 -- -int(0) --- Iteration 21 -- -int(0) --- Iteration 22 -- -int(0) --- Iteration 23 -- -int(0) --- Iteration 24 -- -int(0) --- Iteration 25 -- -int(0) --- Iteration 26 -- -int(0) --- Iteration 27 -- -int(0) --- Iteration 28 -- -int(0) --- Iteration 29 -- -int(0) --- Iteration 30 -- - -Warning: strncmp() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL --- Iteration 31 -- -int(0) -*** Done *** diff --git a/ext/standard/tests/strings/strncmp_variation5.phpt b/ext/standard/tests/strings/strncmp_variation5.phpt index b50dd9ba2b..684cc65470 100644 --- a/ext/standard/tests/strings/strncmp_variation5.phpt +++ b/ext/standard/tests/strings/strncmp_variation5.phpt @@ -156,85 +156,6 @@ int(0) int(0) -- Iteration 22 -- -Warning: strncmp() expects parameter 3 to be long, string given in %s on line %d -NULL --- Iteration 23 -- - -Warning: strncmp() expects parameter 3 to be long, string given in %s on line %d -NULL --- Iteration 24 -- -int(0) --- Iteration 25 -- -int(0) --- Iteration 26 -- - -Warning: strncmp() expects parameter 3 to be long, resource given in %s on line %d -NULL --- Iteration 27 -- - -Warning: strncmp() expects parameter 3 to be long, object given in %s on line %d -NULL -*** Done *** ---UEXPECTF-- -*** Test strncmp() function: by supplying all types for 'len' *** - -Notice: Undefined variable: undefined_var in %s on line %d - -Notice: Undefined variable: unset_var in %s on line %d --- Iteration 1 -- -int(0) --- Iteration 2 -- -int(0) --- Iteration 3 -- -int(0) --- Iteration 4 -- -int(0) --- Iteration 5 -- -int(0) --- Iteration 6 -- -int(0) --- Iteration 7 -- -int(0) --- Iteration 8 -- -int(0) --- Iteration 9 -- -int(0) --- Iteration 10 -- -int(0) --- Iteration 11 -- - -Warning: strncmp() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 12 -- - -Warning: strncmp() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 13 -- - -Warning: strncmp() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 14 -- - -Warning: strncmp() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 15 -- - -Warning: strncmp() expects parameter 3 to be long, array given in %s on line %d -NULL --- Iteration 16 -- -int(0) --- Iteration 17 -- -int(0) --- Iteration 18 -- -int(0) --- Iteration 19 -- -int(0) --- Iteration 20 -- -int(0) --- Iteration 21 -- -int(0) --- Iteration 22 -- - Warning: strncmp() expects parameter 3 to be long, Unicode string given in %s on line %d NULL -- Iteration 23 -- diff --git a/ext/standard/tests/strings/strncmp_variation6.phpt b/ext/standard/tests/strings/strncmp_variation6.phpt index 834b7903db..a7719b63af 100644 --- a/ext/standard/tests/strings/strncmp_variation6.phpt +++ b/ext/standard/tests/strings/strncmp_variation6.phpt @@ -809,780 +809,3 @@ int(0) int(1) *** Done *** ---UEXPECTF-- -*** Test strncmp() function: with binary inputs *** - --- Checking with all 256 characters given, in binary format -- --- Iteration 1 -- -int(0) -int(0) --- Iteration 2 -- -int(0) -int(0) --- Iteration 3 -- -int(0) -int(0) --- Iteration 4 -- -int(0) -int(0) --- Iteration 5 -- -int(0) -int(0) --- Iteration 6 -- -int(0) -int(0) --- Iteration 7 -- -int(0) -int(0) --- Iteration 8 -- -int(0) -int(0) --- Iteration 9 -- -int(0) -int(0) --- Iteration 10 -- -int(0) -int(0) --- Iteration 11 -- -int(0) -int(0) --- Iteration 12 -- -int(0) -int(0) --- Iteration 13 -- -int(0) -int(0) --- Iteration 14 -- -int(0) -int(0) --- Iteration 15 -- -int(0) -int(0) --- Iteration 16 -- -int(0) -int(0) --- Iteration 17 -- -int(0) -int(0) --- Iteration 18 -- -int(0) -int(0) --- Iteration 19 -- -int(0) -int(0) --- Iteration 20 -- -int(0) -int(0) --- Iteration 21 -- -int(0) -int(0) --- Iteration 22 -- -int(0) -int(0) --- Iteration 23 -- -int(0) -int(0) --- Iteration 24 -- -int(0) -int(0) --- Iteration 25 -- -int(0) -int(0) --- Iteration 26 -- -int(0) -int(0) --- Iteration 27 -- -int(0) -int(0) --- Iteration 28 -- -int(0) -int(0) --- Iteration 29 -- -int(0) -int(0) --- Iteration 30 -- -int(0) -int(0) --- Iteration 31 -- -int(0) -int(0) --- Iteration 32 -- -int(0) -int(0) --- Iteration 33 -- -int(0) -int(0) --- Iteration 34 -- -int(0) -int(0) --- Iteration 35 -- -int(0) -int(0) --- Iteration 36 -- -int(0) -int(0) --- Iteration 37 -- -int(0) -int(0) --- Iteration 38 -- -int(0) -int(0) --- Iteration 39 -- -int(0) -int(0) --- Iteration 40 -- -int(0) -int(0) --- Iteration 41 -- -int(0) -int(0) --- Iteration 42 -- -int(0) -int(0) --- Iteration 43 -- -int(0) -int(0) --- Iteration 44 -- -int(0) -int(0) --- Iteration 45 -- -int(0) -int(0) --- Iteration 46 -- -int(0) -int(0) --- Iteration 47 -- -int(0) -int(0) --- Iteration 48 -- -int(0) -int(0) --- Iteration 49 -- -int(0) -int(0) --- Iteration 50 -- -int(0) -int(0) --- Iteration 51 -- -int(0) -int(0) --- Iteration 52 -- -int(0) -int(0) --- Iteration 53 -- -int(0) -int(0) --- Iteration 54 -- -int(0) -int(0) --- Iteration 55 -- -int(0) -int(0) --- Iteration 56 -- -int(0) -int(0) --- Iteration 57 -- -int(0) -int(0) --- Iteration 58 -- -int(0) -int(0) --- Iteration 59 -- -int(0) -int(0) --- Iteration 60 -- -int(0) -int(0) --- Iteration 61 -- -int(0) -int(0) --- Iteration 62 -- -int(0) -int(0) --- Iteration 63 -- -int(0) -int(0) --- Iteration 64 -- -int(0) -int(0) --- Iteration 65 -- -int(0) -int(0) --- Iteration 66 -- -int(0) -int(0) --- Iteration 67 -- -int(0) -int(0) --- Iteration 68 -- -int(0) -int(0) --- Iteration 69 -- -int(0) -int(0) --- Iteration 70 -- -int(0) -int(0) --- Iteration 71 -- -int(0) -int(0) --- Iteration 72 -- -int(0) -int(0) --- Iteration 73 -- -int(0) -int(0) --- Iteration 74 -- -int(0) -int(0) --- Iteration 75 -- -int(0) -int(0) --- Iteration 76 -- -int(0) -int(0) --- Iteration 77 -- -int(0) -int(0) --- Iteration 78 -- -int(0) -int(0) --- Iteration 79 -- -int(0) -int(0) --- Iteration 80 -- -int(0) -int(0) --- Iteration 81 -- -int(0) -int(0) --- Iteration 82 -- -int(0) -int(0) --- Iteration 83 -- -int(0) -int(0) --- Iteration 84 -- -int(0) -int(0) --- Iteration 85 -- -int(0) -int(0) --- Iteration 86 -- -int(0) -int(0) --- Iteration 87 -- -int(0) -int(0) --- Iteration 88 -- -int(0) -int(0) --- Iteration 89 -- -int(0) -int(0) --- Iteration 90 -- -int(0) -int(0) --- Iteration 91 -- -int(0) -int(0) --- Iteration 92 -- -int(0) -int(0) --- Iteration 93 -- -int(0) -int(0) --- Iteration 94 -- -int(0) -int(0) --- Iteration 95 -- -int(0) -int(0) --- Iteration 96 -- -int(0) -int(0) --- Iteration 97 -- -int(0) -int(0) --- Iteration 98 -- -int(0) -int(0) --- Iteration 99 -- -int(0) -int(0) --- Iteration 100 -- -int(0) -int(0) --- Iteration 101 -- -int(0) -int(0) --- Iteration 102 -- -int(0) -int(0) --- Iteration 103 -- -int(0) -int(0) --- Iteration 104 -- -int(0) -int(0) --- Iteration 105 -- -int(0) -int(0) --- Iteration 106 -- -int(0) -int(0) --- Iteration 107 -- -int(0) -int(0) --- Iteration 108 -- -int(0) -int(0) --- Iteration 109 -- -int(0) -int(0) --- Iteration 110 -- -int(0) -int(0) --- Iteration 111 -- -int(0) -int(0) --- Iteration 112 -- -int(0) -int(0) --- Iteration 113 -- -int(0) -int(0) --- Iteration 114 -- -int(0) -int(0) --- Iteration 115 -- -int(0) -int(0) --- Iteration 116 -- -int(0) -int(0) --- Iteration 117 -- -int(0) -int(0) --- Iteration 118 -- -int(0) -int(0) --- Iteration 119 -- -int(0) -int(0) --- Iteration 120 -- -int(0) -int(0) --- Iteration 121 -- -int(0) -int(0) --- Iteration 122 -- -int(0) -int(0) --- Iteration 123 -- -int(0) -int(0) --- Iteration 124 -- -int(0) -int(0) --- Iteration 125 -- -int(0) -int(0) --- Iteration 126 -- -int(0) -int(0) --- Iteration 127 -- -int(0) -int(0) --- Iteration 128 -- -int(0) -int(0) --- Iteration 129 -- -int(0) -int(0) --- Iteration 130 -- -int(0) -int(0) --- Iteration 131 -- -int(0) -int(0) --- Iteration 132 -- -int(0) -int(0) --- Iteration 133 -- -int(0) -int(0) --- Iteration 134 -- -int(0) -int(0) --- Iteration 135 -- -int(0) -int(0) --- Iteration 136 -- -int(0) -int(0) --- Iteration 137 -- -int(0) -int(0) --- Iteration 138 -- -int(0) -int(0) --- Iteration 139 -- -int(0) -int(0) --- Iteration 140 -- -int(0) -int(0) --- Iteration 141 -- -int(0) -int(0) --- Iteration 142 -- -int(0) -int(0) --- Iteration 143 -- -int(0) -int(0) --- Iteration 144 -- -int(0) -int(0) --- Iteration 145 -- -int(0) -int(0) --- Iteration 146 -- -int(0) -int(0) --- Iteration 147 -- -int(0) -int(0) --- Iteration 148 -- -int(0) -int(0) --- Iteration 149 -- -int(0) -int(0) --- Iteration 150 -- -int(0) -int(0) --- Iteration 151 -- -int(0) -int(0) --- Iteration 152 -- -int(0) -int(0) --- Iteration 153 -- -int(0) -int(0) --- Iteration 154 -- -int(0) -int(0) --- Iteration 155 -- -int(0) -int(0) --- Iteration 156 -- -int(0) -int(0) --- Iteration 157 -- -int(0) -int(0) --- Iteration 158 -- -int(0) -int(0) --- Iteration 159 -- -int(0) -int(0) --- Iteration 160 -- -int(0) -int(0) --- Iteration 161 -- -int(0) -int(0) --- Iteration 162 -- -int(0) -int(0) --- Iteration 163 -- -int(0) -int(0) --- Iteration 164 -- -int(0) -int(0) --- Iteration 165 -- -int(0) -int(0) --- Iteration 166 -- -int(0) -int(0) --- Iteration 167 -- -int(0) -int(0) --- Iteration 168 -- -int(0) -int(0) --- Iteration 169 -- -int(0) -int(0) --- Iteration 170 -- -int(0) -int(0) --- Iteration 171 -- -int(0) -int(0) --- Iteration 172 -- -int(0) -int(0) --- Iteration 173 -- -int(0) -int(0) --- Iteration 174 -- -int(0) -int(0) --- Iteration 175 -- -int(0) -int(0) --- Iteration 176 -- -int(0) -int(0) --- Iteration 177 -- -int(0) -int(0) --- Iteration 178 -- -int(0) -int(0) --- Iteration 179 -- -int(0) -int(0) --- Iteration 180 -- -int(0) -int(0) --- Iteration 181 -- -int(0) -int(0) --- Iteration 182 -- -int(0) -int(0) --- Iteration 183 -- -int(0) -int(0) --- Iteration 184 -- -int(0) -int(0) --- Iteration 185 -- -int(0) -int(0) --- Iteration 186 -- -int(0) -int(0) --- Iteration 187 -- -int(0) -int(0) --- Iteration 188 -- -int(0) -int(0) --- Iteration 189 -- -int(0) -int(0) --- Iteration 190 -- -int(0) -int(0) --- Iteration 191 -- -int(0) -int(0) --- Iteration 192 -- -int(0) -int(0) --- Iteration 193 -- -int(0) -int(0) --- Iteration 194 -- -int(0) -int(0) --- Iteration 195 -- -int(0) -int(0) --- Iteration 196 -- -int(0) -int(0) --- Iteration 197 -- -int(0) -int(0) --- Iteration 198 -- -int(0) -int(0) --- Iteration 199 -- -int(0) -int(0) --- Iteration 200 -- -int(0) -int(0) --- Iteration 201 -- -int(0) -int(0) --- Iteration 202 -- -int(0) -int(0) --- Iteration 203 -- -int(0) -int(0) --- Iteration 204 -- -int(0) -int(0) --- Iteration 205 -- -int(0) -int(0) --- Iteration 206 -- -int(0) -int(0) --- Iteration 207 -- -int(0) -int(0) --- Iteration 208 -- -int(0) -int(0) --- Iteration 209 -- -int(0) -int(0) --- Iteration 210 -- -int(0) -int(0) --- Iteration 211 -- -int(0) -int(0) --- Iteration 212 -- -int(0) -int(0) --- Iteration 213 -- -int(0) -int(0) --- Iteration 214 -- -int(0) -int(0) --- Iteration 215 -- -int(0) -int(0) --- Iteration 216 -- -int(0) -int(0) --- Iteration 217 -- -int(0) -int(0) --- Iteration 218 -- -int(0) -int(0) --- Iteration 219 -- -int(0) -int(0) --- Iteration 220 -- -int(0) -int(0) --- Iteration 221 -- -int(0) -int(0) --- Iteration 222 -- -int(0) -int(0) --- Iteration 223 -- -int(0) -int(0) --- Iteration 224 -- -int(0) -int(0) --- Iteration 225 -- -int(0) -int(0) --- Iteration 226 -- -int(0) -int(0) --- Iteration 227 -- -int(0) -int(0) --- Iteration 228 -- -int(0) -int(0) --- Iteration 229 -- -int(0) -int(0) --- Iteration 230 -- -int(0) -int(0) --- Iteration 231 -- -int(0) -int(0) --- Iteration 232 -- -int(0) -int(0) --- Iteration 233 -- -int(0) -int(0) --- Iteration 234 -- -int(0) -int(0) --- Iteration 235 -- -int(0) -int(0) --- Iteration 236 -- -int(0) -int(0) --- Iteration 237 -- -int(0) -int(0) --- Iteration 238 -- -int(0) -int(0) --- Iteration 239 -- -int(0) -int(0) --- Iteration 240 -- -int(0) -int(0) --- Iteration 241 -- -int(0) -int(0) --- Iteration 242 -- -int(0) -int(0) --- Iteration 243 -- -int(0) -int(0) --- Iteration 244 -- -int(0) -int(0) --- Iteration 245 -- -int(0) -int(0) --- Iteration 246 -- -int(0) -int(0) --- Iteration 247 -- -int(0) -int(0) --- Iteration 248 -- -int(0) -int(0) --- Iteration 249 -- -int(0) -int(0) --- Iteration 250 -- -int(0) -int(0) --- Iteration 251 -- -int(0) -int(0) --- Iteration 252 -- -int(0) -int(0) --- Iteration 253 -- -int(0) -int(0) --- Iteration 254 -- -int(0) -int(0) --- Iteration 255 -- -int(0) -int(0) --- Iteration 256 -- -int(0) -int(0) - --- Checking with out of character's range, given in binary format -- -int(1) - -*** Done *** diff --git a/ext/standard/tests/strings/strncmp_variation7.phpt b/ext/standard/tests/strings/strncmp_variation7.phpt index c962cbb6d3..1948a1e842 100644 --- a/ext/standard/tests/strings/strncmp_variation7.phpt +++ b/ext/standard/tests/strings/strncmp_variation7.phpt @@ -20,9 +20,5 @@ echo "*** Done ***\n"; ?> --EXPECTF-- *** Test strncmp() function: Checking with the null terminated strings *** -int(5) -*** Done *** ---UEXPECTF-- -*** Test strncmp() function: Checking with the null terminated strings *** int(1) *** Done *** diff --git a/ext/standard/tests/strings/strncmp_variation8.phpt b/ext/standard/tests/strings/strncmp_variation8.phpt index 3159ee0913..569307726e 100644 --- a/ext/standard/tests/strings/strncmp_variation8.phpt +++ b/ext/standard/tests/strings/strncmp_variation8.phpt @@ -45,29 +45,6 @@ int\(-[1-9][0-9]*\) int\(0\) int\(-[1-9][0-9]*\) -- Iteration 4 -- -int\(2\) -int\(-[1-9][0-9]*\) -int\([1-9][0-9]*\) -int\(0\) -\*\*\* Done \*\*\* ---UEXPECTREGEX-- -\*\*\* Test strncmp\(\) function: with different input strings \*\*\* --- Iteration [1-9][0-9]* -- -int\(0\) -int\(-[1-9][0-9]*\) -int\([1-9][0-9]*\) -int\(-[1-9][0-9]*\) --- Iteration 2 -- -int\([1-9][0-9]*\) -int\(0\) -int\([1-9][0-9]*\) -int\([1-9][0-9]*\) --- Iteration 3 -- -int\(-[1-9][0-9]*\) -int\(-[1-9][0-9]*\) -int\(0\) -int\(-[1-9][0-9]*\) --- Iteration 4 -- int\([1-9][0-9]*\) int\(-[1-9][0-9]*\) int\([1-9][0-9]*\) diff --git a/ext/standard/tests/strings/strncmp_variation9.phpt b/ext/standard/tests/strings/strncmp_variation9.phpt index fddc67271c..1c83e80f09 100644 --- a/ext/standard/tests/strings/strncmp_variation9.phpt +++ b/ext/standard/tests/strings/strncmp_variation9.phpt @@ -52,14 +52,7 @@ for($index1 = 0; $index1 < count($strings); $index1++) { } echo "*** Done ***\n"; ?> ---EXPECTF-- -*** Test strncmp() function: with different input strings *** -int(0) -int(0) -int(0) -int(0) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Test strncmp() function: with different input strings *** int(0) int(0) diff --git a/ext/standard/tests/strings/strpos.phpt b/ext/standard/tests/strings/strpos.phpt Binary files differindex 2ae50582a8..6d681f800d 100644 --- a/ext/standard/tests/strings/strpos.phpt +++ b/ext/standard/tests/strings/strpos.phpt diff --git a/ext/standard/tests/strings/strrchr.phpt b/ext/standard/tests/strings/strrchr.phpt index 2909eeab7d..94eaae7a58 100644 --- a/ext/standard/tests/strings/strrchr.phpt +++ b/ext/standard/tests/strings/strrchr.phpt @@ -12,15 +12,7 @@ var_dump(strrchr("test".chr(0)."string", "t")); echo "Done\n"; ?> ---EXPECTF-- -bool(false) -bool(false) -bool(false) -string(3) "abc" -string(5) " test" -string(5) "tring" -Done ---UEXPECTF-- +--EXPECT-- bool(false) bool(false) bool(false) diff --git a/ext/standard/tests/strings/strrchr_basic.phpt b/ext/standard/tests/strings/strrchr_basic.phpt index 58321ac7c5..0d8836c501 100644 --- a/ext/standard/tests/strings/strrchr_basic.phpt +++ b/ext/standard/tests/strings/strrchr_basic.phpt @@ -37,25 +37,7 @@ var_dump( strrchr("Hello, World", "ooo") ); var_dump( strrchr("Hello, World", "Zzzz") ); //non-existant needle in haystack echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing strrchr() function: basic functionality *** -string(12) "Hello, World" -string(12) "Hello, World" -string(12) "Hello, World" -string(12) "Hello, World" -bool(false) -bool(false) -string(5) "World" -string(5) "World" -string(7) ", World" -string(7) ", World" -string(12) "Hello, World" -string(12) "Hello, World" -string(4) "orld" -string(4) "orld" -bool(false) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing strrchr() function: basic functionality *** unicode(12) "Hello, World" unicode(12) "Hello, World" diff --git a/ext/standard/tests/strings/strrchr_error.phpt b/ext/standard/tests/strings/strrchr_error.phpt index 4f1e20b461..aa0adf4b85 100644 --- a/ext/standard/tests/strings/strrchr_error.phpt +++ b/ext/standard/tests/strings/strrchr_error.phpt @@ -38,18 +38,3 @@ NULL Warning: strrchr() expects exactly 2 parameters, 3 given in %s on line %d NULL *** Done *** ---UEXPECTF-- -*** Testing strrchr() function: error conditions *** - --- Testing strrchr() function with Zero arguments -- -Warning: strrchr() expects exactly 2 parameters, 0 given in %s on line %d -NULL - --- Testing strrchr() function with less than expected no. of arguments -- -Warning: strrchr() expects exactly 2 parameters, 1 given in %s on line %d -NULL - --- Testing strrchr() function with more than expected no. of arguments -- -Warning: strrchr() expects exactly 2 parameters, 3 given in %s on line %d -NULL -*** Done *** diff --git a/ext/standard/tests/strings/strrchr_variation1.phpt b/ext/standard/tests/strings/strrchr_variation1.phpt Binary files differindex 0bc2fce0a7..ecd2117585 100644 --- a/ext/standard/tests/strings/strrchr_variation1.phpt +++ b/ext/standard/tests/strings/strrchr_variation1.phpt diff --git a/ext/standard/tests/strings/strrchr_variation10.phpt b/ext/standard/tests/strings/strrchr_variation10.phpt index 0044f3b8cd..fd6494503b 100644 --- a/ext/standard/tests/strings/strrchr_variation10.phpt +++ b/ext/standard/tests/strings/strrchr_variation10.phpt @@ -138,63 +138,6 @@ bool(false) -- Iteration 3 -- bool(false) -- Iteration 4 -- -bool(false) --- Iteration 5 -- -bool(false) --- Iteration 6 -- -bool(false) --- Iteration 7 -- -bool(false) --- Iteration 8 -- -bool(false) --- Iteration 9 -- -bool(false) --- Iteration 10 -- -bool(false) --- Iteration 11 -- -bool(false) --- Iteration 12 -- -bool(false) --- Iteration 13 -- -bool(false) --- Iteration 14 -- -bool(false) --- Iteration 15 -- -bool(false) --- Iteration 16 -- -bool(false) --- Iteration 17 -- -bool(false) --- Iteration 18 -- -bool(false) --- Iteration 19 -- -bool(false) --- Iteration 20 -- -bool(false) --- Iteration 21 -- - -Notice: Object of class sample could not be converted to int in %s on line %d%d -bool(false) --- Iteration 22 -- -bool(false) --- Iteration 23 -- -bool(false) --- Iteration 24 -- -%s --- Iteration 25 -- -bool(false) --- Iteration 26 -- -bool(false) -*** Done *** ---UEXPECTF-- -*** Testing strrchr() function with unexpected inputs for needle *** --- Iteration 1 -- -bool(false) --- Iteration 2 -- -bool(false) --- Iteration 3 -- -bool(false) --- Iteration 4 -- Warning: Needle argument codepoint value out of range (0 - 0x10FFFF) in %s on line %d bool(false) diff --git a/ext/standard/tests/strings/strrchr_variation11.phpt b/ext/standard/tests/strings/strrchr_variation11.phpt index 91047b01f0..05e8d2f7a3 100644 --- a/ext/standard/tests/strings/strrchr_variation11.phpt +++ b/ext/standard/tests/strings/strrchr_variation11.phpt @@ -97,73 +97,6 @@ bool(false) -- Iteration 3 -- bool(false) -- Iteration 4 -- -bool(false) --- Iteration 5 -- -bool(false) --- Iteration 6 -- -bool(false) --- Iteration 7 -- -bool(false) --- Iteration 8 -- -bool(false) --- Iteration 9 -- -bool(false) --- Iteration 10 -- - -Notice: Array to string conversion in %s on line %d%d -bool(false) --- Iteration 11 -- - -Notice: Array to string conversion in %s on line %d%d -bool(false) --- Iteration 12 -- - -Notice: Array to string conversion in %s on line %d%d -bool(false) --- Iteration 13 -- - -Notice: Array to string conversion in %s on line %d%d -bool(false) --- Iteration 14 -- - -Notice: Array to string conversion in %s on line %d%d -bool(false) --- Iteration 15 -- -bool(false) --- Iteration 16 -- -bool(false) --- Iteration 17 -- -bool(false) --- Iteration 18 -- -bool(false) --- Iteration 19 -- - -Notice: Object of class sample could not be converted to int in %s on line %d%d -bool(false) --- Iteration 20 -- -bool(false) --- Iteration 21 -- -bool(false) --- Iteration 22 -- -bool(false) --- Iteration 23 -- -bool(false) --- Iteration 24 -- -%s --- Iteration 25 -- -bool(false) --- Iteration 26 -- -bool(false) -*** Done *** ---UEXPECTF-- -*** Testing strrchr() function: with unexpected inputs for haystack and needle *** --- Iteration 1 -- -bool(false) --- Iteration 2 -- -bool(false) --- Iteration 3 -- -bool(false) --- Iteration 4 -- Warning: Needle argument codepoint value out of range (0 - 0x10FFFF) in %s on line %d bool(false) diff --git a/ext/standard/tests/strings/strrchr_variation12.phpt b/ext/standard/tests/strings/strrchr_variation12.phpt Binary files differindex a84658ce30..898e3fe4d1 100644 --- a/ext/standard/tests/strings/strrchr_variation12.phpt +++ b/ext/standard/tests/strings/strrchr_variation12.phpt diff --git a/ext/standard/tests/strings/strrchr_variation2.phpt b/ext/standard/tests/strings/strrchr_variation2.phpt index 2b558659e1..b30b0800b1 100644 --- a/ext/standard/tests/strings/strrchr_variation2.phpt +++ b/ext/standard/tests/strings/strrchr_variation2.phpt @@ -81,144 +81,7 @@ for($index=0; $index<count($needle); $index++) { } echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing strrchr() function: with various single quoted strings *** --- Iteration 1 -- -string(22) "lo123456he \x234 \101 " - --- Iteration 2 -- -bool(false) - --- Iteration 3 -- -string(63) "Hello,\t\n\0\n $&!#%\o,()*+-./:;<=>?@hello123456he \x234 \101 " - --- Iteration 4 -- -string(14) "he \x234 \101 " - --- Iteration 5 -- -string(5) "\101 " - --- Iteration 6 -- -string(5) "\101 " - --- Iteration 7 -- -string(1) " " - --- Iteration 8 -- -string(5) "\101 " - --- Iteration 9 -- -string(5) "\101 " - --- Iteration 10 -- -bool(false) - --- Iteration 11 -- -string(5) "\101 " - --- Iteration 12 -- -bool(false) - --- Iteration 13 -- -bool(false) - --- Iteration 14 -- -bool(false) - --- Iteration 15 -- -bool(false) - --- Iteration 16 -- -bool(false) - --- Iteration 17 -- -string(1) " " - --- Iteration 18 -- -string(47) "$&!#%\o,()*+-./:;<=>?@hello123456he \x234 \101 " - --- Iteration 19 -- -string(1) " " - --- Iteration 20 -- -string(46) "&!#%\o,()*+-./:;<=>?@hello123456he \x234 \101 " - --- Iteration 21 -- -string(45) "!#%\o,()*+-./:;<=>?@hello123456he \x234 \101 " - --- Iteration 22 -- -string(43) "%\o,()*+-./:;<=>?@hello123456he \x234 \101 " - --- Iteration 23 -- -string(5) "\101 " - --- Iteration 24 -- -string(39) "()*+-./:;<=>?@hello123456he \x234 \101 " - --- Iteration 25 -- -string(37) "*+-./:;<=>?@hello123456he \x234 \101 " - --- Iteration 26 -- -string(36) "+-./:;<=>?@hello123456he \x234 \101 " - --- Iteration 27 -- -string(35) "-./:;<=>?@hello123456he \x234 \101 " - --- Iteration 28 -- -string(34) "./:;<=>?@hello123456he \x234 \101 " - --- Iteration 29 -- -string(34) "./:;<=>?@hello123456he \x234 \101 " - --- Iteration 30 -- -string(32) ":;<=>?@hello123456he \x234 \101 " - --- Iteration 31 -- -string(31) ";<=>?@hello123456he \x234 \101 " - --- Iteration 32 -- -string(30) "<=>?@hello123456he \x234 \101 " - --- Iteration 33 -- -string(28) ">?@hello123456he \x234 \101 " - --- Iteration 34 -- -string(29) "=>?@hello123456he \x234 \101 " - --- Iteration 35 -- -string(27) "?@hello123456he \x234 \101 " - --- Iteration 36 -- -string(26) "@hello123456he \x234 \101 " - --- Iteration 37 -- -string(26) "@hello123456he \x234 \101 " - --- Iteration 38 -- -string(2) "1 " - --- Iteration 39 -- -string(5) "\101 " - --- Iteration 40 -- -string(44) "#%\o,()*+-./:;<=>?@hello123456he \x234 \101 " - --- Iteration 41 -- -string(5) "\101 " - --- Iteration 42 -- -bool(false) - --- Iteration 43 -- -string(7) "4 \101 " - --- Iteration 44 -- -string(37) "*+-./:;<=>?@hello123456he \x234 \101 " - --- Iteration 45 -- -string(63) "Hello,\t\n\0\n $&!#%\o,()*+-./:;<=>?@hello123456he \x234 \101 " -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing strrchr() function: with various single quoted strings *** -- Iteration 1 -- unicode(22) "lo123456he \x234 \101 " diff --git a/ext/standard/tests/strings/strrchr_variation3.phpt b/ext/standard/tests/strings/strrchr_variation3.phpt index 59e7345e7b..e183957047 100644 --- a/ext/standard/tests/strings/strrchr_variation3.phpt +++ b/ext/standard/tests/strings/strrchr_variation3.phpt @@ -32,16 +32,7 @@ foreach($needles as $needle) { echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing strrchr() function: with heredoc strings *** -string(19) "ing heredoc syntax." -bool(false) -string(8) " syntax." -string(63) "Example of string -spanning multiple lines -using heredoc syntax." -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing strrchr() function: with heredoc strings *** unicode(19) "ing heredoc syntax." bool(false) diff --git a/ext/standard/tests/strings/strrchr_variation4.phpt b/ext/standard/tests/strings/strrchr_variation4.phpt index e75105ea57..75d0697626 100644 --- a/ext/standard/tests/strings/strrchr_variation4.phpt +++ b/ext/standard/tests/strings/strrchr_variation4.phpt @@ -38,25 +38,7 @@ foreach($needles as $needle) { } echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing strrchr() function: with heredoc strings *** -string(24) "!$#$^^&*(special) -chars." -string(31) "_")!#@@!$#$^^&*(special) -chars." -string(16) "(special) -chars." -string(21) "$^^&*(special) -chars." -string(16) "(special) -chars." -string(19) "^&*(special) -chars." -string(76) "Example of heredoc string contains -$#%^*&*_("_")!#@@!$#$^^&*(special) -chars." -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing strrchr() function: with heredoc strings *** unicode(24) "!$#$^^&*(special) chars." diff --git a/ext/standard/tests/strings/strrchr_variation5.phpt b/ext/standard/tests/strings/strrchr_variation5.phpt index 1cf8ec7669..bc2f0f3e87 100644 --- a/ext/standard/tests/strings/strrchr_variation5.phpt +++ b/ext/standard/tests/strings/strrchr_variation5.phpt @@ -37,32 +37,7 @@ foreach($needles as $needle) { echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing strrchr() function: with heredoc strings *** -string(33) " st - -ch - using -\escape \seque -ce" -string(9) "\seque -ce" -string(25) " - using -\escape \seque -ce" -string(9) "\seque -ce" -string(3) " -ce" -string(33) " st - -ch - using -\escape \seque -ce" -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing strrchr() function: with heredoc strings *** unicode(33) " st diff --git a/ext/standard/tests/strings/strrchr_variation6.phpt b/ext/standard/tests/strings/strrchr_variation6.phpt index 34b411a2ae..baa8a13e28 100644 --- a/ext/standard/tests/strings/strrchr_variation6.phpt +++ b/ext/standard/tests/strings/strrchr_variation6.phpt @@ -37,19 +37,7 @@ foreach($needles as $needle) { } echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing strrchr() function: with heredoc strings *** -string(3) "te'" -string(32) "" -'things' 'in' 'single' 'quote'" -bool(false) -string(14) "ingle' 'quote'" -string(6) "quote'" -string(6) "quote'" -string(32) "" -'things' 'in' 'single' 'quote'" -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing strrchr() function: with heredoc strings *** unicode(3) "te'" unicode(32) "" diff --git a/ext/standard/tests/strings/strrchr_variation7.phpt b/ext/standard/tests/strings/strrchr_variation7.phpt index bc8ed4fcba..7952772bb5 100644 --- a/ext/standard/tests/strings/strrchr_variation7.phpt +++ b/ext/standard/tests/strings/strrchr_variation7.phpt @@ -33,18 +33,7 @@ foreach($needles as $needle) { } echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing strrchr() function: with heredoc strings *** -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing strrchr() function: with heredoc strings *** bool(false) bool(false) diff --git a/ext/standard/tests/strings/strrchr_variation8.phpt b/ext/standard/tests/strings/strrchr_variation8.phpt index 4360b939ff..19b00210d5 100644 --- a/ext/standard/tests/strings/strrchr_variation8.phpt +++ b/ext/standard/tests/strings/strrchr_variation8.phpt @@ -29,15 +29,7 @@ foreach($needles as $needle) { } echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing strrchr() function: with heredoc strings *** -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing strrchr() function: with heredoc strings *** bool(false) bool(false) diff --git a/ext/standard/tests/strings/strrchr_variation9.phpt b/ext/standard/tests/strings/strrchr_variation9.phpt index 5b9bf801f4..cd3ad6060b 100644 --- a/ext/standard/tests/strings/strrchr_variation9.phpt +++ b/ext/standard/tests/strings/strrchr_variation9.phpt @@ -132,71 +132,6 @@ echo "*** Done ***"; --EXPECTF-- *** Testing strrchr() function: with unexpected inputs for haystack *** -- Iteration 1 -- -string(1) "0" --- Iteration 2 -- -string(1) "1" --- Iteration 3 -- -string(4) "2345" --- Iteration 4 -- -string(5) "-2345" --- Iteration 5 -- -string(4) "10.5" --- Iteration 6 -- -string(5) "-10.5" --- Iteration 7 -- -string(12) "105000000000" --- Iteration 8 -- -string(7) "1.06E-9" --- Iteration 9 -- -string(2) ".5" --- Iteration 10 -- - -Notice: Array to string conversion in %s on line %d%d -string(2) "ay" --- Iteration 11 -- - -Notice: Array to string conversion in %s on line %d%d -string(2) "ay" --- Iteration 12 -- - -Notice: Array to string conversion in %s on line %d%d -string(3) "ray" --- Iteration 13 -- - -Notice: Array to string conversion in %s on line %d%d -string(1) "y" --- Iteration 14 -- - -Notice: Array to string conversion in %s on line %d%d -string(2) "ay" --- Iteration 15 -- -bool(false) --- Iteration 16 -- -bool(false) --- Iteration 17 -- -bool(false) --- Iteration 18 -- -bool(false) --- Iteration 19 -- -bool(false) --- Iteration 20 -- -bool(false) --- Iteration 21 -- -string(6) "object" --- Iteration 22 -- -bool(false) --- Iteration 23 -- -bool(false) --- Iteration 24 -- -string(%d) "Resource id #5" --- Iteration 25 -- -bool(false) --- Iteration 26 -- -bool(false) -*** Done *** ---UEXPECTF-- -*** Testing strrchr() function: with unexpected inputs for haystack *** --- Iteration 1 -- unicode(1) "0" -- Iteration 2 -- unicode(1) "1" diff --git a/ext/standard/tests/strings/strrev.phpt b/ext/standard/tests/strings/strrev.phpt index d145c3e706..b9a734b782 100644 --- a/ext/standard/tests/strings/strrev.phpt +++ b/ext/standard/tests/strings/strrev.phpt @@ -14,10 +14,6 @@ strrev() function var_dump(strrev("")); ?> --EXPECT-- -string(32) "ec6df70f2569891eae50321a9179eb82" -string(0) "" -string(0) "" ---UEXPECT-- unicode(32) "ec6df70f2569891eae50321a9179eb82" unicode(0) "" unicode(0) "" diff --git a/ext/standard/tests/strings/strrev_basic.phpt b/ext/standard/tests/strings/strrev_basic.phpt index f358af8fa5..c177740077 100644 --- a/ext/standard/tests/strings/strrev_basic.phpt +++ b/ext/standard/tests/strings/strrev_basic.phpt @@ -32,20 +32,7 @@ var_dump( strrev('Hello, World\n') ); var_dump( strrev($heredoc) ); echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing strrev() : basic functionality *** -string(12) "dlroW ,olleH" -string(12) "dlroW ,olleH" -string(1) "H" -string(1) "H" -string(6) "HHHHHH" -string(6) "HhhhhH" -string(13) " -dlroW ,olleH" -string(14) "n\dlroW ,olleH" -string(12) "dlrow ,olleH" -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing strrev() : basic functionality *** unicode(12) "dlroW ,olleH" unicode(12) "dlroW ,olleH" diff --git a/ext/standard/tests/strings/strrev_error.phpt b/ext/standard/tests/strings/strrev_error.phpt index ad165d36b3..ef64e80afd 100644 --- a/ext/standard/tests/strings/strrev_error.phpt +++ b/ext/standard/tests/strings/strrev_error.phpt @@ -25,13 +25,3 @@ NULL Warning: strrev() expects exactly 1 parameter, 2 given in %s on line %d NULL *** Done *** ---UEXPECTF-- -*** Testing strrev() : error conditions *** --- Testing strrev() function with Zero arguments -- -Warning: strrev() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing strrev() function with more than expected no. of arguments -- -Warning: strrev() expects exactly 1 parameter, 2 given in %s on line %d -NULL -*** Done *** diff --git a/ext/standard/tests/strings/strrev_variation1.phpt b/ext/standard/tests/strings/strrev_variation1.phpt Binary files differindex 0e860480da..f631c2861e 100644 --- a/ext/standard/tests/strings/strrev_variation1.phpt +++ b/ext/standard/tests/strings/strrev_variation1.phpt diff --git a/ext/standard/tests/strings/strrev_variation2.phpt b/ext/standard/tests/strings/strrev_variation2.phpt Binary files differindex df3c245343..eb05a958a0 100644 --- a/ext/standard/tests/strings/strrev_variation2.phpt +++ b/ext/standard/tests/strings/strrev_variation2.phpt diff --git a/ext/standard/tests/strings/strrev_variation3.phpt b/ext/standard/tests/strings/strrev_variation3.phpt Binary files differindex 23caac19de..f8164e4f84 100644 --- a/ext/standard/tests/strings/strrev_variation3.phpt +++ b/ext/standard/tests/strings/strrev_variation3.phpt diff --git a/ext/standard/tests/strings/strrev_variation4.phpt b/ext/standard/tests/strings/strrev_variation4.phpt index 3a8a7a9f63..74130310bd 100644 --- a/ext/standard/tests/strings/strrev_variation4.phpt +++ b/ext/standard/tests/strings/strrev_variation4.phpt @@ -91,99 +91,6 @@ echo "*** Done ***"; *** Testing strrev() : unexpected inputs for 'str' *** -- Iterator 1 -- -string(1) "0" - --- Iterator 2 -- -string(1) "1" - --- Iterator 3 -- -string(5) "54321" - --- Iterator 4 -- -string(5) "5432-" - --- Iterator 5 -- -string(4) "5.01" - --- Iterator 6 -- -string(5) "5.01-" - --- Iterator 7 -- -string(12) "000000000501" - --- Iterator 8 -- -string(7) "9-E60.1" - --- Iterator 9 -- -string(3) "5.0" - --- Iterator 10 -- - -Warning: strrev() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iterator 11 -- - -Warning: strrev() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iterator 12 -- - -Warning: strrev() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iterator 13 -- - -Warning: strrev() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iterator 14 -- - -Warning: strrev() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iterator 15 -- -string(0) "" - --- Iterator 16 -- -string(0) "" - --- Iterator 17 -- -string(1) "1" - --- Iterator 18 -- -string(0) "" - --- Iterator 19 -- -string(1) "1" - --- Iterator 20 -- -string(0) "" - --- Iterator 21 -- -string(0) "" - --- Iterator 22 -- -string(0) "" - --- Iterator 23 -- -string(6) "tcejbo" - --- Iterator 24 -- - -Warning: strrev() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL - --- Iterator 25 -- -string(0) "" - --- Iterator 26 -- -string(0) "" -*** Done *** ---UEXPECTF-- -*** Testing strrev() : unexpected inputs for 'str' *** - --- Iterator 1 -- unicode(1) "0" -- Iterator 2 -- diff --git a/ext/standard/tests/strings/strripos.phpt b/ext/standard/tests/strings/strripos.phpt index eb4e70bd35..fa15e2fcac 100644 --- a/ext/standard/tests/strings/strripos.phpt +++ b/ext/standard/tests/strings/strripos.phpt @@ -30,4 +30,3 @@ bool(false) bool(false) bool(false) int(1) - diff --git a/ext/standard/tests/strings/strripos_offset.phpt b/ext/standard/tests/strings/strripos_offset.phpt index e3d44ae7d5..14cfccec96 100644 --- a/ext/standard/tests/strings/strripos_offset.phpt +++ b/ext/standard/tests/strings/strripos_offset.phpt @@ -15,7 +15,7 @@ var_dump(strripos(1024, "te", -PHP_INT_MAX-1)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Notice: strripos(): Offset is greater than the length of haystack string in %s on line %d bool(false) diff --git a/ext/standard/tests/strings/strrpos_basic1.phpt b/ext/standard/tests/strings/strrpos_basic1.phpt index 11b083b4d4..9da3fb636a 100644 --- a/ext/standard/tests/strings/strrpos_basic1.phpt +++ b/ext/standard/tests/strings/strrpos_basic1.phpt @@ -34,22 +34,7 @@ var_dump( strrpos((unicode)"Hello, World", ",") ); echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing strrpos() function: basic functionality *** --- With default arguments -- -int(0) -bool(false) -int(7) -bool(false) -int(8) -int(5) -int(0) -int(0) -int(0) -int(8) -int(5) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing strrpos() function: basic functionality *** -- With default arguments -- int(0) diff --git a/ext/standard/tests/strings/strrpos_basic2.phpt b/ext/standard/tests/strings/strrpos_basic2.phpt index 49f2177d04..ce1bcb7db4 100644 --- a/ext/standard/tests/strings/strrpos_basic2.phpt +++ b/ext/standard/tests/strings/strrpos_basic2.phpt @@ -44,23 +44,6 @@ int(0) int(0) bool(false) int(0) -bool(false) -int(8) -int(8) -bool(false) -bool(false) -*** Done *** ---UEXPECTF-- -*** Testing strrpos() function: basic functionality *** --- With all arguments -- -int(0) -bool(false) -int(7) -int(7) -int(0) -int(0) -bool(false) -int(0) Notice: strrpos(): Offset is greater than the length of haystack string in %s on line %d bool(false) diff --git a/ext/standard/tests/strings/strrpos_error.phpt b/ext/standard/tests/strings/strrpos_error.phpt index 2b753c54c2..3900ceaa5d 100644 --- a/ext/standard/tests/strings/strrpos_error.phpt +++ b/ext/standard/tests/strings/strrpos_error.phpt @@ -32,17 +32,3 @@ bool(false) Warning: strrpos() expects at most 3 parameters, 4 given in %s on line %d bool(false) *** Done *** ---UEXPECTF-- -*** Testing strrpos() function: error conditions *** --- With Zero arguments -- -Warning: strrpos() expects at least 2 parameters, 0 given in %s on line %d -bool(false) - --- With less than expected number of arguments -- -Warning: strrpos() expects at least 2 parameters, 1 given in %s on line %d -bool(false) - --- With more than expected number of arguments -- -Warning: strrpos() expects at most 3 parameters, 4 given in %s on line %d -bool(false) -*** Done *** diff --git a/ext/standard/tests/strings/strrpos_variation1.phpt b/ext/standard/tests/strings/strrpos_variation1.phpt index bfd7d9d843..2e89d7323a 100644 --- a/ext/standard/tests/strings/strrpos_variation1.phpt +++ b/ext/standard/tests/strings/strrpos_variation1.phpt @@ -178,114 +178,6 @@ bool(false) bool(false) -- Iteration 35 -- int(0) -bool(false) -*** Done *** ---UEXPECTF-- -*** Testing strrpos() function: with double quoted strings *** --- Iteration 1 -- -int(28) -int(28) --- Iteration 2 -- -bool(false) -bool(false) --- Iteration 3 -- -bool(false) -bool(false) --- Iteration 4 -- -bool(false) -bool(false) --- Iteration 5 -- -int(6) -int(6) --- Iteration 6 -- -bool(false) -bool(false) --- Iteration 7 -- -bool(false) -bool(false) --- Iteration 8 -- -int(9) -int(9) --- Iteration 9 -- -bool(false) -bool(false) --- Iteration 10 -- -int(9) -int(9) --- Iteration 11 -- -int(8) -bool(false) --- Iteration 12 -- -int(8) -bool(false) --- Iteration 13 -- -int(8) -bool(false) --- Iteration 14 -- -int(8) -bool(false) --- Iteration 15 -- -int(8) -bool(false) --- Iteration 16 -- -bool(false) -bool(false) --- Iteration 17 -- -int(43) -int(43) --- Iteration 18 -- -int(12) -bool(false) --- Iteration 19 -- -int(11) -bool(false) --- Iteration 20 -- -int(13) -bool(false) --- Iteration 21 -- -int(14) -bool(false) --- Iteration 22 -- -int(17) -bool(false) --- Iteration 23 -- -int(20) -bool(false) --- Iteration 24 -- -int(22) -bool(false) --- Iteration 25 -- -int(21) -bool(false) --- Iteration 26 -- -int(23) -bool(false) --- Iteration 27 -- -int(24) -bool(false) --- Iteration 28 -- -bool(false) -bool(false) --- Iteration 29 -- -int(30) -int(30) --- Iteration 30 -- -int(39) -int(39) --- Iteration 31 -- -int(39) -int(39) --- Iteration 32 -- -int(42) -int(42) --- Iteration 33 -- -int(42) -int(42) --- Iteration 34 -- -bool(false) -bool(false) --- Iteration 35 -- -int(0) Notice: strrpos(): Offset is greater than the length of haystack string in %s on line %d bool(false) diff --git a/ext/standard/tests/strings/strrpos_variation10.phpt b/ext/standard/tests/strings/strrpos_variation10.phpt index 59689b709f..5c6d3542ab 100644 --- a/ext/standard/tests/strings/strrpos_variation10.phpt +++ b/ext/standard/tests/strings/strrpos_variation10.phpt @@ -100,63 +100,6 @@ bool(false) -- Iteration 3 -- bool(false) -- Iteration 4 -- -bool(false) --- Iteration 5 -- -bool(false) --- Iteration 6 -- -bool(false) --- Iteration 7 -- -bool(false) --- Iteration 8 -- -bool(false) --- Iteration 9 -- -bool(false) --- Iteration 10 -- -bool(false) --- Iteration 11 -- -bool(false) --- Iteration 12 -- -bool(false) --- Iteration 13 -- -bool(false) --- Iteration 14 -- -bool(false) --- Iteration 15 -- -bool(false) --- Iteration 16 -- -bool(false) --- Iteration 17 -- -bool(false) --- Iteration 18 -- -bool(false) --- Iteration 19 -- - -Notice: Object of class sample could not be converted to int in %s on line %d%d -bool(false) --- Iteration 20 -- -bool(false) --- Iteration 21 -- -bool(false) --- Iteration 22 -- -bool(false) --- Iteration 23 -- -bool(false) --- Iteration 24 -- -%s --- Iteration 25 -- -bool(false) --- Iteration 26 -- -bool(false) -*** Done *** ---UEXPECTF-- -*** Testing strrpos() function with unexpected values for needle *** --- Iteration 1 -- -bool(false) --- Iteration 2 -- -bool(false) --- Iteration 3 -- -bool(false) --- Iteration 4 -- Warning: Needle argument codepoint value out of range (0 - 0x10FFFF) in %s on line %d bool(false) diff --git a/ext/standard/tests/strings/strrpos_variation11.phpt b/ext/standard/tests/strings/strrpos_variation11.phpt index 698c1dbc5c..6e84c7da91 100644 --- a/ext/standard/tests/strings/strrpos_variation11.phpt +++ b/ext/standard/tests/strings/strrpos_variation11.phpt @@ -92,111 +92,6 @@ echo "*** Done ***"; *** Testing strrpos() function with unexpected values for haystack and needle *** -- Iteration 1 -- bool(false) -bool(false) --- Iteration 2 -- -bool(false) -bool(false) --- Iteration 3 -- -bool(false) -bool(false) --- Iteration 4 -- -bool(false) -bool(false) --- Iteration 5 -- -bool(false) -bool(false) --- Iteration 6 -- -bool(false) -bool(false) --- Iteration 7 -- -bool(false) -bool(false) --- Iteration 8 -- -bool(false) -bool(false) --- Iteration 9 -- -bool(false) -bool(false) --- Iteration 10 -- - -Notice: Array to string conversion in %s on line %d%d -bool(false) - -Notice: Array to string conversion in %s on line %d%d -bool(false) --- Iteration 11 -- - -Notice: Array to string conversion in %s on line %d%d -bool(false) - -Notice: Array to string conversion in %s on line %d%d -bool(false) --- Iteration 12 -- - -Notice: Array to string conversion in %s on line %d%d -bool(false) - -Notice: Array to string conversion in %s on line %d%d -bool(false) --- Iteration 13 -- - -Notice: Array to string conversion in %s on line %d%d -bool(false) - -Notice: Array to string conversion in %s on line %d%d -bool(false) --- Iteration 14 -- - -Notice: Array to string conversion in %s on line %d%d -bool(false) - -Notice: Array to string conversion in %s on line %d%d -bool(false) --- Iteration 15 -- -bool(false) -bool(false) --- Iteration 16 -- -bool(false) -bool(false) --- Iteration 17 -- -bool(false) -bool(false) --- Iteration 18 -- -bool(false) -bool(false) --- Iteration 19 -- - -Notice: Object of class sample could not be converted to int in %s on line %d%d -bool(false) - -Notice: Object of class sample could not be converted to int in %s on line %d%d -bool(false) --- Iteration 20 -- -bool(false) -bool(false) --- Iteration 21 -- -bool(false) -bool(false) --- Iteration 22 -- -bool(false) -bool(false) --- Iteration 23 -- -bool(false) -bool(false) --- Iteration 24 -- -bool(false) -bool(false) --- Iteration 25 -- -bool(false) -bool(false) --- Iteration 26 -- -bool(false) -bool(false) -*** Done *** ---UEXPECTF-- -*** Testing strrpos() function with unexpected values for haystack and needle *** --- Iteration 1 -- -bool(false) Notice: strrpos(): Offset is greater than the length of haystack string in %s on line %d bool(false) diff --git a/ext/standard/tests/strings/strrpos_variation12.phpt b/ext/standard/tests/strings/strrpos_variation12.phpt index e4ef82d84a..187e3373f3 100644 --- a/ext/standard/tests/strings/strrpos_variation12.phpt +++ b/ext/standard/tests/strings/strrpos_variation12.phpt @@ -37,23 +37,6 @@ bool(false) int(11) int(11) int(2) -bool(false) -int(5) -int(5) -int(0) -bool(false) -int(5) -bool(false) -*** Done *** ---UEXPECTF-- -*** Test strrpos() function: binary safe *** -int(5) -int(5) -int(0) -bool(false) -int(11) -int(11) -int(2) Notice: strrpos(): Offset is greater than the length of haystack string in %s on line %d bool(false) diff --git a/ext/standard/tests/strings/strrpos_variation13.phpt b/ext/standard/tests/strings/strrpos_variation13.phpt index 3e99d1d65d..d168e7a2e9 100644 --- a/ext/standard/tests/strings/strrpos_variation13.phpt +++ b/ext/standard/tests/strings/strrpos_variation13.phpt @@ -39,23 +39,6 @@ bool(false) int(12) int(12) bool(false) -bool(false) -bool(false) -bool(false) -int(0) -bool(false) -int(1) -bool(false) -*** Done *** ---UEXPECTF-- -*** Test strrpos() function: binary safe *** -int(1) -int(1) -int(0) -bool(false) -int(12) -int(12) -bool(false) Notice: strrpos(): Offset is greater than the length of haystack string in %s on line %d bool(false) diff --git a/ext/standard/tests/strings/strrpos_variation14.phpt b/ext/standard/tests/strings/strrpos_variation14.phpt index 7c1e1e5369..8edddbf2bb 100644 --- a/ext/standard/tests/strings/strrpos_variation14.phpt +++ b/ext/standard/tests/strings/strrpos_variation14.phpt @@ -94,75 +94,6 @@ Notice: strrpos(): Offset is greater than the length of haystack string in %s on bool(false) -- Iteration 3 -- -Notice: strrpos(): Offset is greater than the length of haystack string in %s on line %d%d -bool(false) --- Iteration 4 -- -int(6) --- Iteration 5 -- -int(6) --- Iteration 6 -- - -Warning: strrpos() expects parameter 3 to be long, array given in %s on line %d%d -bool(false) --- Iteration 7 -- - -Warning: strrpos() expects parameter 3 to be long, array given in %s on line %d%d -bool(false) --- Iteration 8 -- - -Warning: strrpos() expects parameter 3 to be long, array given in %s on line %d%d -bool(false) --- Iteration 9 -- - -Warning: strrpos() expects parameter 3 to be long, array given in %s on line %d%d -bool(false) --- Iteration 10 -- - -Warning: strrpos() expects parameter 3 to be long, array given in %s on line %d%d -bool(false) --- Iteration 11 -- -int(6) --- Iteration 12 -- -int(6) --- Iteration 13 -- -int(6) --- Iteration 14 -- -int(6) --- Iteration 15 -- - -Warning: strrpos() expects parameter 3 to be long, object given in %s on line %d%d -bool(false) --- Iteration 16 -- - -Warning: strrpos() expects parameter 3 to be long, string given in %s on line %d%d -bool(false) --- Iteration 17 -- - -Warning: strrpos() expects parameter 3 to be long, string given in %s on line %d%d -bool(false) --- Iteration 18 -- -int(6) --- Iteration 19 -- -int(6) --- Iteration 20 -- - -Warning: strrpos() expects parameter 3 to be long, resource given in %s on line %d%d -bool(false) --- Iteration 21 -- -int(6) --- Iteration 22 -- -int(6) -*** Done *** ---UEXPECTF-- -*** Testing strrpos() function: with unexpected values for offset *** --- Iteration 1 -- -int(6) --- Iteration 2 -- - -Notice: strrpos(): Offset is greater than the length of haystack string in %s on line %d -bool(false) --- Iteration 3 -- - Notice: strrpos(): Offset is greater than the length of haystack string in %s on line %d bool(false) -- Iteration 4 -- diff --git a/ext/standard/tests/strings/strrpos_variation15.phpt b/ext/standard/tests/strings/strrpos_variation15.phpt index e07610b84d..72236e5d24 100644 --- a/ext/standard/tests/strings/strrpos_variation15.phpt +++ b/ext/standard/tests/strings/strrpos_variation15.phpt @@ -91,89 +91,6 @@ echo "*** Done ***"; -- Iteration 1 -- bool(false) -- Iteration 2 -- -bool(false) --- Iteration 3 -- - -Notice: strrpos(): Offset is greater than the length of haystack string in %s on line %d%d -bool(false) --- Iteration 4 -- - -Notice: strrpos(): Offset is greater than the length of haystack string in %s on line %d%d -bool(false) --- Iteration 5 -- - -Notice: strrpos(): Offset is greater than the length of haystack string in %s on line %d%d -bool(false) --- Iteration 6 -- - -Notice: strrpos(): Offset is greater than the length of haystack string in %s on line %d%d -bool(false) --- Iteration 7 -- - -Notice: strrpos(): Offset is greater than the length of haystack string in %s on line %d%d -bool(false) --- Iteration 8 -- -bool(false) --- Iteration 9 -- -bool(false) --- Iteration 10 -- - -Warning: strrpos() expects parameter 3 to be long, array given in %s on line %d%d -bool(false) --- Iteration 11 -- - -Warning: strrpos() expects parameter 3 to be long, array given in %s on line %d%d -bool(false) --- Iteration 12 -- - -Warning: strrpos() expects parameter 3 to be long, array given in %s on line %d%d -bool(false) --- Iteration 13 -- - -Warning: strrpos() expects parameter 3 to be long, array given in %s on line %d%d -bool(false) --- Iteration 14 -- - -Warning: strrpos() expects parameter 3 to be long, array given in %s on line %d%d -bool(false) --- Iteration 15 -- -bool(false) --- Iteration 16 -- -bool(false) --- Iteration 17 -- -bool(false) --- Iteration 18 -- -bool(false) --- Iteration 19 -- - -Warning: strrpos() expects parameter 3 to be long, object given in %s on line %d%d -bool(false) --- Iteration 20 -- - -Warning: strrpos() expects parameter 3 to be long, string given in %s on line %d%d -bool(false) --- Iteration 21 -- - -Warning: strrpos() expects parameter 3 to be long, string given in %s on line %d%d -bool(false) --- Iteration 22 -- -bool(false) --- Iteration 23 -- -bool(false) --- Iteration 24 -- - -Warning: strrpos() expects parameter 3 to be long, resource given in %s on line %d%d -bool(false) --- Iteration 25 -- -bool(false) --- Iteration 26 -- -bool(false) -*** Done *** ---UEXPECTF-- -*** Testing strrpos() function: with unexpected values for haystack, needle & offset *** --- Iteration 1 -- -bool(false) --- Iteration 2 -- Notice: strrpos(): Offset is greater than the length of haystack string in %s on line %d bool(false) diff --git a/ext/standard/tests/strings/strrpos_variation2.phpt b/ext/standard/tests/strings/strrpos_variation2.phpt index db19f8f4d7..06322d89b7 100644 --- a/ext/standard/tests/strings/strrpos_variation2.phpt +++ b/ext/standard/tests/strings/strrpos_variation2.phpt @@ -182,117 +182,6 @@ int(23) bool(false) -- Iteration 36 -- int(0) -bool(false) -*** Done *** ---UEXPECTF-- -*** Testing strrpos() function: with single quoted strings *** --- Iteration 1 -- -int(32) -int(32) --- Iteration 2 -- -bool(false) -bool(false) --- Iteration 3 -- -bool(false) -bool(false) --- Iteration 4 -- -bool(false) -bool(false) --- Iteration 5 -- -int(6) -int(6) --- Iteration 6 -- -bool(false) -bool(false) --- Iteration 7 -- -bool(false) -bool(false) --- Iteration 8 -- -int(12) -int(12) --- Iteration 9 -- -bool(false) -bool(false) --- Iteration 10 -- -bool(false) -bool(false) --- Iteration 11 -- -int(10) -int(10) --- Iteration 12 -- -bool(false) -bool(false) --- Iteration 13 -- -bool(false) -bool(false) --- Iteration 14 -- -bool(false) -bool(false) --- Iteration 15 -- -bool(false) -bool(false) --- Iteration 16 -- -bool(false) -bool(false) --- Iteration 17 -- -int(53) -int(53) --- Iteration 18 -- -int(16) -bool(false) --- Iteration 19 -- -int(15) -bool(false) --- Iteration 20 -- -int(17) -bool(false) --- Iteration 21 -- -int(18) -bool(false) --- Iteration 22 -- -int(21) -int(21) --- Iteration 23 -- -int(24) -int(24) --- Iteration 24 -- -int(26) -int(26) --- Iteration 25 -- -int(25) -int(25) --- Iteration 26 -- -int(27) -int(27) --- Iteration 27 -- -int(28) -int(28) --- Iteration 28 -- -bool(false) -bool(false) --- Iteration 29 -- -int(34) -int(34) --- Iteration 30 -- -int(43) -int(43) --- Iteration 31 -- -int(19) -bool(false) --- Iteration 32 -- -int(49) -int(49) --- Iteration 33 -- -bool(false) -bool(false) --- Iteration 34 -- -bool(false) -bool(false) --- Iteration 35 -- -int(23) -bool(false) --- Iteration 36 -- -int(0) Notice: strrpos(): Offset is greater than the length of haystack string in %s on line %d bool(false) diff --git a/ext/standard/tests/strings/strrpos_variation3.phpt b/ext/standard/tests/strings/strrpos_variation3.phpt index 99fa30af39..286e5f6d7f 100644 --- a/ext/standard/tests/strings/strrpos_variation3.phpt +++ b/ext/standard/tests/strings/strrpos_variation3.phpt @@ -26,16 +26,7 @@ var_dump( strrpos($multi_line_str, " ") ); echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing strrpos() function: with heredoc strings *** --- With heredoc string containing multi lines -- -int(44) -int(44) -int(44) -bool(false) -int(55) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing strrpos() function: with heredoc strings *** -- With heredoc string containing multi lines -- int(44) diff --git a/ext/standard/tests/strings/strrpos_variation4.phpt b/ext/standard/tests/strings/strrpos_variation4.phpt index 3a15a685e5..2dee21b988 100644 --- a/ext/standard/tests/strings/strrpos_variation4.phpt +++ b/ext/standard/tests/strings/strrpos_variation4.phpt @@ -28,18 +28,7 @@ var_dump( strrpos($special_chars_str, "(special)") ); echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing strrpos() function: with heredoc strings *** --- With heredoc string containing special chars -- -int(0) -bool(false) -int(41) -int(39) -int(55) -int(55) -int(57) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing strrpos() function: with heredoc strings *** -- With heredoc string containing special chars -- int(0) diff --git a/ext/standard/tests/strings/strrpos_variation5.phpt b/ext/standard/tests/strings/strrpos_variation5.phpt index fd0ed62648..e0692dafc5 100644 --- a/ext/standard/tests/strings/strrpos_variation5.phpt +++ b/ext/standard/tests/strings/strrpos_variation5.phpt @@ -24,15 +24,7 @@ var_dump( strrpos($control_char_str, "\t", 15) ); echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing strrpos() function: with heredoc strings *** --- With heredoc string containing escape characters -- -int(13) -int(19) -int(13) -int(19) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing strrpos() function: with heredoc strings *** -- With heredoc string containing escape characters -- int(13) diff --git a/ext/standard/tests/strings/strrpos_variation6.phpt b/ext/standard/tests/strings/strrpos_variation6.phpt index 039bd9432c..9466ddb77c 100644 --- a/ext/standard/tests/strings/strrpos_variation6.phpt +++ b/ext/standard/tests/strings/strrpos_variation6.phpt @@ -25,15 +25,7 @@ var_dump( strrpos($quote_char_str, 'things', 0) ); var_dump( strrpos($quote_char_str, "things", 20) ); echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing strrpos() function: with heredoc strings *** --- With heredoc string containing quote & slash chars -- -int(88) -int(59) -int(59) -int(59) -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing strrpos() function: with heredoc strings *** -- With heredoc string containing quote & slash chars -- int(88) diff --git a/ext/standard/tests/strings/strrpos_variation7.phpt b/ext/standard/tests/strings/strrpos_variation7.phpt index 239dc246bc..9c487d1e62 100644 --- a/ext/standard/tests/strings/strrpos_variation7.phpt +++ b/ext/standard/tests/strings/strrpos_variation7.phpt @@ -22,7 +22,7 @@ var_dump( strrpos($empty_string, NULL) ); echo "*** Done ***"; ?> ---EXPECTF-- +--EXPECT-- *** Testing strrpos() function: with heredoc strings *** -- With empty heredoc string -- bool(false) diff --git a/ext/standard/tests/strings/strrpos_variation8.phpt b/ext/standard/tests/strings/strrpos_variation8.phpt index 32e5603e40..440dcd60d6 100644 --- a/ext/standard/tests/strings/strrpos_variation8.phpt +++ b/ext/standard/tests/strings/strrpos_variation8.phpt @@ -51,39 +51,6 @@ bool(false) -- Iteration 12 -- bool(false) -- Iteration 13 -- -bool(false) --- Iteration 14 -- -bool(false) --- Iteration 15 -- -bool(false) -*** Done *** ---UEXPECTF-- -*** Testing strrpos() function: strings repetitive chars *** --- Iteration 1 -- -int(4) --- Iteration 2 -- -int(4) --- Iteration 3 -- -int(4) --- Iteration 4 -- -int(4) --- Iteration 5 -- -int(4) --- Iteration 6 -- -int(4) --- Iteration 7 -- -bool(false) --- Iteration 8 -- -bool(false) --- Iteration 9 -- -bool(false) --- Iteration 10 -- -bool(false) --- Iteration 11 -- -bool(false) --- Iteration 12 -- -bool(false) --- Iteration 13 -- Notice: strrpos(): Offset is greater than the length of haystack string in %s on line %d bool(false) diff --git a/ext/standard/tests/strings/strrpos_variation9.phpt b/ext/standard/tests/strings/strrpos_variation9.phpt index ea73797779..cc73d8f26d 100644 --- a/ext/standard/tests/strings/strrpos_variation9.phpt +++ b/ext/standard/tests/strings/strrpos_variation9.phpt @@ -180,94 +180,3 @@ bool(false) -- Iteration 26 -- bool(false) *** Done *** ---UEXPECTF-- -*** Testing strrpos() function with unexpected values for haystack *** - --- Iteration 1 -- -bool(false) - --- Iteration 2 -- -bool(false) - --- Iteration 3 -- -bool(false) - --- Iteration 4 -- -bool(false) - --- Iteration 5 -- -bool(false) - --- Iteration 6 -- -bool(false) - --- Iteration 7 -- -bool(false) - --- Iteration 8 -- -bool(false) - --- Iteration 9 -- -bool(false) - --- Iteration 10 -- - -Notice: Array to string conversion in %s on line %d -bool(false) - --- Iteration 11 -- - -Notice: Array to string conversion in %s on line %d -bool(false) - --- Iteration 12 -- - -Notice: Array to string conversion in %s on line %d -bool(false) - --- Iteration 13 -- - -Notice: Array to string conversion in %s on line %d -bool(false) - --- Iteration 14 -- - -Notice: Array to string conversion in %s on line %d -bool(false) - --- Iteration 15 -- -bool(false) - --- Iteration 16 -- -bool(false) - --- Iteration 17 -- -bool(false) - --- Iteration 18 -- -bool(false) - --- Iteration 19 -- -bool(false) - --- Iteration 20 -- -bool(false) - --- Iteration 21 -- -bool(false) - --- Iteration 22 -- -bool(false) - --- Iteration 23 -- -bool(false) - --- Iteration 24 -- -bool(false) - --- Iteration 25 -- -bool(false) - --- Iteration 26 -- -bool(false) -*** Done *** diff --git a/ext/standard/tests/strings/strspn.phpt b/ext/standard/tests/strings/strspn.phpt index 6780e1d398..a2cc900ef5 100644 --- a/ext/standard/tests/strings/strspn.phpt +++ b/ext/standard/tests/strings/strspn.phpt @@ -11,12 +11,6 @@ var_dump(strspn($a,$b,2)); var_dump(strspn($a,$b,2,3)); ?> --EXPECT-- -string(25) "22222222aaaa bbb1111 cccc" -string(4) "1234" -int(8) -int(6) -int(3) ---UEXPECT-- unicode(25) "22222222aaaa bbb1111 cccc" unicode(4) "1234" int(8) diff --git a/ext/standard/tests/strings/strspn_basic.phpt b/ext/standard/tests/strings/strspn_basic.phpt index 7907a600af..052b5413a8 100644 --- a/ext/standard/tests/strings/strspn_basic.phpt +++ b/ext/standard/tests/strings/strspn_basic.phpt @@ -33,14 +33,7 @@ var_dump( strspn($str, $mask) ); echo "Done" ?> ---EXPECTF-- -*** Testing strspn() : basic functionality *** -int(11) -int(11) -int(2) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing strspn() : basic functionality *** int(11) int(11) diff --git a/ext/standard/tests/strings/strspn_error.phpt b/ext/standard/tests/strings/strspn_error.phpt index 61374c41db..e2311ba2c0 100644 --- a/ext/standard/tests/strings/strspn_error.phpt +++ b/ext/standard/tests/strings/strspn_error.phpt @@ -55,22 +55,3 @@ NULL Warning: strspn() expects at least 2 parameters, 1 given in %s on line %d NULL Done - ---UEXPECTF-- -*** Testing strspn() : error conditions *** - --- Testing strspn() function with Zero arguments -- - -Warning: strspn() expects at least 2 parameters, 0 given in %s on line %d -NULL - --- Testing strspn() function with more than expected no. of arguments -- - -Warning: strspn() expects at most 4 parameters, 5 given in %s on line %d -NULL - --- Testing strspn() function with less than expected no. of arguments -- - -Warning: strspn() expects at least 2 parameters, 1 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/strspn_variation1.phpt b/ext/standard/tests/strings/strspn_variation1.phpt index 3410ce5819..666da9e03a 100644 --- a/ext/standard/tests/strings/strspn_variation1.phpt +++ b/ext/standard/tests/strings/strspn_variation1.phpt @@ -271,172 +271,3 @@ NULL Warning: strspn() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d NULL Done ---UEXPECTF-- -*** Testing strspn() : with unexpected values for str argument *** - --- Iteration with str value as "0" -int(1) -int(0) -int(0) - --- Iteration with str value as "1" -int(1) -int(0) -int(0) - --- Iteration with str value as "12345" -int(5) -int(4) -int(4) - --- Iteration with str value as "-2345" -int(0) -int(4) -int(4) - --- Iteration with str value as "10.5" -int(2) -int(1) -int(1) - --- Iteration with str value as "-10.5" -int(0) -int(2) -int(2) - --- Iteration with str value as "101234567000" -int(12) -int(11) -int(10) - --- Iteration with str value as "1.07654321E-9" -int(1) -int(0) -int(0) - --- Iteration with str value as "0.5" -int(1) -int(0) -int(0) - --- Iteration with str value as "Array" - -Warning: strspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with str value as "Array" - -Warning: strspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with str value as "Array" - -Warning: strspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with str value as "Array" - -Warning: strspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with str value as "Array" - -Warning: strspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with str value as "" -int(0) -bool(false) -bool(false) - --- Iteration with str value as "" -int(0) -bool(false) -bool(false) - --- Iteration with str value as "1" -int(1) -int(0) -int(0) - --- Iteration with str value as "" -int(0) -bool(false) -bool(false) - --- Iteration with str value as "1" -int(1) -int(0) -int(0) - --- Iteration with str value as "" -int(0) -bool(false) -bool(false) - --- Iteration with str value as "" -int(0) -bool(false) -bool(false) - --- Iteration with str value as "" -int(0) -bool(false) -bool(false) - --- Iteration with str value as "object" -int(2) -int(1) -int(1) - --- Iteration with str value as "" -int(0) -bool(false) -bool(false) - --- Iteration with str value as "" -int(0) -bool(false) -bool(false) - --- Iteration with str value as "Resource id #%d" - -Warning: strspn() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL - -Warning: strspn() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL - -Warning: strspn() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/strspn_variation10.phpt b/ext/standard/tests/strings/strspn_variation10.phpt index 7d325a0f17..28d7ad5cff 100644 --- a/ext/standard/tests/strings/strspn_variation10.phpt +++ b/ext/standard/tests/strings/strspn_variation10.phpt @@ -65,215 +65,7 @@ foreach($strings as $str) { echo "Done" ?> ---EXPECTF-- -*** Testing strspn() : with different mask strings and default start and len arguments *** - --- Iteration 1 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 2 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 3 -- -int(0) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) - --- Iteration 4 -- -int(0) -int(0) -int(1) -int(2) -int(0) -int(1) -int(1) -int(1) -int(0) -int(1) - --- Iteration 5 -- -int(0) -int(0) -int(4) -int(4) -int(4) -int(0) -int(4) -int(4) -int(0) -int(4) - --- Iteration 6 -- -int(0) -int(0) -int(4) -int(4) -int(4) -int(0) -int(4) -int(4) -int(0) -int(4) - --- Iteration 7 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 8 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 9 -- -int(0) -int(0) -int(4) -int(4) -int(4) -int(0) -int(4) -int(4) -int(0) -int(4) - --- Iteration 10 -- -int(0) -int(0) -int(4) -int(4) -int(4) -int(0) -int(4) -int(4) -int(0) -int(4) - --- Iteration 11 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 12 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 13 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 14 -- -int(0) -int(0) -int(4) -int(4) -int(4) -int(0) -int(4) -int(4) -int(0) -int(4) - --- Iteration 15 -- -int(0) -int(0) -int(4) -int(4) -int(4) -int(0) -int(4) -int(4) -int(0) -int(4) - --- Iteration 16 -- -int(0) -int(0) -int(4) -int(4) -int(4) -int(0) -int(4) -int(4) -int(0) -int(4) - --- Iteration 17 -- -int(0) -int(0) -int(4) -int(4) -int(4) -int(0) -int(4) -int(4) -int(0) -int(4) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing strspn() : with different mask strings and default start and len arguments *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/strspn_variation11.phpt b/ext/standard/tests/strings/strspn_variation11.phpt index 959c03e1c4..eb388f0871 100644 --- a/ext/standard/tests/strings/strspn_variation11.phpt +++ b/ext/standard/tests/strings/strspn_variation11.phpt @@ -77,1235 +77,7 @@ foreach($strings as $str) { echo "Done" ?> ---EXPECTF-- -*** Testing strspn() : with different start and default len values *** - --- Iteration 1 -- -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) - --- Iteration 2 -- -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) - --- Iteration 3 -- -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -int(0) -bool(false) -int(1) -int(1) -bool(false) -int(1) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(1) -int(0) -bool(false) -int(1) -int(1) -bool(false) -int(1) - --- Iteration 4 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(1) -int(0) -int(0) -int(0) -int(1) -bool(false) -int(1) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(1) -int(0) -int(0) -int(0) -int(1) -bool(false) -int(1) -int(1) -int(0) -int(0) -int(0) -int(1) -bool(false) -int(1) -int(1) -int(0) -int(0) -int(0) -int(1) -bool(false) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(1) -int(0) -int(0) -int(0) -int(1) -bool(false) -int(1) - --- Iteration 5 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(1) -int(0) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(1) -int(0) -bool(false) -int(4) - --- Iteration 6 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(1) -int(2) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(1) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) - --- Iteration 7 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) - --- Iteration 8 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) - --- Iteration 9 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(1) -int(0) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(1) -int(0) -bool(false) -int(4) - --- Iteration 10 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) - --- Iteration 11 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) - --- Iteration 12 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(4) -int(3) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(4) -int(3) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(4) -int(3) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(4) -int(3) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(4) -int(3) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(4) -int(3) -int(0) -int(0) -bool(false) -int(0) - --- Iteration 13 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(4) -int(3) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(4) -int(3) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(4) -int(3) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(4) -int(3) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(4) -int(3) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(4) -int(3) -int(0) -int(0) -bool(false) -int(0) - --- Iteration 14 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) - --- Iteration 15 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) - --- Iteration 16 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) - --- Iteration 17 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(1) -bool(false) -int(4) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing strspn() : with different start and default len values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/strspn_variation12.phpt b/ext/standard/tests/strings/strspn_variation12.phpt index 15560f1940..833bb5ed8d 100644 --- a/ext/standard/tests/strings/strspn_variation12.phpt +++ b/ext/standard/tests/strings/strspn_variation12.phpt @@ -79,2805 +79,7 @@ foreach($strings as $str) { echo "Done" ?> ---EXPECTF-- -*** Testing strspn() : with different start and len values *** - --- Iteration 1 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 2 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 3 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) - --- Iteration 4 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) - --- Iteration 5 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) - --- Iteration 6 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 7 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) - --- Iteration 8 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 9 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 10 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) - --- Iteration 11 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing strspn() : with different start and len values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/strspn_variation2.phpt b/ext/standard/tests/strings/strspn_variation2.phpt index 30219f7bc7..761086fae1 100644 --- a/ext/standard/tests/strings/strspn_variation2.phpt +++ b/ext/standard/tests/strings/strspn_variation2.phpt @@ -270,172 +270,3 @@ NULL Warning: strspn() expects parameter 2 to be string (Unicode or binary), resource given in %s on line %d NULL Done ---UEXPECTF-- -*** Testing strspn() : with diferent unexpected values of mask argument *** - --- Iteration with mask value as "0" -- -int(0) -int(0) -int(0) - --- Iteration with mask value as "1" -- -int(0) -int(0) -int(0) - --- Iteration with mask value as "12345" -- -int(0) -int(0) -int(0) - --- Iteration with mask value as "-2345" -- -int(0) -int(0) -int(0) - --- Iteration with mask value as "10.5" -- -int(0) -int(0) -int(0) - --- Iteration with mask value as "-10.5" -- -int(0) -int(0) -int(0) - --- Iteration with mask value as "101234567000" -- -int(0) -int(0) -int(0) - --- Iteration with mask value as "1.07654321E-9" -- -int(0) -int(0) -int(0) - --- Iteration with mask value as "0.5" -- -int(0) -int(0) -int(0) - --- Iteration with mask value as "Array" -- - -Warning: strspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with mask value as "Array" -- - -Warning: strspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with mask value as "Array" -- - -Warning: strspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with mask value as "Array" -- - -Warning: strspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with mask value as "Array" -- - -Warning: strspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - -Warning: strspn() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL - --- Iteration with mask value as "" -- -int(0) -int(0) -int(0) - --- Iteration with mask value as "" -- -int(0) -int(0) -int(0) - --- Iteration with mask value as "1" -- -int(0) -int(0) -int(0) - --- Iteration with mask value as "" -- -int(0) -int(0) -int(0) - --- Iteration with mask value as "1" -- -int(0) -int(0) -int(0) - --- Iteration with mask value as "" -- -int(0) -int(0) -int(0) - --- Iteration with mask value as "" -- -int(0) -int(0) -int(0) - --- Iteration with mask value as "" -- -int(0) -int(0) -int(0) - --- Iteration with mask value as "object" -- -int(0) -int(1) -int(1) - --- Iteration with mask value as "" -- -int(0) -int(0) -int(0) - --- Iteration with mask value as "" -- -int(0) -int(0) -int(0) - --- Iteration with mask value as "Resource id #%d" -- - -Warning: strspn() expects parameter 2 to be string (Unicode or binary), resource given in %s on line %d -NULL - -Warning: strspn() expects parameter 2 to be string (Unicode or binary), resource given in %s on line %d -NULL - -Warning: strspn() expects parameter 2 to be string (Unicode or binary), resource given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/strspn_variation3.phpt b/ext/standard/tests/strings/strspn_variation3.phpt index c04bf50a59..cecc549eb4 100644 --- a/ext/standard/tests/strings/strspn_variation3.phpt +++ b/ext/standard/tests/strings/strspn_variation3.phpt @@ -187,149 +187,6 @@ int(2) -- Iteration with start value as "" -- -Warning: strspn() expects parameter 3 to be long, string given in %s on line %d -NULL - -Warning: strspn() expects parameter 3 to be long, string given in %s on line %d -NULL - --- Iteration with start value as "" -- - -Warning: strspn() expects parameter 3 to be long, string given in %s on line %d -NULL - -Warning: strspn() expects parameter 3 to be long, string given in %s on line %d -NULL - --- Iteration with start value as "string" -- - -Warning: strspn() expects parameter 3 to be long, string given in %s on line %d -NULL - -Warning: strspn() expects parameter 3 to be long, string given in %s on line %d -NULL - --- Iteration with start value as "string" -- - -Warning: strspn() expects parameter 3 to be long, string given in %s on line %d -NULL - -Warning: strspn() expects parameter 3 to be long, string given in %s on line %d -NULL - --- Iteration with start value as "object" -- - -Warning: strspn() expects parameter 3 to be long, object given in %s on line %d -NULL - -Warning: strspn() expects parameter 3 to be long, object given in %s on line %d -NULL - --- Iteration with start value as "" -- -int(2) -int(2) - --- Iteration with start value as "" -- -int(2) -int(2) - --- Iteration with start value as "Resource id #%d" -- - -Warning: strspn() expects parameter 3 to be long, resource given in %s on line %d -NULL - -Warning: strspn() expects parameter 3 to be long, resource given in %s on line %d -NULL -Done ---UEXPECTF-- -*** Testing strspn() : with unexpected values of start argument *** - --- Iteration with start value as "10.5" -- -int(0) -int(0) - --- Iteration with start value as "-10.5" -- -int(2) -int(2) - --- Iteration with start value as "1012345670" -- -bool(false) -bool(false) - --- Iteration with start value as "1.07654321E-7" -- -int(2) -int(2) - --- Iteration with start value as "0.5" -- -int(2) -int(2) - --- Iteration with start value as "Array" -- - -Warning: strspn() expects parameter 3 to be long, array given in %s on line %d -NULL - -Warning: strspn() expects parameter 3 to be long, array given in %s on line %d -NULL - --- Iteration with start value as "Array" -- - -Warning: strspn() expects parameter 3 to be long, array given in %s on line %d -NULL - -Warning: strspn() expects parameter 3 to be long, array given in %s on line %d -NULL - --- Iteration with start value as "Array" -- - -Warning: strspn() expects parameter 3 to be long, array given in %s on line %d -NULL - -Warning: strspn() expects parameter 3 to be long, array given in %s on line %d -NULL - --- Iteration with start value as "Array" -- - -Warning: strspn() expects parameter 3 to be long, array given in %s on line %d -NULL - -Warning: strspn() expects parameter 3 to be long, array given in %s on line %d -NULL - --- Iteration with start value as "Array" -- - -Warning: strspn() expects parameter 3 to be long, array given in %s on line %d -NULL - -Warning: strspn() expects parameter 3 to be long, array given in %s on line %d -NULL - --- Iteration with start value as "" -- -int(2) -int(2) - --- Iteration with start value as "" -- -int(2) -int(2) - --- Iteration with start value as "1" -- -int(1) -int(1) - --- Iteration with start value as "" -- -int(2) -int(2) - --- Iteration with start value as "1" -- -int(1) -int(1) - --- Iteration with start value as "" -- -int(2) -int(2) - --- Iteration with start value as "" -- - Warning: strspn() expects parameter 3 to be long, Unicode string given in %s on line %d NULL diff --git a/ext/standard/tests/strings/strspn_variation4.phpt b/ext/standard/tests/strings/strspn_variation4.phpt index c5a7ea1f4f..7dd600358d 100644 --- a/ext/standard/tests/strings/strspn_variation4.phpt +++ b/ext/standard/tests/strings/strspn_variation4.phpt @@ -160,103 +160,6 @@ int(0) -- Iteration with len value as "" -- -Warning: strspn() expects parameter 4 to be long, string given in %s on line %d -NULL - --- Iteration with len value as "" -- - -Warning: strspn() expects parameter 4 to be long, string given in %s on line %d -NULL - --- Iteration with len value as "string" -- - -Warning: strspn() expects parameter 4 to be long, string given in %s on line %d -NULL - --- Iteration with len value as "string" -- - -Warning: strspn() expects parameter 4 to be long, string given in %s on line %d -NULL - --- Iteration with len value as "object" -- - -Warning: strspn() expects parameter 4 to be long, object given in %s on line %d -NULL - --- Iteration with len value as "" -- -int(0) - --- Iteration with len value as "" -- -int(0) - --- Iteration with len value as "Resource id #%d" -- - -Warning: strspn() expects parameter 4 to be long, resource given in %s on line %d -NULL -Done ---UEXPECTF-- -*** Testing strspn() : with unexpected values of len argument *** - --- Iteration with len value as "10.5" -- -int(2) - --- Iteration with len value as "-10.5" -- -int(0) - --- Iteration with len value as "1012345670" -- -int(2) - --- Iteration with len value as "1.07654321E-7" -- -int(0) - --- Iteration with len value as "0.5" -- -int(0) - --- Iteration with len value as "Array" -- - -Warning: strspn() expects parameter 4 to be long, array given in %s on line %d -NULL - --- Iteration with len value as "Array" -- - -Warning: strspn() expects parameter 4 to be long, array given in %s on line %d -NULL - --- Iteration with len value as "Array" -- - -Warning: strspn() expects parameter 4 to be long, array given in %s on line %d -NULL - --- Iteration with len value as "Array" -- - -Warning: strspn() expects parameter 4 to be long, array given in %s on line %d -NULL - --- Iteration with len value as "Array" -- - -Warning: strspn() expects parameter 4 to be long, array given in %s on line %d -NULL - --- Iteration with len value as "" -- -int(0) - --- Iteration with len value as "" -- -int(0) - --- Iteration with len value as "1" -- -int(1) - --- Iteration with len value as "" -- -int(0) - --- Iteration with len value as "1" -- -int(1) - --- Iteration with len value as "" -- -int(0) - --- Iteration with len value as "" -- - Warning: strspn() expects parameter 4 to be long, Unicode string given in %s on line %d NULL diff --git a/ext/standard/tests/strings/strspn_variation5.phpt b/ext/standard/tests/strings/strspn_variation5.phpt Binary files differindex 052920269a..974a9f1790 100644 --- a/ext/standard/tests/strings/strspn_variation5.phpt +++ b/ext/standard/tests/strings/strspn_variation5.phpt diff --git a/ext/standard/tests/strings/strspn_variation6.phpt b/ext/standard/tests/strings/strspn_variation6.phpt index fd8b795e21..f8a450ef10 100644 --- a/ext/standard/tests/strings/strspn_variation6.phpt +++ b/ext/standard/tests/strings/strspn_variation6.phpt @@ -90,95 +90,7 @@ foreach($heredoc_strings as $str) { echo "Done" ?> ---EXPECTF-- -*** Testing strspn() : with different mask strings *** - --- Iteration 1 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 2 -- -int(0) -int(0) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 3 -- -int(0) -int(0) -int(8) -int(11) -int(0) -int(0) -int(0) -int(1) -int(0) -int(2) - --- Iteration 4 -- -int(0) -int(0) -int(4) -int(4) -int(0) -int(0) -int(0) -int(4) -int(0) -int(4) - --- Iteration 5 -- -int(0) -int(0) -int(4) -int(4) -int(0) -int(0) -int(0) -int(4) -int(0) -int(4) - --- Iteration 6 -- -int(0) -int(0) -int(4) -int(4) -int(0) -int(0) -int(0) -int(4) -int(0) -int(4) - --- Iteration 7 -- -int(0) -int(0) -int(4) -int(4) -int(0) -int(0) -int(0) -int(4) -int(0) -int(4) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing strspn() : with different mask strings *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/strspn_variation7.phpt b/ext/standard/tests/strings/strspn_variation7.phpt index 327fdba7d3..065d75a69f 100644 --- a/ext/standard/tests/strings/strspn_variation7.phpt +++ b/ext/standard/tests/strings/strspn_variation7.phpt @@ -103,515 +103,7 @@ foreach($heredoc_strings as $str) { echo "Done" ?> ---EXPECTF-- -*** Testing strspn() : with different start values *** - --- Iteration 1 -- -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) -int(0) -bool(false) -bool(false) -int(0) -int(0) -bool(false) -int(0) - --- Iteration 2 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(2) -int(1) -int(0) -int(1) -int(2) -bool(false) -int(2) - --- Iteration 3 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(8) -int(7) -int(6) -int(0) -int(0) -bool(false) -int(8) -int(11) -int(10) -int(9) -int(0) -int(1) -bool(false) -int(11) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(2) -int(1) -int(0) -int(0) -int(0) -bool(false) -int(2) - --- Iteration 4 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(1) -int(0) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(1) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(2) -int(1) -int(0) -int(0) -int(0) -bool(false) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(2) -int(1) -int(0) -int(1) -int(0) -bool(false) -int(2) - --- Iteration 5 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(1) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(2) -int(1) -int(0) -int(0) -int(0) -bool(false) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(2) -int(1) -int(0) -int(0) -int(0) -bool(false) -int(2) - --- Iteration 6 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(1) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(2) -int(1) -int(0) -int(0) -int(0) -bool(false) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(2) -int(1) -int(0) -int(0) -int(0) -bool(false) -int(2) - --- Iteration 7 -- -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(4) -int(3) -int(2) -int(0) -int(0) -bool(false) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(1) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(2) -int(1) -int(0) -int(0) -int(0) -bool(false) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -int(0) -int(2) -int(1) -int(0) -int(0) -int(0) -bool(false) -int(2) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing strspn() : with different start values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/strspn_variation8.phpt b/ext/standard/tests/strings/strspn_variation8.phpt index f6593bbcc6..7cc25a5f15 100644 --- a/ext/standard/tests/strings/strspn_variation8.phpt +++ b/ext/standard/tests/strings/strspn_variation8.phpt @@ -111,1789 +111,7 @@ foreach($heredoc_strings as $str) { echo "Done" ?> ---EXPECTF-- -*** Testing strspn() : with different start and len values *** - --- Iteration 1 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 2 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(1) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) - --- Iteration 3 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(8) -int(8) -int(0) -int(0) -int(1) -int(2) -int(7) -int(7) -int(0) -int(0) -int(1) -int(2) -int(6) -int(6) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(8) -int(8) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) - --- Iteration 4 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(0) -int(1) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) - --- Iteration 5 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) - --- Iteration 6 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) - --- Iteration 7 -- -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(1) -int(1) -int(1) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -int(0) -int(1) -int(2) -int(3) -int(3) -int(0) -int(0) -int(1) -int(2) -int(2) -int(2) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -int(0) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -int(0) -int(1) -int(2) -int(4) -int(4) -int(0) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing strspn() : with different start and len values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/strspn_variation9.phpt b/ext/standard/tests/strings/strspn_variation9.phpt Binary files differindex a7668c42cc..65ebba9567 100644 --- a/ext/standard/tests/strings/strspn_variation9.phpt +++ b/ext/standard/tests/strings/strspn_variation9.phpt diff --git a/ext/standard/tests/strings/strtok_basic.phpt b/ext/standard/tests/strings/strtok_basic.phpt index 8f43249420..a111c1d4dd 100644 --- a/ext/standard/tests/strings/strtok_basic.phpt +++ b/ext/standard/tests/strings/strtok_basic.phpt @@ -31,38 +31,7 @@ for( $i = 2; $i <=7; $i++ ) { echo "Done\n"; ?> ---EXPECTF-- -*** Testing strtok() : basic functionality *** - -The Input string is: -"This testcase test strtok() function." - -The token string is: -" ()." - ---- Token 1 --- -string(4) "This" - ---- Token 2 --- -string(8) "testcase" - ---- Token 3 --- -string(4) "test" - ---- Token 4 --- -string(6) "strtok" - ---- Token 5 --- -string(8) "function" - ---- Token 6 --- -bool(false) - ---- Token 7 --- -bool(false) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing strtok() : basic functionality *** The Input string is: @@ -91,4 +60,4 @@ bool(false) --- Token 7 --- bool(false) -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/strtok_error.phpt b/ext/standard/tests/strings/strtok_error.phpt index 3b58385422..cd97feb706 100644 --- a/ext/standard/tests/strings/strtok_error.phpt +++ b/ext/standard/tests/strings/strtok_error.phpt @@ -47,25 +47,6 @@ NULL Warning: strtok() expects at most 2 parameters, 3 given in %s on line %d NULL -string(13) "sample string" - --- Testing strtok() with less than expected no. of arguments -- -bool(false) -string(10) "string val" -Done - ---UEXPECTF-- -*** Testing strtok() : error conditions *** - --- Testing strtok() function with Zero arguments -- - -Warning: strtok() expects at least 1 parameter, 0 given in %s on line %d -NULL - --- Testing strtok() function with more than expected no. of arguments -- - -Warning: strtok() expects at most 2 parameters, 3 given in %s on line %d -NULL unicode(13) "sample string" -- Testing strtok() with less than expected no. of arguments -- diff --git a/ext/standard/tests/strings/strtok_variation1.phpt b/ext/standard/tests/strings/strtok_variation1.phpt index 50d610634e..550535ed6e 100644 --- a/ext/standard/tests/strings/strtok_variation1.phpt +++ b/ext/standard/tests/strings/strtok_variation1.phpt @@ -108,79 +108,6 @@ Notice: Undefined variable: unset_var in %s on line %d --- Testing strtok() by supplying different values for 'str' argument --- -- Iteration 1 -- -string(1) "0" --- Iteration 2 -- -string(1) "1" --- Iteration 3 -- -string(5) "12345" --- Iteration 4 -- -string(4) "2345" --- Iteration 5 -- -string(4) "10.5" --- Iteration 6 -- -string(4) "10.5" --- Iteration 7 -- -string(12) "101234567000" --- Iteration 8 -- -string(11) "1.07654321E" --- Iteration 9 -- -string(3) "0.5" --- Iteration 10 -- - -Warning: strtok() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 11 -- - -Warning: strtok() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 12 -- - -Warning: strtok() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 13 -- - -Warning: strtok() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 14 -- - -Warning: strtok() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 15 -- -string(1) "1" --- Iteration 16 -- -bool(false) --- Iteration 17 -- -string(1) "1" --- Iteration 18 -- -bool(false) --- Iteration 19 -- -string(3) "obj" --- Iteration 20 -- -bool(false) --- Iteration 21 -- -bool(false) --- Iteration 22 -- -bool(false) --- Iteration 23 -- -bool(false) --- Iteration 24 -- -bool(false) --- Iteration 25 -- -bool(false) --- Iteration 26 -- - -Warning: strtok() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL -Done ---UEXPECTF-- -*** Testing strtok() : with first argument as non-string *** - -Notice: Undefined variable: undefined_var in %s on line %d - -Notice: Undefined variable: unset_var in %s on line %d - ---- Testing strtok() by supplying different values for 'str' argument --- --- Iteration 1 -- unicode(1) "0" -- Iteration 2 -- unicode(1) "1" diff --git a/ext/standard/tests/strings/strtok_variation2.phpt b/ext/standard/tests/strings/strtok_variation2.phpt index 5fd7bcd9ab..d3526a9412 100644 --- a/ext/standard/tests/strings/strtok_variation2.phpt +++ b/ext/standard/tests/strings/strtok_variation2.phpt @@ -108,80 +108,6 @@ Notice: Undefined variable: unset_var in %s on line %d --- Testing strtok() by supplying different values for 'token' argument --- -- Iteration 1 -- -string(37) "this testcase test strtok() function " --- Iteration 2 -- -string(37) "this testcase test strtok() function " --- Iteration 3 -- -string(37) "this testcase test strtok() function " --- Iteration 4 -- -string(37) "this testcase test strtok() function " --- Iteration 5 -- -string(37) "this testcase test strtok() function " --- Iteration 6 -- -string(37) "this testcase test strtok() function " --- Iteration 7 -- -string(37) "this testcase test strtok() function " --- Iteration 8 -- -string(37) "this testcase test strtok() function " --- Iteration 9 -- -string(37) "this testcase test strtok() function " --- Iteration 10 -- - -Warning: strtok() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 11 -- - -Warning: strtok() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 12 -- - -Warning: strtok() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 13 -- - -Warning: strtok() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 14 -- - -Warning: strtok() expects parameter 2 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 15 -- -string(37) "this testcase test strtok() function " --- Iteration 16 -- -string(37) "this testcase test strtok() function " --- Iteration 17 -- -string(37) "this testcase test strtok() function " --- Iteration 18 -- -string(37) "this testcase test strtok() function " --- Iteration 19 -- -string(4) "his " --- Iteration 20 -- -string(37) "this testcase test strtok() function " --- Iteration 21 -- -string(37) "this testcase test strtok() function " --- Iteration 22 -- -string(37) "this testcase test strtok() function " --- Iteration 23 -- -string(37) "this testcase test strtok() function " --- Iteration 24 -- -string(37) "this testcase test strtok() function " --- Iteration 25 -- -string(37) "this testcase test strtok() function " --- Iteration 26 -- - -Warning: strtok() expects parameter 2 to be string (Unicode or binary), resource given in %s on line %d -NULL -Done - ---UEXPECTF-- -*** Testing strtok() : with different token strings *** - -Notice: Undefined variable: undefined_var in %s on line %d - -Notice: Undefined variable: unset_var in %s on line %d - ---- Testing strtok() by supplying different values for 'token' argument --- --- Iteration 1 -- unicode(37) "this testcase test strtok() function " -- Iteration 2 -- unicode(37) "this testcase test strtok() function " diff --git a/ext/standard/tests/strings/strtok_variation3.phpt b/ext/standard/tests/strings/strtok_variation3.phpt index 48c2e7429c..addd4e7d76 100644 --- a/ext/standard/tests/strings/strtok_variation3.phpt +++ b/ext/standard/tests/strings/strtok_variation3.phpt @@ -67,89 +67,7 @@ foreach($heredoc_strings as $string) { echo "Done\n"; ?> ---EXPECTF-- -*** Testing strtok() : with heredoc strings *** - ---- Iteration 1 --- -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) - ---- Iteration 2 --- -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) - ---- Iteration 3 --- -string(11) "first line " -string(7) "f hered" -string(8) "c string" -string(3) "sec" -string(8) "nd line " -string(7) "f hered" -string(8) "c string" -string(11) "third line " -string(7) "f hered" -string(7) "cstring" -bool(false) - ---- Iteration 4 --- -string(4) "hell" -string(1) "w" -string(3) "rld" -string(4) "hell" -string(1) "w" -string(3) "rld" -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) - ---- Iteration 5 --- -string(4) "hell" -string(4) "123w" -string(4) "rld4" -string(1) "6" -string(8) "1234hell" -string(4) "1234" -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) - ---- Iteration 6 --- -string(4) "hell" -string(1) "w" -string(3) "rld" -string(4) "hell" -string(4) "hell" -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing strtok() : with heredoc strings *** --- Iteration 1 --- diff --git a/ext/standard/tests/strings/strtok_variation4.phpt b/ext/standard/tests/strings/strtok_variation4.phpt index 73f9525c79..491daeffd2 100644 --- a/ext/standard/tests/strings/strtok_variation4.phpt +++ b/ext/standard/tests/strings/strtok_variation4.phpt @@ -41,75 +41,7 @@ foreach( $strings_with_nulls as $string ) { echo "Done\n"; ?> ---EXPECTF-- -*** Testing strtok() : with embedded nulls in the strings *** - ---- Iteration 1 --- -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) - ---- Iteration 2 --- -string(2) "\0" -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) - ---- Iteration 3 --- -string(5) "hello" -string(5) "world" -bool(false) -bool(false) -bool(false) -bool(false) - ---- Iteration 4 --- -string(3) "hel" -string(2) "lo" -bool(false) -bool(false) -bool(false) -bool(false) - ---- Iteration 5 --- -string(5) "hello" -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) - ---- Iteration 6 --- -string(11) "hello world" -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) - ---- Iteration 7 --- -string(4) "\0he" -string(5) "llo\0" -bool(false) -bool(false) -bool(false) -bool(false) - ---- Iteration 8 --- -string(9) "hello\0\0" -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing strtok() : with embedded nulls in the strings *** --- Iteration 1 --- @@ -175,4 +107,4 @@ bool(false) bool(false) bool(false) bool(false) -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/strtok_variation5.phpt b/ext/standard/tests/strings/strtok_variation5.phpt index c4aa626b8a..65d71b8263 100644 --- a/ext/standard/tests/strings/strtok_variation5.phpt +++ b/ext/standard/tests/strings/strtok_variation5.phpt @@ -57,99 +57,7 @@ foreach( $string_array as $string ) { echo "Done\n"; ?> ---EXPECTF-- -*** Testing strtok() : with miscellaneous inputs *** - ---- Iteration 1 --- -string(11) "HELLO WORLD" -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) - ---- Iteration 2 --- -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) - ---- Iteration 3 --- -string(5) "HELLO" -string(5) "WORLD" -bool(false) -bool(false) -bool(false) -bool(false) - ---- Iteration 4 --- -string(5) "hello" -string(3) "wor" -string(2) "ld" -bool(false) -bool(false) -bool(false) - ---- Iteration 5 --- -string(3) "hel" -string(2) "lo" -string(5) "world" -bool(false) -bool(false) -bool(false) - ---- Iteration 6 --- -string(3) "one" -string(1) "$" -string(3) "two" -string(1) "!" -string(5) "three" -string(1) "#" - ---- Iteration 7 --- -string(11) "hello/r/wor" -string(3) "rld" -bool(false) -bool(false) -bool(false) -bool(false) - ---- Iteration 8 --- -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) - ---- Iteration 9 --- -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) - ---- Iteration 10 --- -string(5) "hello" -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) - ---- Iteration 11 --- -string(5) "hello" -string(5) "world" -bool(false) -bool(false) -bool(false) -bool(false) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing strtok() : with miscellaneous inputs *** --- Iteration 1 --- diff --git a/ext/standard/tests/strings/strtok_variation6.phpt b/ext/standard/tests/strings/strtok_variation6.phpt index d9a69d1c9b..2cea0709a7 100644 --- a/ext/standard/tests/strings/strtok_variation6.phpt +++ b/ext/standard/tests/strings/strtok_variation6.phpt @@ -47,119 +47,7 @@ foreach( $string_array as $string ) { echo "Done\n"; ?> ---EXPECTF-- -*** Testing strtok() : with invalid escape sequences in token *** - ---- Iteration 1 --- -string(5) "hello" -string(6) " world" -bool(false) -bool(false) - -string(7) "khellok" -string(6) "worldk" -bool(false) -bool(false) - -string(5) "hello" -string(6) " world" -bool(false) -bool(false) - -string(5) "hello" -string(6) " world" -bool(false) -bool(false) - -string(1) " " -string(1) "r" -bool(false) -bool(false) - - ---- Iteration 2 --- -string(1) "\" -string(6) "hello\" -string(7) " world\" -bool(false) - -string(9) "\khello\k" -string(7) "world\k" -bool(false) -bool(false) - -string(1) "\" -string(6) "hello\" -string(7) " world\" -bool(false) - -string(5) "hello" -string(6) " world" -bool(false) -bool(false) - -string(1) " " -string(1) "r" -bool(false) -bool(false) - - ---- Iteration 3 --- -string(1) "/" -string(6) "hello\" -string(7) " world/" -bool(false) - -string(8) "khello\k" -string(5) "world" -string(1) "k" -bool(false) - -string(6) "hello\" -string(6) " world" -bool(false) -bool(false) - -string(1) "/" -string(5) "hello" -string(7) " world/" -bool(false) - -string(1) "/" -string(1) " " -string(1) "r" -string(1) "/" - - ---- Iteration 4 --- -string(6) "/hello" -string(7) "/ world" -bool(false) -bool(false) - -string(6) "hellok" -string(5) "world" -bool(false) -bool(false) - -string(5) "hello" -string(6) " world" -bool(false) -bool(false) - -string(6) "/hello" -string(7) "/ world" -bool(false) -bool(false) - -string(1) "/" -string(2) "/ " -string(1) "r" -bool(false) - -Done - ---UEXPECTF-- +--EXPECT-- *** Testing strtok() : with invalid escape sequences in token *** --- Iteration 1 --- @@ -269,4 +157,4 @@ unicode(2) "/ " unicode(1) "r" bool(false) -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/strtok_variation7.phpt b/ext/standard/tests/strings/strtok_variation7.phpt index ac5a82161d..da52f3edbe 100644 --- a/ext/standard/tests/strings/strtok_variation7.phpt +++ b/ext/standard/tests/strings/strtok_variation7.phpt @@ -37,77 +37,7 @@ for( $count = 1; $count <=10; $count++ ) { echo "Done\n"; ?> ---EXPECTF-- -*** Testing strtok() : with modification of input string in between tokenising *** - -*** Testing strtok() when string being tokenised is prefixed with another string in between the process *** -string(4) "this" - --- Token 1 is -- -string(2) "is" - --- Input str is "extra string this is a sample string" -- - --- Token 2 is -- -string(1) "a" - --- Input str is "extra string this is a sample string" -- - --- Token 3 is -- -string(6) "sample" - --- Input str is "extra string this is a sample string" -- - --- Token 4 is -- -string(6) "string" - --- Input str is "extra string this is a sample string" -- - --- Token 5 is -- -bool(false) - --- Input str is "extra string this is a sample string" -- - --- Token 6 is -- -bool(false) - --- Input str is "extra string this is a sample string" -- - -*** Testing strtok() when string being tokenised is suffixed with another string in between the process *** -string(5) "extra" - --- Token 1 is -- -string(6) "string" - --- Token 2 is -- -string(4) "this" - --- Token 3 is -- -string(2) "is" - --- Token 4 is -- -string(1) "a" - --- Token 5 is -- -string(6) "sample" - --- Token 6 is -- -string(6) "string" - --- Token 7 is -- -bool(false) - --- Token 8 is -- -bool(false) - --- Token 9 is -- -bool(false) - --- Token 10 is -- -bool(false) -Done - ---UEXPECTF-- +--EXPECT-- *** Testing strtok() : with modification of input string in between tokenising *** *** Testing strtok() when string being tokenised is prefixed with another string in between the process *** @@ -175,4 +105,4 @@ bool(false) -- Token 10 is -- bool(false) -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/strtolower-win32.phpt b/ext/standard/tests/strings/strtolower-win32.phpt Binary files differindex 184b145896..7a9b91736e 100644 --- a/ext/standard/tests/strings/strtolower-win32.phpt +++ b/ext/standard/tests/strings/strtolower-win32.phpt diff --git a/ext/standard/tests/strings/strtolower.phpt b/ext/standard/tests/strings/strtolower.phpt Binary files differindex dcff0eb45b..e45960d82c 100644 --- a/ext/standard/tests/strings/strtolower.phpt +++ b/ext/standard/tests/strings/strtolower.phpt diff --git a/ext/standard/tests/strings/strtotitle.phpt b/ext/standard/tests/strings/strtotitle.phpt index bc21d2a622..acd257a989 100644 --- a/ext/standard/tests/strings/strtotitle.phpt +++ b/ext/standard/tests/strings/strtotitle.phpt @@ -22,14 +22,7 @@ foreach( $strings as $string ) echo strtotitle( $string ), "\n"; } ?> ---EXPECT-- -ßen -ßen -Året -Året -Året ßen -Året ßen ---UEXPECTF-- +--EXPECTF-- Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d SSen Ssen diff --git a/ext/standard/tests/strings/strtoupper.phpt b/ext/standard/tests/strings/strtoupper.phpt index 2042b0a06a..37d45ac629 100644 --- a/ext/standard/tests/strings/strtoupper.phpt +++ b/ext/standard/tests/strings/strtoupper.phpt @@ -19,8 +19,6 @@ $chars = "äöü"; setlocale(LC_CTYPE, "de_DE", "de", "german", "ge", "de_DE.ISO8859-1", "ISO8859-1"); echo strtoupper($chars)."\n"; ?> ---EXPECT-- -ÄÖÜ ---UEXPECTF-- +--EXPECTF-- Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d ÄÖÜ diff --git a/ext/standard/tests/strings/strtoupper1-win32.phpt b/ext/standard/tests/strings/strtoupper1-win32.phpt Binary files differindex 132c1672a2..316f8a13fe 100644 --- a/ext/standard/tests/strings/strtoupper1-win32.phpt +++ b/ext/standard/tests/strings/strtoupper1-win32.phpt diff --git a/ext/standard/tests/strings/strtoupper1.phpt b/ext/standard/tests/strings/strtoupper1.phpt Binary files differindex 09eb995965..1e7c099ad6 100644 --- a/ext/standard/tests/strings/strtoupper1.phpt +++ b/ext/standard/tests/strings/strtoupper1.phpt diff --git a/ext/standard/tests/strings/strtr.phpt b/ext/standard/tests/strings/strtr.phpt index 1386612182..ad07a0de60 100644 --- a/ext/standard/tests/strings/strtr.phpt +++ b/ext/standard/tests/strings/strtr.phpt @@ -7,6 +7,4 @@ $trans = array("hello"=>"hi", "hi"=>"hello", "a"=>"A", "world"=>"planet"); var_dump(strtr("# hi all, I said hello world! #", $trans)); ?> --EXPECT-- -string(32) "# hello All, I sAid hi planet! #" ---UEXPECT-- unicode(32) "# hello All, I sAid hi planet! #" diff --git a/ext/standard/tests/strings/strtr2.phpt b/ext/standard/tests/strings/strtr2.phpt index b44f14ff9c..97539cd756 100644 --- a/ext/standard/tests/strings/strtr2.phpt +++ b/ext/standard/tests/strings/strtr2.phpt @@ -1,7 +1,5 @@ --TEST-- strtr() function (with unicode chars and combining sequences) ---SKIPIF-- -<?php if (!unicode_semantics()) die('skip unicode.semantics=off'); ?> --FILE-- <?php declare(encoding="utf8"); diff --git a/ext/standard/tests/strings/strtr3.phpt b/ext/standard/tests/strings/strtr3.phpt index 722e541516..c86f1e0e77 100755 --- a/ext/standard/tests/strings/strtr3.phpt +++ b/ext/standard/tests/strings/strtr3.phpt @@ -9,6 +9,4 @@ $trans = array("¤à®¢ "=>"âà ¢ ", "âà ¢ "=>"¤à®¢ ", " "=>"€", "¯®¤ ¨¬¨"=>" âà var_dump(strtr("# ¤¢®à¥ ¤à®¢ , ¯®¤ ¨¬¨ âà ¢ . #", $trans)); ?> --EXPECT-- -string(35) "# € ¤¢®à¥ âà ¢ , âà ¢¥ ¤à®¢ . #" ---UEXPECT-- unicode(35) "# € ¤¢®à¥ âà ¢ , âà ¢¥ ¤à®¢ . #" diff --git a/ext/standard/tests/strings/strtr_basic.phpt b/ext/standard/tests/strings/strtr_basic.phpt index 7ece869ddc..0a512ab6c1 100644 --- a/ext/standard/tests/strings/strtr_basic.phpt +++ b/ext/standard/tests/strings/strtr_basic.phpt @@ -37,22 +37,7 @@ var_dump( strtr('test strtr', $trans2_arr) ); var_dump( strtr($heredoc_str, $trans1_arr) ); echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing strtr() : basic functionality *** -string(10) "TesT sTrTr" -string(10) "TesT sTrTr" -string(10) "TesT sTrTr" -string(10) "TEST STrTr" -string(10) "TEST STrTr" -string(10) "TEST STrTr" -string(10) "TEST STrTr" -string(10) "TEST STrTr" -string(10) "TEST STrTr" -string(10) "TEST STrTr" -string(10) "TEST STrTr" -string(10) "TEST STrTr" -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing strtr() : basic functionality *** unicode(10) "TesT sTrTr" unicode(10) "TesT sTrTr" diff --git a/ext/standard/tests/strings/strtr_error.phpt b/ext/standard/tests/strings/strtr_error.phpt index a2d00c3ffa..8466a92011 100644 --- a/ext/standard/tests/strings/strtr_error.phpt +++ b/ext/standard/tests/strings/strtr_error.phpt @@ -39,18 +39,3 @@ NULL Warning: Wrong parameter count for strtr() in %s on line %d NULL Done ---UEXPECTF-- -*** Testing strtr() : error conditions *** - --- Testing strtr() function with Zero arguments -- -Warning: Wrong parameter count for strtr() in %s on line %d -NULL - --- Testing strtr() function with less than expected no. of arguments -- -Warning: Wrong parameter count for strtr() in %s on line %d -NULL - --- Testing strtr() function with more than expected no. of arguments -- -Warning: Wrong parameter count for strtr() in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/strtr_variation1.phpt b/ext/standard/tests/strings/strtr_variation1.phpt index b5bbfb0909..c0a928df3b 100644 --- a/ext/standard/tests/strings/strtr_variation1.phpt +++ b/ext/standard/tests/strings/strtr_variation1.phpt @@ -56,35 +56,7 @@ for($index = 0; $index < count($str_arr); $index++) { } echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing strtr() : numeric & regular double quoted strings *** --- Iteration 1 -- -string(3) "abc" -string(3) "a23" --- Iteration 2 -- -string(3) "123" -string(3) "1bc" --- Iteration 3 -- -string(6) "a1b2c3" -string(6) "a1b2c3" --- Iteration 4 -- -string(3) "abc" -string(3) "a23" --- Iteration 5 -- -string(3) "123" -string(3) "1bc" --- Iteration 6 -- -string(6) "a1b2c3" -string(6) "a1b2c3" --- Iteration 7 -- -string(14) "abc -123 -a1b2c3" -string(14) "a23 -1bc -a1b2c3" -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing strtr() : numeric & regular double quoted strings *** -- Iteration 1 -- unicode(3) "abc" diff --git a/ext/standard/tests/strings/strtr_variation2.phpt b/ext/standard/tests/strings/strtr_variation2.phpt index 8405e2ed12..b07a566a9e 100644 --- a/ext/standard/tests/strings/strtr_variation2.phpt +++ b/ext/standard/tests/strings/strtr_variation2.phpt @@ -60,35 +60,7 @@ for($index = 0; $index < count($str_arr); $index++) { } echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing strtr() : string containing special chars for 'str' arg *** --- Iteration 1 -- -string(1) "s" -string(1) "$" --- Iteration 2 -- -string(3) "pec" -string(3) "#%*" --- Iteration 3 -- -string(10) "text i als" -string(10) "text & @()" --- Iteration 4 -- -string(1) "s" -string(1) "$" --- Iteration 5 -- -string(3) "pec" -string(3) "#%*" --- Iteration 6 -- -string(10) "text i als" -string(10) "text & @()" --- Iteration 7 -- -string(17) "s -peci -text i als" -string(17) "$ -#%*& -text & @()" -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing strtr() : string containing special chars for 'str' arg *** -- Iteration 1 -- unicode(1) "s" diff --git a/ext/standard/tests/strings/strtr_variation3.phpt b/ext/standard/tests/strings/strtr_variation3.phpt index a878a8ee49..a8d92595ec 100644 --- a/ext/standard/tests/strings/strtr_variation3.phpt +++ b/ext/standard/tests/strings/strtr_variation3.phpt @@ -65,44 +65,7 @@ for($index = 0; $index < count($str_arr); $index++) { } echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing strtr() : string containing escape sequences for 'str' arg *** --- Iteration 1 -- -string(9) "SesSTsttE" -string(9) " es \stt -" --- Iteration 2 -- -string(12) "TtestTTstrtr" -string(12) "\test\\strtr" --- Iteration 3 -- -string(12) "TtestETstrtr" -string(11) "ttestTstrtr" --- Iteration 4 -- -string(9) "$variable" -string(9) "$variable" --- Iteration 5 -- -string(7) ""quotes" -string(7) ""quotes" --- Iteration 6 -- -string(12) "TtesTtTsttTr" -string(12) "\tes\t\stt\r" --- Iteration 7 -- -string(12) "TtestTTstrtr" -string(12) "\test\\strtr" --- Iteration 8 -- -string(15) "TntestTrTnstrtr" -string(15) "\ntest\r\nstrtr" --- Iteration 9 -- -string(10) "T$variable" -string(10) "\$variable" --- Iteration 10 -- -string(8) "T"quotes" -string(8) "\"quotes" --- Iteration 11 -- -string(54) "SesSTsttETTtestTTstrtrTTtestETstrtrT$variableTT"quotes" -string(52) " es \sttT\test\\strtrtttestTstrtrt$variablet\"quotes" -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing strtr() : string containing escape sequences for 'str' arg *** -- Iteration 1 -- unicode(9) "SesSTsttE" diff --git a/ext/standard/tests/strings/strtr_variation4.phpt b/ext/standard/tests/strings/strtr_variation4.phpt index 341b8d5b4b..81585010e4 100644 --- a/ext/standard/tests/strings/strtr_variation4.phpt +++ b/ext/standard/tests/strings/strtr_variation4.phpt @@ -53,31 +53,7 @@ for($index = 0; $index < count($str_arr); $index++) { } echo "*** Done ***"; ?> ---EXPECTF-- -*** Testing strtr() : empty string & null for 'str' arg *** --- Iteration 1 -- -string(0) "" -string(0) "" --- Iteration 2 -- -string(0) "" -string(0) "" --- Iteration 3 -- -string(0) "" -string(0) "" --- Iteration 4 -- -string(0) "" -string(0) "" --- Iteration 5 -- -string(0) "" -string(0) "" --- Iteration 6 -- -string(0) "" -string(0) "" --- Iteration 7 -- -string(0) "" -string(0) "" -*** Done *** ---UEXPECTF-- +--EXPECT-- *** Testing strtr() : empty string & null for 'str' arg *** -- Iteration 1 -- unicode(0) "" diff --git a/ext/standard/tests/strings/strtr_variation5.phpt b/ext/standard/tests/strings/strtr_variation5.phpt index 6b7c8a376a..66010699f1 100644 --- a/ext/standard/tests/strings/strtr_variation5.phpt +++ b/ext/standard/tests/strings/strtr_variation5.phpt @@ -91,53 +91,6 @@ echo "*** Done ***"; --EXPECTF-- *** Testing strtr() function: with unexpected inputs for 'str' *** -- Iteration 1 -- -string(1) "a" --- Iteration 2 -- -string(1) "t" --- Iteration 3 -- -string(2) "-m" --- Iteration 4 -- -string(4) "ta.5" --- Iteration 5 -- -string(5) "-ma.5" --- Iteration 6 -- -string(12) "ta5aaaaaaaaa" --- Iteration 7 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Arr0y" --- Iteration 8 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Arr0y" --- Iteration 9 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Arr0y" --- Iteration 10 -- -string(1) "t" --- Iteration 11 -- -string(0) "" --- Iteration 12 -- -string(1) "t" --- Iteration 13 -- -string(0) "" --- Iteration 14 -- -string(0) "" --- Iteration 15 -- -string(0) "" --- Iteration 16 -- -string(13) "s02ple objec1" --- Iteration 17 -- -string(%d) "Resource id #5" --- Iteration 18 -- -string(0) "" --- Iteration 19 -- -string(0) "" -*** Done *** ---UEXPECTF-- -*** Testing strtr() function: with unexpected inputs for 'str' *** --- Iteration 1 -- unicode(1) "a" -- Iteration 2 -- unicode(1) "t" diff --git a/ext/standard/tests/strings/strtr_variation6.phpt b/ext/standard/tests/strings/strtr_variation6.phpt index 067f10bae4..65149d462c 100644 --- a/ext/standard/tests/strings/strtr_variation6.phpt +++ b/ext/standard/tests/strings/strtr_variation6.phpt @@ -91,53 +91,6 @@ echo "*** Done ***"; --EXPECTF-- *** Testing strtr() function: with unexpected inputs for 'from' *** -- Iteration 1 -- -string(6) "a12atm" --- Iteration 2 -- -string(6) "0a2atm" --- Iteration 3 -- -string(6) "01tatm" --- Iteration 4 -- -string(6) "ta2atm" --- Iteration 5 -- -string(6) "m1tatm" --- Iteration 6 -- -string(6) "2a2atm" --- Iteration 7 -- - -Notice: Array to string conversion in %s on line %d -string(6) "0120tm" --- Iteration 8 -- - -Notice: Array to string conversion in %s on line %d -string(6) "0120tm" --- Iteration 9 -- - -Notice: Array to string conversion in %s on line %d -string(6) "0120tm" --- Iteration 10 -- -string(6) "0a2atm" --- Iteration 11 -- -string(6) "012atm" --- Iteration 12 -- -string(6) "0a2atm" --- Iteration 13 -- -string(6) "012atm" --- Iteration 14 -- -string(6) "012atm" --- Iteration 15 -- -string(6) "012atm" --- Iteration 16 -- -string(6) "012ttm" --- Iteration 17 -- -string(6) "012atm" --- Iteration 18 -- -string(6) "012atm" --- Iteration 19 -- -string(6) "012atm" -*** Done *** ---UEXPECTF-- -*** Testing strtr() function: with unexpected inputs for 'from' *** --- Iteration 1 -- unicode(6) "a12atm" -- Iteration 2 -- unicode(6) "0a2atm" diff --git a/ext/standard/tests/strings/strtr_variation7.phpt b/ext/standard/tests/strings/strtr_variation7.phpt index 136c1f665e..b1e028716e 100644 --- a/ext/standard/tests/strings/strtr_variation7.phpt +++ b/ext/standard/tests/strings/strtr_variation7.phpt @@ -92,72 +92,6 @@ echo "*** Done ***"; *** Testing strtr() function: with unexpected inputs for 'to' *** -- Iteration 1 -- -string(6) "0120tm" - --- Iteration 2 -- -string(6) "0121tm" - --- Iteration 3 -- -string(6) "012-2m" - --- Iteration 4 -- -string(6) "51210." - --- Iteration 5 -- -string(6) ".52-20" - --- Iteration 6 -- -string(6) "000105" - --- Iteration 7 -- - -Notice: Array to string conversion in %s on line %d -string(6) "ay2Arr" - --- Iteration 8 -- - -Notice: Array to string conversion in %s on line %d -string(6) "ay2Arr" - --- Iteration 9 -- - -Notice: Array to string conversion in %s on line %d -string(6) "ay2Arr" - --- Iteration 10 -- -string(6) "0121tm" - --- Iteration 11 -- -string(6) "012atm" - --- Iteration 12 -- -string(6) "0121tm" - --- Iteration 13 -- -string(6) "012atm" - --- Iteration 14 -- -string(6) "012atm" - --- Iteration 15 -- -string(6) "012atm" - --- Iteration 16 -- -string(6) "plesam" - --- Iteration 17 -- -string(6) "ourRes" - --- Iteration 18 -- -string(6) "012atm" - --- Iteration 19 -- -string(6) "012atm" -*** Done *** ---UEXPECTF-- -*** Testing strtr() function: with unexpected inputs for 'to' *** - --- Iteration 1 -- unicode(6) "0120tm" -- Iteration 2 -- diff --git a/ext/standard/tests/strings/strtr_variation8.phpt b/ext/standard/tests/strings/strtr_variation8.phpt index 667ebb1160..b129145e22 100644 --- a/ext/standard/tests/strings/strtr_variation8.phpt +++ b/ext/standard/tests/strings/strtr_variation8.phpt @@ -119,98 +119,6 @@ Warning: strtr(): The second argument is not an array in %s on line %d bool(false) -- Iteration 7 -- -string(6) "012atm" - --- Iteration 8 -- -string(6) "012atm" - --- Iteration 9 -- -string(6) "122atm" - --- Iteration 10 -- - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 11 -- - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 12 -- - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 13 -- - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 14 -- - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 15 -- - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 16 -- - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 17 -- - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 18 -- - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 19 -- - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) -*** Done *** ---UEXPECTF-- -*** Testing strtr() function: with unexpected inputs for 'replace_pairs' *** - --- Iteration 1 -- - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 2 -- - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 3 -- - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 4 -- - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 5 -- - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 6 -- - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 7 -- unicode(6) "012atm" -- Iteration 8 -- diff --git a/ext/standard/tests/strings/strtr_variation9.phpt b/ext/standard/tests/strings/strtr_variation9.phpt index 494f71907b..271618bd22 100644 --- a/ext/standard/tests/strings/strtr_variation9.phpt +++ b/ext/standard/tests/strings/strtr_variation9.phpt @@ -86,165 +86,6 @@ echo "*** Done ***"; *** Testing strtr() function: with unexpected inputs for all arguments *** -- Iteration 1 -- -string(1) "0" - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 2 -- -string(1) "1" - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 3 -- -string(2) "-2" - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 4 -- -string(4) "10.5" - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 5 -- -string(5) "-20.5" - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 6 -- -string(12) "105000000000" - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 7 -- - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - --- Iteration 8 -- - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - --- Iteration 9 -- - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - --- Iteration 10 -- - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - --- Iteration 11 -- - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - --- Iteration 12 -- -string(1) "1" - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 13 -- -string(0) "" - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 14 -- -string(1) "1" - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 15 -- -string(0) "" - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 16 -- -string(0) "" - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 17 -- -string(0) "" - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 18 -- -string(9) "My String" - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 19 -- -string(%d) "Resource id #5" - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 20 -- -string(0) "" - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) - --- Iteration 21 -- -string(0) "" - -Warning: strtr(): The second argument is not an array in %s on line %d -bool(false) -*** Done *** ---UEXPECTF-- -*** Testing strtr() function: with unexpected inputs for all arguments *** - --- Iteration 1 -- unicode(1) "0" Warning: strtr(): The second argument is not an array in %s on line %d diff --git a/ext/standard/tests/strings/strval.phpt b/ext/standard/tests/strings/strval.phpt index fd82ab9155..7a4ebe4aa5 100644 --- a/ext/standard/tests/strings/strval.phpt +++ b/ext/standard/tests/strings/strval.phpt @@ -14,17 +14,6 @@ var_dump(strval(false)); var_dump(strval(array('foo'))); ?> --EXPECTF-- -string(3) "bar" -string(3) "BAR" -string(6) "foobar" -string(1) "1" -string(3) "1.1" -string(1) "1" -string(0) "" - -Notice: Array to string conversion in %sstrval.php on line 11 -string(5) "Array" ---UEXPECTF-- unicode(3) "bar" unicode(3) "BAR" unicode(6) "foobar" diff --git a/ext/standard/tests/strings/substr.phpt b/ext/standard/tests/strings/substr.phpt Binary files differindex d98fb4e4f1..eda3f4c808 100644 --- a/ext/standard/tests/strings/substr.phpt +++ b/ext/standard/tests/strings/substr.phpt diff --git a/ext/standard/tests/strings/substr_compare.phpt b/ext/standard/tests/strings/substr_compare.phpt index 2d6749aaf2..86f8891e7f 100644 --- a/ext/standard/tests/strings/substr_compare.phpt +++ b/ext/standard/tests/strings/substr_compare.phpt @@ -36,27 +36,6 @@ Test Warning: substr_compare(): The length must be greater than zero in %s on line %d bool(false) -Warning: substr_compare() expects parameter 4 to be long, string given in %s on line %d -bool(false) -Done ---UEXPECTF-- -int(0) -int(0) -int(0) -int(1) -int(-1) - -Warning: substr_compare(): The start position cannot exceed initial string length in %s on line %d -bool(false) -int(0) - -Warning: substr_compare() expects parameter 5 to be boolean, object given in %s on line %d -bool(false) -Test - -Warning: substr_compare(): The length must be greater than zero in %s on line %d -bool(false) - Warning: substr_compare() expects parameter 4 to be long, Unicode string given in %s on line %d bool(false) Done diff --git a/ext/standard/tests/strings/substr_count_basic.phpt b/ext/standard/tests/strings/substr_count_basic.phpt index 5aa3c9d2cd..d7662cd95f 100644 --- a/ext/standard/tests/strings/substr_count_basic.phpt +++ b/ext/standard/tests/strings/substr_count_basic.phpt @@ -19,19 +19,7 @@ var_dump(substr_count($a, "bca", 200, 50)); echo "Done\n"; ?> ---EXPECTF-- -***Testing basic operations *** -bool(false) -bool(false) -int(0) -int(0) -int(0) -int(100) -int(200) -int(160) -int(10) -Done ---UEXPECTF-- +--EXPECT-- ***Testing basic operations *** bool(false) bool(false) diff --git a/ext/standard/tests/strings/substr_count_variation_001.phpt b/ext/standard/tests/strings/substr_count_variation_001.phpt index 6892ed88ed..129ece249e 100644 --- a/ext/standard/tests/strings/substr_count_variation_001.phpt +++ b/ext/standard/tests/strings/substr_count_variation_001.phpt @@ -68,51 +68,6 @@ int(2) -- 3rd or 4th arg as NULL -- -Warning: substr_count() expects parameter 3 to be long, string given in %s on line %d -NULL - -Warning: substr_count() expects parameter 3 to be long, string given in %s on line %d -NULL - -Warning: substr_count() expects parameter 3 to be long, string given in %s on line %d -NULL -int(0) -int(2) - --- overlapped substrings -- -int(2) -int(2) - --- complex strings containing other than 7-bit chars -- -int(2) -int(2) -int(1) - --- heredoc string -- -int(14) -int(16) - --- heredoc null string -- -int(0) -int(0) -int(0) -Done ---UEXPECTF-- -*** Testing possible variations *** --- 3rd or 4th arg as string -- -int(1) -int(1) - -Notice: A non well formed numeric value encountered in %s on line %d -int(2) - -Notice: A non well formed numeric value encountered in %s on line %d - -Notice: A non well formed numeric value encountered in %s on line %d -int(2) - --- 3rd or 4th arg as NULL -- - Warning: substr_count() expects parameter 3 to be long, Unicode string given in %s on line %d NULL diff --git a/ext/standard/tests/strings/substr_count_variation_002.phpt b/ext/standard/tests/strings/substr_count_variation_002.phpt index 77aef8cdfe..a1310a22b5 100644 --- a/ext/standard/tests/strings/substr_count_variation_002.phpt +++ b/ext/standard/tests/strings/substr_count_variation_002.phpt @@ -34,24 +34,7 @@ var_dump(substr_count($str, "0")); echo "Done\n"; ?> ---EXPECTF-- -*** Testing possible variations *** - --- complex strings containing other than 7-bit chars -- -int(2) -int(2) -int(1) - --- heredoc string -- -int(14) -int(16) - --- heredoc null string -- -int(0) -int(0) -int(0) -Done ---UEXPECTF-- +--EXPECT-- *** Testing possible variations *** -- complex strings containing other than 7-bit chars -- diff --git a/ext/standard/tests/strings/substr_replace.phpt b/ext/standard/tests/strings/substr_replace.phpt index a0c338e8ee..9f2cf99f38 100644 --- a/ext/standard/tests/strings/substr_replace.phpt +++ b/ext/standard/tests/strings/substr_replace.phpt @@ -447,368 +447,6 @@ echo "\n"; ?> --EXPECT-- substr_replace('try this', 'bala ', 2) -string(7) "trbala " - -substr_replace('try this', 'bala ', 2, 3) -string(10) "trbala his" - -substr_replace('try this', 'bala ', 2, 0) -string(13) "trbala y this" - -substr_replace('try this', 'bala ', 2, -2) -string(9) "trbala is" - - - -substr_replace('try this', array ( 0 => 'bala ',), 4 -string(9) "try bala " - -substr_replace('try this', array ( 0 => 'bala ',), 4 -string(10) "try bala s" - - - - -substr_replace(array ( 0 => 'ala portokala',), array ( 0 => 'bala ',), array ( 0 => 4,) -array(1) { - [0]=> - string(9) "ala bala " -} - -substr_replace(array ( 0 => 'ala portokala',), array ( 0 => 'bala ',), array ( 0 => 4,), array ( 0 => 3,)) -array(1) { - [0]=> - string(15) "ala bala tokala" -} - -substr_replace(array ( 0 => 'ala portokala',), array ( 0 => 'bala ',), array ( 0 => 4,), array ( 0 => 0,)) -array(1) { - [0]=> - string(18) "ala bala portokala" -} - -substr_replace(array ( 0 => 'ala portokala',), array ( 0 => 'bala ',), array ( 0 => 4,), array ( 0 => -2,)) -array(1) { - [0]=> - string(11) "ala bala la" -} - - - -substr_replace(array ( 0 => 'ala portokala',), 'bala ',4) -array(1) { - [0]=> - string(9) "ala bala " -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), array ( 0 => 'bala ',),4, 3) -array(2) { - [0]=> - string(15) "ala bala tokala" - [1]=> - string(5) "try s" -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), 'bala ',4, 3) -array(2) { - [0]=> - string(15) "ala bala tokala" - [1]=> - string(10) "try bala s" -} - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), array ( 0 => 'bala ',),4, 0) -array(2) { - [0]=> - string(18) "ala bala portokala" - [1]=> - string(8) "try this" -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), 'bala ',4, 0) -array(2) { - [0]=> - string(18) "ala bala portokala" - [1]=> - string(13) "try bala this" -} - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), array ( 0 => 'bala ',),4, -2) -array(2) { - [0]=> - string(11) "ala bala la" - [1]=> - string(6) "try is" -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), 'bala ',4, -2) -array(2) { - [0]=> - string(11) "ala bala la" - [1]=> - string(11) "try bala is" -} - - - - - - -substr_replace(array ( 0 => 'ala portokala',), 'bala ',array ( 0 => 4,)) -array(1) { - [0]=> - string(9) "ala bala " -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), array ( 0 => 'bala ',),array ( 0 => 4,), 3) -array(2) { - [0]=> - string(15) "ala bala tokala" - [1]=> - string(5) " this" -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), 'bala ',array ( 0 => 4,), 3) -array(2) { - [0]=> - string(15) "ala bala tokala" - [1]=> - string(10) "bala this" -} - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), array ( 0 => 'bala ',),array ( 0 => 4,), 0) -array(2) { - [0]=> - string(18) "ala bala portokala" - [1]=> - string(8) "try this" -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), 'bala ',array ( 0 => 4,), 0) -array(2) { - [0]=> - string(18) "ala bala portokala" - [1]=> - string(13) "bala try this" -} - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), array ( 0 => 'bala ',),array ( 0 => 4,), -2) -array(2) { - [0]=> - string(11) "ala bala la" - [1]=> - string(2) "is" -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), 'bala ',array ( 0 => 4,), -2) -array(2) { - [0]=> - string(11) "ala bala la" - [1]=> - string(7) "bala is" -} - - - - - - - -substr_replace(array ( 0 => 'ala portokala',), 'bala ',array ( 0 => 4, 1 => 2,)) -array(1) { - [0]=> - string(9) "ala bala " -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), array ( 0 => 'bala ',),array ( 0 => 4, 1 => 2,), 3) -array(2) { - [0]=> - string(15) "ala bala tokala" - [1]=> - string(5) "trhis" -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), 'bala ',array ( 0 => 4, 1 => 2,), 3) -array(2) { - [0]=> - string(15) "ala bala tokala" - [1]=> - string(10) "trbala his" -} - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), array ( 0 => 'bala ',),array ( 0 => 4, 1 => 2,), 0) -array(2) { - [0]=> - string(18) "ala bala portokala" - [1]=> - string(8) "try this" -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), 'bala ',array ( 0 => 4, 1 => 2,), 0) -array(2) { - [0]=> - string(18) "ala bala portokala" - [1]=> - string(13) "trbala y this" -} - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), array ( 0 => 'bala ',),array ( 0 => 4, 1 => 2,), -2) -array(2) { - [0]=> - string(11) "ala bala la" - [1]=> - string(4) "tris" -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), 'bala ',array ( 0 => 4, 1 => 2,), -2) -array(2) { - [0]=> - string(11) "ala bala la" - [1]=> - string(9) "trbala is" -} - - - - - - - -substr_replace(array ( 0 => 'ala portokala',), 'bala ',array ( 0 => 4, 1 => 2,)) -array(1) { - [0]=> - string(9) "ala bala " -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), array ( 0 => 'bala ',),array ( 0 => 4, 1 => 2,), array ( 0 => 3,)) -array(2) { - [0]=> - string(15) "ala bala tokala" - [1]=> - string(2) "tr" -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), 'bala ',array ( 0 => 4, 1 => 2,), array ( 0 => 3,)) -array(2) { - [0]=> - string(15) "ala bala tokala" - [1]=> - string(7) "trbala " -} - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), array ( 0 => 'bala ',),array ( 0 => 4, 1 => 2,), array ( 0 => 0,)) -array(2) { - [0]=> - string(18) "ala bala portokala" - [1]=> - string(2) "tr" -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), 'bala ',array ( 0 => 4, 1 => 2,), array ( 0 => 0,)) -array(2) { - [0]=> - string(18) "ala bala portokala" - [1]=> - string(7) "trbala " -} - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), array ( 0 => 'bala ',),array ( 0 => 4, 1 => 2,), array ( 0 => -2,)) -array(2) { - [0]=> - string(11) "ala bala la" - [1]=> - string(2) "tr" -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), 'bala ',array ( 0 => 4, 1 => 2,), array ( 0 => -2,)) -array(2) { - [0]=> - string(11) "ala bala la" - [1]=> - string(7) "trbala " -} - - - - - - - -substr_replace(array ( 0 => 'ala portokala',), 'bala ',array ( 0 => 4, 1 => 2,)) -array(1) { - [0]=> - string(9) "ala bala " -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), array ( 0 => 'bala ',),array ( 0 => 4, 1 => 2,), array ( 0 => 3, 1 => 2,)) -array(2) { - [0]=> - string(15) "ala bala tokala" - [1]=> - string(6) "trthis" -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), 'bala ',array ( 0 => 4, 1 => 2,), array ( 0 => 3, 1 => 2,)) -array(2) { - [0]=> - string(15) "ala bala tokala" - [1]=> - string(11) "trbala this" -} - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), array ( 0 => 'bala ',),array ( 0 => 4, 1 => 2,), array ( 0 => 0, 1 => 0,)) -array(2) { - [0]=> - string(18) "ala bala portokala" - [1]=> - string(8) "try this" -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), 'bala ',array ( 0 => 4, 1 => 2,), array ( 0 => 0, 1 => 0,)) -array(2) { - [0]=> - string(18) "ala bala portokala" - [1]=> - string(13) "trbala y this" -} - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), array ( 0 => 'bala ',),array ( 0 => 4, 1 => 2,), array ( 0 => -2, 1 => -3,)) -array(2) { - [0]=> - string(11) "ala bala la" - [1]=> - string(5) "trhis" -} - - -substr_replace(array ( 0 => 'ala portokala', 1 => 'try this',), 'bala ',array ( 0 => 4, 1 => 2,), array ( 0 => -2, 1 => -3,)) -array(2) { - [0]=> - string(11) "ala bala la" - [1]=> - string(10) "trbala his" -} ---UEXPECT-- -substr_replace('try this', 'bala ', 2) unicode(7) "trbala " substr_replace('try this', 'bala ', 2, 3) diff --git a/ext/standard/tests/strings/trim1.phpt b/ext/standard/tests/strings/trim1.phpt Binary files differindex f5f86c6885..977d1d04b5 100644 --- a/ext/standard/tests/strings/trim1.phpt +++ b/ext/standard/tests/strings/trim1.phpt diff --git a/ext/standard/tests/strings/ucfirst.phpt b/ext/standard/tests/strings/ucfirst.phpt index e67d5364a9..6bb1402d69 100644 --- a/ext/standard/tests/strings/ucfirst.phpt +++ b/ext/standard/tests/strings/ucfirst.phpt @@ -9,8 +9,4 @@ echo ucfirst("ßen"), "\n"; --EXPECT-- Peren Appelen -ßen ---UEXPECT-- -Peren -Appelen SSen diff --git a/ext/standard/tests/strings/ucfirst1.phpt b/ext/standard/tests/strings/ucfirst1.phpt Binary files differindex 8dc4b36c40..6f906c90a2 100644 --- a/ext/standard/tests/strings/ucfirst1.phpt +++ b/ext/standard/tests/strings/ucfirst1.phpt diff --git a/ext/standard/tests/strings/ucwords_basic.phpt b/ext/standard/tests/strings/ucwords_basic.phpt index c3c54259b8..3f5cecac8a 100644 --- a/ext/standard/tests/strings/ucwords_basic.phpt +++ b/ext/standard/tests/strings/ucwords_basic.phpt @@ -41,48 +41,7 @@ for($index = 0; $index < count($str_array); $index++) { echo "Done\n"; ?> ---EXPECTF-- -*** Testing ucwords() : basic functionality *** --- Iteration 1 -- -string(15) "Testing Ucwords" --- Iteration 2 -- -string(15) "Testing Ucwords" --- Iteration 3 -- -string(16) "Testing\tucwords" --- Iteration 4 -- -string(15) "Testing Ucwords" --- Iteration 5 -- -string(15) "Testing -Ucwords" --- Iteration 6 -- -string(16) "Testing\nucwords" --- Iteration 7 -- -string(15) "TestingUcwords" --- Iteration 8 -- -string(16) "Testing\vucwords" --- Iteration 9 -- -string(7) "Testing" --- Iteration 10 -- -string(7) "Testing" --- Iteration 11 -- -string(8) " Testing" --- Iteration 12 -- -string(8) " Testing" --- Iteration 13 -- -string(16) "Testing Ucwords" --- Iteration 14 -- -string(16) "Testing Ucwords" --- Iteration 15 -- -string(16) "Testing\rucwords" --- Iteration 16 -- -string(15) "Testing -Ucwords" --- Iteration 17 -- -string(16) "Testing\fucwords" --- Iteration 18 -- -string(15) "TestingUcwords" -Done ---UEXPECTF-- +--EXPECT-- *** Testing ucwords() : basic functionality *** -- Iteration 1 -- unicode(15) "Testing Ucwords" diff --git a/ext/standard/tests/strings/ucwords_error.phpt b/ext/standard/tests/strings/ucwords_error.phpt index fe398cd812..d245dec046 100644 --- a/ext/standard/tests/strings/ucwords_error.phpt +++ b/ext/standard/tests/strings/ucwords_error.phpt @@ -37,19 +37,5 @@ NULL Warning: ucwords() expects exactly 1 parameter, 2 given in %s on line %d NULL -string(10) "string_val" -Done ---UEXPECTF-- -*** Testing ucwords() : error conditions *** - --- Testing ucwords() function with Zero arguments -- - -Warning: ucwords() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing ucwords() function with more than expected no. of arguments -- - -Warning: ucwords() expects exactly 1 parameter, 2 given in %s on line %d -NULL unicode(10) "string_val" Done diff --git a/ext/standard/tests/strings/ucwords_variation1.phpt b/ext/standard/tests/strings/ucwords_variation1.phpt index 27666699fe..9b7ca68e8c 100644 --- a/ext/standard/tests/strings/ucwords_variation1.phpt +++ b/ext/standard/tests/strings/ucwords_variation1.phpt @@ -115,95 +115,6 @@ echo "Done\n"; --- Testing ucwords() by supplying different values for 'str' argument --- -- Iteration 1 -- -string(1) "0" --- Iteration 2 -- -string(1) "1" --- Iteration 3 -- -string(5) "12345" --- Iteration 4 -- -string(5) "-2345" --- Iteration 5 -- -string(2) "16" --- Iteration 6 -- -string(2) "32" --- Iteration 7 -- -string(3) "170" --- Iteration 8 -- -string(4) "-245" --- Iteration 9 -- -string(2) "83" --- Iteration 10 -- -string(4) "-226" --- Iteration 11 -- -string(4) "10.5" --- Iteration 12 -- -string(5) "-10.5" --- Iteration 13 -- -string(12) "101234567000" --- Iteration 14 -- -string(13) "1.07654321E-9" --- Iteration 15 -- -string(3) "0.5" --- Iteration 16 -- - -Warning: ucwords() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 17 -- - -Warning: ucwords() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 18 -- - -Warning: ucwords() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 19 -- - -Warning: ucwords() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 20 -- - -Warning: ucwords() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -NULL --- Iteration 21 -- -string(1) "1" --- Iteration 22 -- -string(0) "" --- Iteration 23 -- -string(1) "1" --- Iteration 24 -- -string(0) "" --- Iteration 25 -- -string(8) "MyString" --- Iteration 26 -- -string(0) "" --- Iteration 27 -- -string(0) "" --- Iteration 28 -- -string(0) "" --- Iteration 29 -- -string(0) "" --- Iteration 30 -- -string(5) "0x123" --- Iteration 31 -- -string(5) "0x123" --- Iteration 32 -- -string(6) "0xFF12" --- Iteration 33 -- -string(7) "-0xFF12" --- Iteration 34 -- -string(0) "" --- Iteration 35 -- -string(0) "" --- Iteration 36 -- - -Warning: ucwords() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d -NULL -Done ---UEXPECTF-- -*** Testing ucwords() : usage variations *** - ---- Testing ucwords() by supplying different values for 'str' argument --- --- Iteration 1 -- unicode(1) "0" -- Iteration 2 -- unicode(1) "1" diff --git a/ext/standard/tests/strings/ucwords_variation2.phpt b/ext/standard/tests/strings/ucwords_variation2.phpt index b3b0b31eb7..05cd3e12a5 100644 --- a/ext/standard/tests/strings/ucwords_variation2.phpt +++ b/ext/standard/tests/strings/ucwords_variation2.phpt @@ -69,34 +69,7 @@ for($index =0; $index < count($heredoc_strings); $index ++) { echo "Done\n"; ?> ---EXPECTF-- -*** Testing ucwords() : usage variations *** --- Iteration 1 -- -string(0) "" --- Iteration 2 -- -string(0) "" --- Iteration 3 -- -string(52) "Testing Ucword() With -Multiline String Using -Heredoc" --- Iteration 4 -- -string(93) "Testing -Ucword(str) With -Multiline String Using -Heredoc -String.withDifferentWhiteSpaces" --- Iteration 5 -- -string(53) "12sting 123string 4567 -String 123string -12 Test -5test" --- Iteration 6 -- -string(108) "It's Bright,but I Cann't See It. -"things In Double Quote" -'things In Single Quote' -This\line Is /with\slashs" -Done ---UEXPECTF-- +--EXPECT-- *** Testing ucwords() : usage variations *** -- Iteration 1 -- unicode(0) "" diff --git a/ext/standard/tests/strings/ucwords_variation3.phpt b/ext/standard/tests/strings/ucwords_variation3.phpt index 700e8d8fef..46ac9c74f0 100644 --- a/ext/standard/tests/strings/ucwords_variation3.phpt +++ b/ext/standard/tests/strings/ucwords_variation3.phpt @@ -56,46 +56,7 @@ for($index = 0; $index < count($str_array); $index++) { echo "Done\n"; ?> ---EXPECTF-- -*** Testing ucwords() : usage variations *** --- Iteration 1 -- -string(18) "Testing Ucwords" --- Iteration 2 -- -string(30) "T E S T I N G U C W O R D S " --- Iteration 3 -- -string(25) "Testing Function(ucwords)" --- Iteration 4 -- -string(38) "(testing ( Function (ucwords) )a )test" --- Iteration 5 -- -string(3) "(t)" --- Iteration 6 -- -string(7) " ( T )t" --- Iteration 7 -- -string(24) ""testing",ucwords,"test"" --- Iteration 8 -- -string(14) ""t""t",test, T" --- Iteration 9 -- -string(11) "'t 't',test" --- Iteration 10 -- -string(27) "\ttesting\ttesting\tucwords" --- Iteration 11 -- -string(32) "Testing\rucwords Testing Ucwords" --- Iteration 12 -- -string(37) "Testing\fucwords \f Testing \nucwords" --- Iteration 13 -- -string(39) "\ntesting\nucwords\n Testing \n Ucwords" --- Iteration 14 -- -string(20) "Using\vvertical\vtab" --- Iteration 15 -- -string(42) "T@@#$% %test ^test &test *test +test -test" --- Iteration 16 -- -string(40) "!test ~test `test` =test= @test@test.com" --- Iteration 17 -- -string(40) "/test/r\test\ Ucwords\t\y\yu\3 \yy\ /uu/" --- Iteration 18 -- -string(16) "!@#$%^&*()_+=-`~" -Done ---UEXPECTF-- +--EXPECT-- *** Testing ucwords() : usage variations *** -- Iteration 1 -- unicode(18) "Testing Ucwords" diff --git a/ext/standard/tests/strings/ucwords_variation4.phpt b/ext/standard/tests/strings/ucwords_variation4.phpt index 8a78db816a..840d58ca60 100644 --- a/ext/standard/tests/strings/ucwords_variation4.phpt +++ b/ext/standard/tests/strings/ucwords_variation4.phpt @@ -63,67 +63,7 @@ for($index = 0; $index < count($str_array); $index++) { echo "Done\n"; ?> ---EXPECTF-- -*** Testing ucwords() : usage variations *** --- Iteration 1 -- -string(18) "Testing Ucwords" --- Iteration 2 -- -string(30) "T E S T I N G U C W O R D S " --- Iteration 3 -- -string(25) "Testing Function(ucwords)" --- Iteration 4 -- -string(38) "(testing ( Function (ucwords) )a )test" --- Iteration 5 -- -string(3) "(t)" --- Iteration 6 -- -string(7) " ( T )t" --- Iteration 7 -- -string(24) ""testing",ucwords,"test"" --- Iteration 8 -- -string(14) ""t""t",test, T" --- Iteration 9 -- -string(14) "\'t \'t\',test" --- Iteration 10 -- -string(10) "Jack's Pen" --- Iteration 11 -- -string(14) "P't'y 't It's " --- Iteration 12 -- -string(24) " Testing Testing Ucwords" --- Iteration 13 -- -string(26) "\ttesting\ttesting Ucwords" --- Iteration 14 -- -string(31) "Testing -Ucwords Testing Ucwords" --- Iteration 15 -- -string(32) "Testing\rucwords Testing Ucwords" --- Iteration 16 -- -string(34) "TestingUcwords Testing -Ucwords" --- Iteration 17 -- -string(36) "Testing\fucwords \f Testing -Ucwords" --- Iteration 18 -- -string(35) " -Testing -Ucwords - Testing - Ucwords" --- Iteration 19 -- -string(39) "\ntesting\nucwords\n Testing \n Ucwords" --- Iteration 20 -- -string(18) "UsingVerticalTab" --- Iteration 21 -- -string(20) "Using\vvertical\vtab" --- Iteration 22 -- -string(42) "T@@#$% %test ^test &test *test +test -test" --- Iteration 23 -- -string(40) "!test ~test `test` =test= @test@test.com" --- Iteration 24 -- -string(36) "/test/r Est\ Ucwords \y\y \yy\ /uu/" --- Iteration 25 -- -string(16) "!@#$%^&*()_+=-`~" -Done ---UEXPECTF-- +--EXPECT-- *** Testing ucwords() : usage variations *** -- Iteration 1 -- unicode(18) "Testing Ucwords" diff --git a/ext/standard/tests/strings/unpack.phpt b/ext/standard/tests/strings/unpack.phpt index 26f3f2eaf9..3a6068be71 100644 --- a/ext/standard/tests/strings/unpack.phpt +++ b/ext/standard/tests/strings/unpack.phpt @@ -8,4 +8,4 @@ Invalid format type validation --EXPECTF-- Warning: unpack(): Invalid format type - in %sunpack.php on line %d bool(false) -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/strings/url_t.phpt b/ext/standard/tests/strings/url_t.phpt index 42e2f1e92b..673fbcb71d 100644 --- a/ext/standard/tests/strings/url_t.phpt +++ b/ext/standard/tests/strings/url_t.phpt @@ -85,633 +85,6 @@ $sample_urls = array ( ?> --EXPECT-- array(1) { - ["path"]=> - string(0) "" -} -array(1) { - ["path"]=> - string(12) "64.246.30.37" -} -array(2) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(12) "64.246.30.37" -} -array(3) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(12) "64.246.30.37" - ["path"]=> - string(1) "/" -} -array(1) { - ["path"]=> - string(13) "64.246.30.37/" -} -array(3) { - ["host"]=> - string(12) "64.246.30.37" - ["port"]=> - int(80) - ["path"]=> - string(1) "/" -} -array(1) { - ["path"]=> - string(7) "php.net" -} -array(1) { - ["path"]=> - string(8) "php.net/" -} -array(2) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(7) "php.net" -} -array(3) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(7) "php.net" - ["path"]=> - string(1) "/" -} -array(1) { - ["path"]=> - string(11) "www.php.net" -} -array(1) { - ["path"]=> - string(12) "www.php.net/" -} -array(2) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" -} -array(3) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["path"]=> - string(1) "/" -} -array(2) { - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) -} -array(3) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) -} -array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(1) "/" -} -array(3) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["path"]=> - string(10) "/index.php" -} -array(1) { - ["path"]=> - string(12) "www.php.net/" -} -array(3) { - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(1) "/" -} -array(3) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["path"]=> - string(1) "/" -} -array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(1) "/" -} -array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(10) "/index.php" -} -array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(18) "/foo/bar/index.php" -} -array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(53) "/this/is/a/very/deep/directory/structure/and/file.php" -} -array(5) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(53) "/this/is/a/very/deep/directory/structure/and/file.php" - ["query"]=> - string(37) "lots=1&of=2¶meters=3&too=4&here=5" -} -array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(45) "/this/is/a/very/deep/directory/structure/and/" -} -array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(53) "/this/is/a/very/deep/directory/structure/and/file.php" -} -array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(28) "/this/../a/../deep/directory" -} -array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(29) "/this/../a/../deep/directory/" -} -array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(42) "/this/is/a/very/deep/directory/../file.php" -} -array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(10) "/index.php" -} -array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(10) "/index.php" -} -array(5) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(1) "/" - ["fragment"]=> - string(3) "foo" -} -array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(1) "/" -} -array(5) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(1) "/" - ["query"]=> - string(6) "test=1" -} -array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["path"]=> - string(1) "/" - ["query"]=> - string(7) "test=1&" -} -array(5) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(1) "/" - ["query"]=> - string(1) "&" -} -array(5) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(7) "test=1&" -} -array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(1) "&" -} -array(5) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(4) "foo&" -} -array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(4) "&foo" -} -array(5) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(31) "test=1&test2=char&test3=mixesCI" -} -array(5) { - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(31) "test=1&test2=char&test3=mixesCI" - ["fragment"]=> - string(16) "some_page_ref123" -} -array(7) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["user"]=> - string(6) "secret" - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(31) "test=1&test2=char&test3=mixesCI" - ["fragment"]=> - string(16) "some_page_ref123" -} -array(6) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["user"]=> - string(6) "secret" - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(31) "test=1&test2=char&test3=mixesCI" - ["fragment"]=> - string(16) "some_page_ref123" -} -array(7) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["pass"]=> - string(7) "hideout" - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(31) "test=1&test2=char&test3=mixesCI" - ["fragment"]=> - string(16) "some_page_ref123" -} -array(7) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["user"]=> - string(6) "secret" - ["pass"]=> - string(7) "hideout" - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(31) "test=1&test2=char&test3=mixesCI" - ["fragment"]=> - string(16) "some_page_ref123" -} -array(7) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["user"]=> - string(14) "secret@hideout" - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(31) "test=1&test2=char&test3=mixesCI" - ["fragment"]=> - string(16) "some_page_ref123" -} -array(8) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["user"]=> - string(6) "secret" - ["pass"]=> - string(7) "hid:out" - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(31) "test=1&test2=char&test3=mixesCI" - ["fragment"]=> - string(16) "some_page_ref123" -} -array(2) { - ["scheme"]=> - string(4) "nntp" - ["host"]=> - string(12) "news.php.net" -} -array(3) { - ["scheme"]=> - string(3) "ftp" - ["host"]=> - string(11) "ftp.gnu.org" - ["path"]=> - string(22) "/gnu/glic/glibc.tar.gz" -} -array(2) { - ["scheme"]=> - string(4) "zlib" - ["path"]=> - string(14) "http://foo@bar" -} -array(2) { - ["scheme"]=> - string(4) "zlib" - ["path"]=> - string(12) "filename.txt" -} -array(2) { - ["scheme"]=> - string(4) "zlib" - ["path"]=> - string(25) "/path/to/my/file/file.txt" -} -array(3) { - ["scheme"]=> - string(3) "foo" - ["host"]=> - string(3) "bar" - ["user"]=> - string(3) "foo" -} -array(2) { - ["scheme"]=> - string(6) "mailto" - ["path"]=> - string(15) "me@mydomain.com" -} -array(2) { - ["path"]=> - string(8) "/foo.php" - ["query"]=> - string(7) "a=b&c=d" -} -array(2) { - ["path"]=> - string(7) "foo.php" - ["query"]=> - string(7) "a=b&c=d" -} -array(6) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(15) "www.example.com" - ["port"]=> - int(8080) - ["user"]=> - string(4) "user" - ["pass"]=> - string(6) "passwd" - ["query"]=> - string(12) "bar=1&boom=0" -} -array(2) { - ["scheme"]=> - string(4) "file" - ["path"]=> - string(13) "/path/to/file" -} -array(3) { - ["scheme"]=> - string(4) "file" - ["host"]=> - string(4) "path" - ["path"]=> - string(8) "/to/file" -} -array(2) { - ["scheme"]=> - string(4) "file" - ["path"]=> - string(13) "/path/to/file" -} -array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(7) "1.2.3.4" - ["path"]=> - string(8) "/abc.asp" - ["query"]=> - string(7) "a=1&b=2" -} -array(3) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(7) "foo.com" - ["fragment"]=> - string(3) "bar" -} -array(1) { - ["scheme"]=> - string(6) "scheme" -} -array(4) { - ["scheme"]=> - string(7) "foo+bar" - ["host"]=> - string(4) "bang" - ["user"]=> - string(3) "baz" - ["path"]=> - string(4) "/bla" -} -array(2) { - ["scheme"]=> - string(2) "gg" - ["path"]=> - string(7) "9130731" -} -array(7) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(4) "host" - ["user"]=> - string(4) "user" - ["pass"]=> - string(5) "@pass" - ["path"]=> - string(5) "/path" - ["query"]=> - string(14) "argument?value" - ["fragment"]=> - string(3) "etc" -} -string(4) "http" -string(11) "www.php.net" -int(80) -string(6) "secret" -string(7) "hideout" -string(10) "/index.php" -string(31) "test=1&test2=char&test3=mixesCI" -string(16) "some_page_ref123" ---UEXPECT-- -array(1) { [u"path"]=> unicode(0) "" } diff --git a/ext/standard/tests/strings/uuencode.phpt b/ext/standard/tests/strings/uuencode.phpt index f5905fd9eb..fdc892cdf9 100644 --- a/ext/standard/tests/strings/uuencode.phpt +++ b/ext/standard/tests/strings/uuencode.phpt @@ -17,28 +17,7 @@ var_dump(convert_uudecode(substr($enc, 0, -10))); echo "Done\n"; ?> ---EXPECTF-- -Warning: convert_uuencode() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -bool(false) - -Warning: convert_uudecode() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d -bool(false) -bool(false) -bool(false) -string(60) "J?B%`(R0E7B8J*"E??7M03TE5651215=145-$1D=(2DM,.CQ-3D)60UA: -` -" -string(1) "%s" -string(42) "~!@#$%^&*()_}{POIUYTREWQQSDFGHJKL:<MNBVCXZ" -string(36) "6;F]T('9E<GD@<V]P:&ES=&EC871E9``` -` -" -string(22) "not very sophisticated" - -Warning: convert_uudecode(): The given parameter is not a valid uuencoded string in %s on line %d -bool(false) -Done ---UEXPECTF-- +--EXPECTF-- Warning: convert_uuencode() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d bool(false) diff --git a/ext/standard/tests/strings/vsprintf_basic1.phpt b/ext/standard/tests/strings/vsprintf_basic1.phpt index 2f0b76cab4..f2b3fe05ab 100644 --- a/ext/standard/tests/strings/vsprintf_basic1.phpt +++ b/ext/standard/tests/strings/vsprintf_basic1.phpt @@ -25,14 +25,7 @@ var_dump( vsprintf($format3,$arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : basic functionality - using string format *** -string(3) "one" -string(7) "one two" -string(13) "one two three" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : basic functionality - using string format *** unicode(3) "one" unicode(7) "one two" diff --git a/ext/standard/tests/strings/vsprintf_basic2.phpt b/ext/standard/tests/strings/vsprintf_basic2.phpt index 9c372d706a..09f8535271 100644 --- a/ext/standard/tests/strings/vsprintf_basic2.phpt +++ b/ext/standard/tests/strings/vsprintf_basic2.phpt @@ -28,14 +28,7 @@ var_dump( vsprintf($format3,$arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : basic functionality - using integer format *** -string(3) "111" -string(7) "111 222" -string(11) "111 222 333" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : basic functionality - using integer format *** unicode(3) "111" unicode(7) "111 222" diff --git a/ext/standard/tests/strings/vsprintf_basic3.phpt b/ext/standard/tests/strings/vsprintf_basic3.phpt index 7a18066ac9..0cbfa980f1 100644 --- a/ext/standard/tests/strings/vsprintf_basic3.phpt +++ b/ext/standard/tests/strings/vsprintf_basic3.phpt @@ -34,17 +34,7 @@ var_dump( vsprintf($format33,$arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : basic functionality - using float format *** -string(9) "11.110000" -string(9) "11.110000" -string(19) "11.110000 22.220000" -string(19) "11.110000 22.220000" -string(29) "11.110000 22.220000 33.330000" -string(29) "11.110000 22.220000 33.330000" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : basic functionality - using float format *** unicode(9) "11.110000" unicode(9) "11.110000" diff --git a/ext/standard/tests/strings/vsprintf_basic4.phpt b/ext/standard/tests/strings/vsprintf_basic4.phpt index af273385c6..5f72538593 100644 --- a/ext/standard/tests/strings/vsprintf_basic4.phpt +++ b/ext/standard/tests/strings/vsprintf_basic4.phpt @@ -24,14 +24,7 @@ var_dump( vsprintf($format3,$arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : basic functionality - using bool format *** -string(1) "1" -string(3) "1 0" -string(5) "1 0 1" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : basic functionality - using bool format *** unicode(1) "1" unicode(3) "1 0" diff --git a/ext/standard/tests/strings/vsprintf_basic5.phpt b/ext/standard/tests/strings/vsprintf_basic5.phpt index 05f864372d..1fe33240e8 100644 --- a/ext/standard/tests/strings/vsprintf_basic5.phpt +++ b/ext/standard/tests/strings/vsprintf_basic5.phpt @@ -24,14 +24,7 @@ var_dump( vsprintf($format3,$arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : basic functionality - using char format *** -string(1) "A" -string(3) "A B" -string(5) "A B C" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : basic functionality - using char format *** unicode(1) "A" unicode(3) "A B" diff --git a/ext/standard/tests/strings/vsprintf_basic6.phpt b/ext/standard/tests/strings/vsprintf_basic6.phpt index bcd316ac22..ac6e4cf478 100644 --- a/ext/standard/tests/strings/vsprintf_basic6.phpt +++ b/ext/standard/tests/strings/vsprintf_basic6.phpt @@ -24,14 +24,7 @@ var_dump( vsprintf($format3,$arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : basic functionality - using exponential format *** -string(11) "1.000000e+3" -string(23) "1.000000e+3 2.000000e+3" -string(35) "1.000000e+3 2.000000e+3 3.000000e+3" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : basic functionality - using exponential format *** unicode(11) "1.000000e+3" unicode(23) "1.000000e+3 2.000000e+3" diff --git a/ext/standard/tests/strings/vsprintf_basic7.phpt b/ext/standard/tests/strings/vsprintf_basic7.phpt index e0e339a7ee..c6ff7a3418 100644 --- a/ext/standard/tests/strings/vsprintf_basic7.phpt +++ b/ext/standard/tests/strings/vsprintf_basic7.phpt @@ -28,14 +28,7 @@ var_dump( vsprintf($format3,$arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : basic functionality - using unsigned format *** -string(10) "4294966185" -string(21) "4294966185 4293732729" -string(32) "4294966185 4293732729 4292621864" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : basic functionality - using unsigned format *** unicode(10) "4294966185" unicode(21) "4294966185 4293732729" diff --git a/ext/standard/tests/strings/vsprintf_basic7_64bit.phpt b/ext/standard/tests/strings/vsprintf_basic7_64bit.phpt index 6590b0f99f..851beb895d 100644 --- a/ext/standard/tests/strings/vsprintf_basic7_64bit.phpt +++ b/ext/standard/tests/strings/vsprintf_basic7_64bit.phpt @@ -28,13 +28,7 @@ var_dump( vsprintf($format3,$arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : basic functionality - using unsigned format *** -string(20) "18446744073709550505" -string(41) "18446744073709550505 18446744073708317049" -string(62) "18446744073709550505 18446744073708317049 18446744073707206184" -Done ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : basic functionality - using unsigned format *** unicode(20) "18446744073709550505" unicode(41) "18446744073709550505 18446744073708317049" diff --git a/ext/standard/tests/strings/vsprintf_basic8.phpt b/ext/standard/tests/strings/vsprintf_basic8.phpt index 130f72d965..34a698f24b 100644 --- a/ext/standard/tests/strings/vsprintf_basic8.phpt +++ b/ext/standard/tests/strings/vsprintf_basic8.phpt @@ -24,14 +24,7 @@ var_dump( vsprintf($format3,$arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : basic functionality - using octal format *** -string(2) "21" -string(6) "21 347" -string(10) "21 347 567" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : basic functionality - using octal format *** unicode(2) "21" unicode(6) "21 347" diff --git a/ext/standard/tests/strings/vsprintf_basic9.phpt b/ext/standard/tests/strings/vsprintf_basic9.phpt index 6759e97bc5..93958624fe 100644 --- a/ext/standard/tests/strings/vsprintf_basic9.phpt +++ b/ext/standard/tests/strings/vsprintf_basic9.phpt @@ -34,17 +34,7 @@ var_dump( vsprintf($format33,$arg3) ); echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : basic functionality - using hexadecimal format *** -string(1) "b" -string(1) "B" -string(4) "b 84" -string(4) "B 84" -string(7) "b 84 b1" -string(7) "B 84 B1" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : basic functionality - using hexadecimal format *** unicode(1) "b" unicode(1) "B" diff --git a/ext/standard/tests/strings/vsprintf_error.phpt b/ext/standard/tests/strings/vsprintf_error.phpt index 9ed669dbbd..0ece4a420f 100644 --- a/ext/standard/tests/strings/vsprintf_error.phpt +++ b/ext/standard/tests/strings/vsprintf_error.phpt @@ -44,22 +44,3 @@ bool(false) Warning: Wrong parameter count for vsprintf() in %s on line %d bool(false) Done - ---UEXPECTF-- -*** Testing vsprintf() : error conditions *** - --- Testing vsprintf() function with Zero arguments -- - -Warning: Wrong parameter count for vsprintf() in %s on line %d -bool(false) - --- Testing vsprintf() function with less than expected no. of arguments -- - -Warning: Wrong parameter count for vsprintf() in %s on line %d -bool(false) - --- testing vsprintf() function with more than expected no. of arguments -- - -Warning: Wrong parameter count for vsprintf() in %s on line %d -bool(false) -Done diff --git a/ext/standard/tests/strings/vsprintf_variation1.phpt b/ext/standard/tests/strings/vsprintf_variation1.phpt index 7d567a7ce9..5a2cc9b13b 100644 --- a/ext/standard/tests/strings/vsprintf_variation1.phpt +++ b/ext/standard/tests/strings/vsprintf_variation1.phpt @@ -102,97 +102,6 @@ echo "Done"; *** Testing vsprintf() : with unexpected values for format argument *** -- Iteration 1 -- -string(1) "0" - - -- Iteration 2 -- -string(1) "1" - - -- Iteration 3 -- -string(5) "12345" - - -- Iteration 4 -- -string(5) "-2345" - - -- Iteration 5 -- -string(4) "10.5" - - -- Iteration 6 -- -string(5) "-10.5" - - -- Iteration 7 -- -string(12) "101234567000" - - -- Iteration 8 -- -string(13) "1.07654321E-9" - - -- Iteration 9 -- -string(3) "0.5" - - -- Iteration 10 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - - -- Iteration 11 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - - -- Iteration 12 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - - -- Iteration 13 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - - -- Iteration 14 -- - -Notice: Array to string conversion in %s on line %d -string(5) "Array" - - -- Iteration 15 -- -string(0) "" - - -- Iteration 16 -- -string(0) "" - - -- Iteration 17 -- -string(1) "1" - - -- Iteration 18 -- -string(0) "" - - -- Iteration 19 -- -string(1) "1" - - -- Iteration 20 -- -string(0) "" - - -- Iteration 21 -- -string(0) "" - - -- Iteration 22 -- -string(0) "" - - -- Iteration 23 -- -string(6) "object" - - -- Iteration 24 -- -string(0) "" - - -- Iteration 25 -- -string(0) "" - - -- Iteration 26 -- -string(%d) "Resource id #%d" -Done ---UEXPECTF-- -*** Testing vsprintf() : with unexpected values for format argument *** - - -- Iteration 1 -- unicode(1) "0" -- Iteration 2 -- diff --git a/ext/standard/tests/strings/vsprintf_variation10.phpt b/ext/standard/tests/strings/vsprintf_variation10.phpt Binary files differindex 8a8e123ea4..e0eac07532 100644 --- a/ext/standard/tests/strings/vsprintf_variation10.phpt +++ b/ext/standard/tests/strings/vsprintf_variation10.phpt diff --git a/ext/standard/tests/strings/vsprintf_variation11.phpt b/ext/standard/tests/strings/vsprintf_variation11.phpt index a3cc7c734f..76574d303a 100644 --- a/ext/standard/tests/strings/vsprintf_variation11.phpt +++ b/ext/standard/tests/strings/vsprintf_variation11.phpt @@ -57,35 +57,7 @@ foreach($formats as $format) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : octal formats with octal values *** - --- Iteration 1 -- -string(1) "0" - --- Iteration 2 -- -string(14) "37777777777 1 " - --- Iteration 3 -- -string(38) "20000000000 o, 17777777777 20000000001" - --- Iteration 4 -- -string(38) " 37776543211 0000" - --- Iteration 5 -- -string(32) "111 2222 37777444445 37733333334" - --- Iteration 6 -- -string(17) "11073 7653 123 12" - --- Iteration 7 -- -string(6) "% %o o" - --- Iteration 8 -- -string(7) "1 2 3 4" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : octal formats with octal values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation11_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation11_64bit.phpt index 96ba3ace90..3df584010c 100644 --- a/ext/standard/tests/strings/vsprintf_variation11_64bit.phpt +++ b/ext/standard/tests/strings/vsprintf_variation11_64bit.phpt @@ -56,34 +56,7 @@ foreach($formats as $format) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : octal formats with octal values *** - --- Iteration 1 -- -string(1) "0" - --- Iteration 2 -- -string(25) "1777777777777777777777 1 " - --- Iteration 3 -- -string(60) "1777777777760000000000 o, 17777777777 1777777777760000000001" - --- Iteration 4 -- -string(49) " 1777777777777776543211 0000" - --- Iteration 5 -- -string(54) "111 2222 1777777777777777444445 1777777777777733333334" - --- Iteration 6 -- -string(17) "11073 7653 123 12" - --- Iteration 7 -- -string(6) "% %o o" - --- Iteration 8 -- -string(7) "1 2 3 4" -Done ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : octal formats with octal values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation12.phpt b/ext/standard/tests/strings/vsprintf_variation12.phpt index b61df97fdb..04c6e35cff 100644 --- a/ext/standard/tests/strings/vsprintf_variation12.phpt +++ b/ext/standard/tests/strings/vsprintf_variation12.phpt @@ -78,46 +78,7 @@ foreach($args_array as $args) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : octal formats and non-octal values *** - --- Iteration 1 -- -string(116) "2 0 12 - 361100 o 37777775456 2322 - - 30071 14 37777777764 37777416700 - 12 361100 2 0" - --- Iteration 2 -- -string(146) "2 37777777776 2 - 361100 o 37720715133 57062645 - - 57060664 4475347 37721631371 37720717336 - 2 361100 2 37777777776" - --- Iteration 3 -- -string(88) "0 0 0 - 173 o 37777777605 173 - - 2322 0 $0 _0 - 0 173 0 0" - --- Iteration 4 -- -string(75) "1 1 1 - 1 o 1 1 - - #1 1 $1 _1 - 1 1 1 1" - --- Iteration 5 -- -string(75) "1 1 0 - 1 o 0 1 - - #0 1 $1 _0 - 0 1 1 1" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : octal formats and non-octal values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation12_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation12_64bit.phpt index 5f74b60c56..6c82e89ea7 100644 --- a/ext/standard/tests/strings/vsprintf_variation12_64bit.phpt +++ b/ext/standard/tests/strings/vsprintf_variation12_64bit.phpt @@ -78,45 +78,7 @@ foreach($args_array as $args) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : octal formats and non-octal values *** - --- Iteration 1 -- -string(149) "2 0 12 - 361100 o 1777777777777777775456 2322 - - 30071 14 1777777777777777777764 1777777777777777416700 - 12 361100 2 0" - --- Iteration 2 -- -string(201) "2 1777777777777777777776 2 - 361100 o 1777777777777720715133 57062645 - - 57060664 4475347 1777777777777721631371 1777777777777720717336 - 2 361100 2 1777777777777777777776" - --- Iteration 3 -- -string(99) "0 0 0 - 173 o 1777777777777777777605 173 - - 2322 0 $0 _0 - 0 173 0 0" - --- Iteration 4 -- -string(75) "1 1 1 - 1 o 1 1 - - #1 1 $1 _1 - 1 1 1 1" - --- Iteration 5 -- -string(75) "1 1 0 - 1 o 0 1 - - #0 1 $1 _0 - 0 1 1 1" -Done ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : octal formats and non-octal values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation13.phpt b/ext/standard/tests/strings/vsprintf_variation13.phpt index dc0b20a4a1..c9ada69431 100644 --- a/ext/standard/tests/strings/vsprintf_variation13.phpt +++ b/ext/standard/tests/strings/vsprintf_variation13.phpt @@ -56,35 +56,7 @@ foreach($formats as $format) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : hexa formats with hexa values *** - --- Iteration 1 -- -string(1) "0" - --- Iteration 2 -- -string(13) "ffffffff 1 22" - --- Iteration 3 -- -string(28) "7fffffff x, 7000000 80000000" - --- Iteration 4 -- -string(35) " ffed2979 0000" - --- Iteration 5 -- -string(22) "#1 2222 1b6db bbbbbbbc" - --- Iteration 6 -- -string(12) "123b fab 0 a" - --- Iteration 7 -- -string(5) "%34 x" - --- Iteration 8 -- -string(7) "1 2 3 4" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : hexa formats with hexa values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation13_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation13_64bit.phpt index 036aa8c27e..235fd6da48 100644 --- a/ext/standard/tests/strings/vsprintf_variation13_64bit.phpt +++ b/ext/standard/tests/strings/vsprintf_variation13_64bit.phpt @@ -56,34 +56,7 @@ foreach($formats as $format) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : hexa formats with hexa values *** - --- Iteration 1 -- -string(1) "0" - --- Iteration 2 -- -string(21) "ffffffffffffffff 1 22" - --- Iteration 3 -- -string(36) "7fffffff x, 7000000 ffffffff80000000" - --- Iteration 4 -- -string(43) " ffffffffffed2979 0000" - --- Iteration 5 -- -string(30) "#1 2222 1b6db ffffffffbbbbbbbc" - --- Iteration 6 -- -string(12) "123b fab 0 a" - --- Iteration 7 -- -string(5) "%34 x" - --- Iteration 8 -- -string(7) "1 2 3 4" -Done ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : hexa formats with hexa values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation14.phpt b/ext/standard/tests/strings/vsprintf_variation14.phpt index 149b4812f0..a037d2c6c0 100644 --- a/ext/standard/tests/strings/vsprintf_variation14.phpt +++ b/ext/standard/tests/strings/vsprintf_variation14.phpt @@ -79,46 +79,7 @@ foreach($args_array as $args) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : hexa formats and non-hexa values *** - --- Iteration 1 -- -string(101) "2 0 a - 1e240 x fffffb2e 4d2 - - 3039 c fffffff4 fffe1dc0 - a 1e240 2 0" - --- Iteration 2 -- -string(124) "2 fffffffe 2 - 1e240 x ff439a5b bc65a5 - - bc61b4 127ae7 ff4732f9 ff439ede - 2 1e240 2 fffffffe" - --- Iteration 3 -- -string(82) "0 0 0 - 7b x ffffff85 7b - - 4d2 0 $0 _0 - 0 7b 0 0" - --- Iteration 4 -- -string(75) "1 1 1 - 1 x 1 1 - - #1 1 $1 _1 - 1 1 1 1" - --- Iteration 5 -- -string(75) "1 1 0 - 1 x 0 1 - - #0 1 $1 _0 - 0 1 1 1" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : hexa formats and non-hexa values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation14_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation14_64bit.phpt index 281a8ff9f5..da4a0b8351 100644 --- a/ext/standard/tests/strings/vsprintf_variation14_64bit.phpt +++ b/ext/standard/tests/strings/vsprintf_variation14_64bit.phpt @@ -79,45 +79,7 @@ foreach($args_array as $args) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : hexa formats and non-hexa values *** - --- Iteration 1 -- -string(125) "2 0 a - 1e240 x fffffffffffffb2e 4d2 - - 3039 c fffffffffffffff4 fffffffffffe1dc0 - a 1e240 2 0" - --- Iteration 2 -- -string(164) "2 fffffffffffffffe 2 - 1e240 x ffffffffff439a5b bc65a5 - - bc61b4 127ae7 ffffffffff4732f9 ffffffffff439ede - 2 1e240 2 fffffffffffffffe" - --- Iteration 3 -- -string(90) "0 0 0 - 7b x ffffffffffffff85 7b - - 4d2 0 $0 _0 - 0 7b 0 0" - --- Iteration 4 -- -string(75) "1 1 1 - 1 x 1 1 - - #1 1 $1 _1 - 1 1 1 1" - --- Iteration 5 -- -string(75) "1 1 0 - 1 x 0 1 - - #0 1 $1 _0 - 0 1 1 1" -Done ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : hexa formats and non-hexa values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation15.phpt b/ext/standard/tests/strings/vsprintf_variation15.phpt index dfb475e53a..4026d833d1 100644 --- a/ext/standard/tests/strings/vsprintf_variation15.phpt +++ b/ext/standard/tests/strings/vsprintf_variation15.phpt @@ -48,25 +48,7 @@ foreach($formats as $format) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : unsigned formats and unsigned values *** - --- Iteration 1 -- -string(16) "1234567 342391 0" - --- Iteration 2 -- -string(23) "2147483647 u 1234 12345" - --- Iteration 3 -- -string(25) " 1234000 2147483647 120" - --- Iteration 4 -- -string(10) "#1 0 $0 10" - --- Iteration 5 -- -string(7) "1 2 3 4" -Done ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : unsigned formats and unsigned values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation15_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation15_64bit.phpt index e10d1a4681..9a5e62defb 100644 --- a/ext/standard/tests/strings/vsprintf_variation15_64bit.phpt +++ b/ext/standard/tests/strings/vsprintf_variation15_64bit.phpt @@ -48,25 +48,7 @@ foreach($formats as $format) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : unsigned formats and unsigned values *** - --- Iteration 1 -- -string(16) "1234567 342391 0" - --- Iteration 2 -- -string(24) "12345678900 u 1234 12345" - --- Iteration 3 -- -string(34) " 1234000 9223372036854775807 120" - --- Iteration 4 -- -string(10) "#1 0 $0 10" - --- Iteration 5 -- -string(7) "1 2 3 4" -Done ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : unsigned formats and unsigned values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation16.phpt b/ext/standard/tests/strings/vsprintf_variation16.phpt index 577ceea135..74bbfb53ca 100644 --- a/ext/standard/tests/strings/vsprintf_variation16.phpt +++ b/ext/standard/tests/strings/vsprintf_variation16.phpt @@ -71,38 +71,7 @@ foreach($args_array as $args) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : unsigned formats and signed & other types of values *** - --- Iteration 1 -- -string(115) "2 0 10 - 123456 u 1234 2147483647 - 2147483647 2147483647 12345 - 12 4294967284 4294843840 _3 - 10 123456 2 0" - --- Iteration 2 -- -string(88) "0 0 0 - 123 u 4294967173 123 - 0 0 0 - 1234 0 $0 _0 - 0 123 0 0" - --- Iteration 3 -- -string(76) "1 1 1 - 1 u 1 1 - 1 1 1 - #1 1 $1 _1 - 1 1 1 1" - --- Iteration 4 -- -string(76) "1 1 0 - 1 u 0 1 - 1 1 0 - #0 1 $1 _0 - 0 1 1 1" -Done ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : unsigned formats and signed & other types of values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation16_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation16_64bit.phpt index 32e28f0562..a836dc0ecd 100644 --- a/ext/standard/tests/strings/vsprintf_variation16_64bit.phpt +++ b/ext/standard/tests/strings/vsprintf_variation16_64bit.phpt @@ -71,38 +71,7 @@ foreach($args_array as $args) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : unsigned formats and signed & other types of values *** - --- Iteration 1 -- -string(143) "2 0 10 - 123456 u 1234 20000000000 - 2000000000000 22000000000000 12345 - 12 18446744073709551604 18446744073709428160 _3 - 10 123456 2 0" - --- Iteration 2 -- -string(98) "0 0 0 - 123 u 18446744073709551493 123 - 0 0 0 - 1234 0 $0 _0 - 0 123 0 0" - --- Iteration 3 -- -string(76) "1 1 1 - 1 u 1 1 - 1 1 1 - #1 1 $1 _1 - 1 1 1 1" - --- Iteration 4 -- -string(76) "1 1 0 - 1 u 0 1 - 1 1 0 - #0 1 $1 _0 - 0 1 1 1" -Done ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : unsigned formats and signed & other types of values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation17.phpt b/ext/standard/tests/strings/vsprintf_variation17.phpt index f1a1efdb5f..757671b656 100644 --- a/ext/standard/tests/strings/vsprintf_variation17.phpt +++ b/ext/standard/tests/strings/vsprintf_variation17.phpt @@ -44,26 +44,7 @@ foreach($formats as $format) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : scientific formats and scientific values *** - --- Iteration 1 -- -string(36) "0.000000e+0 +1.000000e+0 1.000000e+3" - --- Iteration 2 -- -string(38) "2.200000e+2 e 1.000000e+1 1.000000e+10" - --- Iteration 3 -- -string(32) "-2.2000e+13 1.0000e+21 1.2000e+2" - --- Iteration 4 -- -string(74) "#########1.000000e+1 1.000000e+2 $$$$$$$$-1.000000e+3 _________1.000000e+2" - --- Iteration 5 -- -string(47) "1.000000e+3 2.000000e+3 3.000000e+3 4.000000e+3" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : scientific formats and scientific values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation18.phpt b/ext/standard/tests/strings/vsprintf_variation18.phpt index 23a4056c6f..85a169e774 100644 --- a/ext/standard/tests/strings/vsprintf_variation18.phpt +++ b/ext/standard/tests/strings/vsprintf_variation18.phpt @@ -67,39 +67,7 @@ foreach($args_array as $args) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : scientific formats and non-scientific values *** - --- Iteration 1 -- -string(232) "2.200000e+0 +2.000000e-1 1.020000e+1 - 1.234562e+5 e -1.234679e+3 1.234679e+3 - 2.0000e+1 2.1220e+2 -4.110000e+11 2.2120e+3 - 1.234578e+4 1.200000e+1 -1.200000e+1 -1.234562e+5 - 1.020000e+1 1.234562e+5 2.200000e+0 2.000000e-1" - --- Iteration 2 -- -string(228) "0.000000e+0 +0.000000e+0 0.000000e+0 - 1.230000e+2 e -1.230000e+2 1.230000e+2 - 0.0000e+0 0.0000e+0 1.234560e+5 0.0000e+0 - 1.234000e+3 0.000000e+0 0.000000e+0 0.000000e+0 - 0.000000e+0 1.230000e+2 0.000000e+0 0.000000e+0" - --- Iteration 3 -- -string(227) "1.000000e+0 +1.000000e+0 1.000000e+0 - 1.000000e+0 e 1.000000e+0 1.000000e+0 - 1.0000e+0 1.0000e+0 1.000000e+0 1.0000e+0 - 1.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0 - 1.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0" - --- Iteration 4 -- -string(227) "1.000000e+0 +1.000000e+0 0.000000e+0 - 1.000000e+0 e 0.000000e+0 1.000000e+0 - 1.0000e+0 0.0000e+0 1.000000e+0 0.0000e+0 - 0.000000e+0 1.000000e+0 1.000000e+0 0.000000e+0 - 0.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : scientific formats and non-scientific values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation19.phpt b/ext/standard/tests/strings/vsprintf_variation19.phpt index 12648088f8..75d3e3d36d 100644 --- a/ext/standard/tests/strings/vsprintf_variation19.phpt +++ b/ext/standard/tests/strings/vsprintf_variation19.phpt @@ -53,44 +53,7 @@ foreach($formats as $format) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : with white spaces in format strings *** - --- Iteration 1 -- -string(13) "111 222 333" - --- Iteration 2 -- -string(29) "1.100000 0.200000 -0.600000" - --- Iteration 3 -- -string(29) "1.120000 -1.130000 0.230000" - --- Iteration 4 -- -string(9) "1 10 11" - --- Iteration 5 -- -string(7) "A B C" - --- Iteration 6 -- -string(38) "2.000000e+1 2.000000e-1 -2.000000e+1" - --- Iteration 7 -- -string(18) "4294967285 22 33" - --- Iteration 8 -- -string(19) "12 37777777755 23" - --- Iteration 9 -- -string(16) "11 ffffffde 33" - --- Iteration 10 -- -string(16) "11 FFFFFFDE 33" - --- Iteration 11 -- -string(38) "2.000000E+1 2.000000E-1 -2.000000E+1" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : with white spaces in format strings *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation19_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation19_64bit.phpt index ebb1933a5a..9f191cc3a0 100644 --- a/ext/standard/tests/strings/vsprintf_variation19_64bit.phpt +++ b/ext/standard/tests/strings/vsprintf_variation19_64bit.phpt @@ -53,43 +53,7 @@ foreach($formats as $format) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : with white spaces in format strings *** - --- Iteration 1 -- -string(13) "111 222 333" - --- Iteration 2 -- -string(29) "1.100000 0.200000 -0.600000" - --- Iteration 3 -- -string(29) "1.120000 -1.130000 0.230000" - --- Iteration 4 -- -string(9) "1 10 11" - --- Iteration 5 -- -string(7) "A B C" - --- Iteration 6 -- -string(38) "2.000000e+1 2.000000e-1 -2.000000e+1" - --- Iteration 7 -- -string(28) "18446744073709551605 22 33" - --- Iteration 8 -- -string(30) "12 1777777777777777777755 23" - --- Iteration 9 -- -string(24) "11 ffffffffffffffde 33" - --- Iteration 10 -- -string(24) "11 FFFFFFFFFFFFFFDE 33" - --- Iteration 11 -- -string(38) "2.000000E+1 2.000000E-1 -2.000000E+1" -Done ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : with white spaces in format strings *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation2.phpt b/ext/standard/tests/strings/vsprintf_variation2.phpt index dbfaba29d7..a1cdb7515e 100644 --- a/ext/standard/tests/strings/vsprintf_variation2.phpt +++ b/ext/standard/tests/strings/vsprintf_variation2.phpt @@ -97,88 +97,6 @@ echo "Done"; *** Testing vsprintf() : with unexpected values for args argument *** -- Iteration 1 -- -string(1) "0" - --- Iteration 2 -- -string(1) "1" - --- Iteration 3 -- -string(5) "12345" - --- Iteration 4 -- -string(5) "-2345" - --- Iteration 5 -- -string(4) "10.5" - --- Iteration 6 -- -string(5) "-10.5" - --- Iteration 7 -- -string(12) "101234567000" - --- Iteration 8 -- -string(13) "1.07654321E-9" - --- Iteration 9 -- -string(3) "0.5" - --- Iteration 10 -- - -Warning: vsprintf(): Too few arguments in %s on line %d -bool(false) - --- Iteration 11 -- - -Warning: vsprintf(): Too few arguments in %s on line %d -bool(false) - --- Iteration 12 -- -string(1) "1" - --- Iteration 13 -- -string(0) "" - --- Iteration 14 -- -string(1) "1" - --- Iteration 15 -- -string(0) "" - --- Iteration 16 -- -string(0) "" - --- Iteration 17 -- -string(0) "" - --- Iteration 18 -- -string(6) "string" - --- Iteration 19 -- -string(6) "string" - --- Iteration 20 -- - -Warning: vsprintf(): Too few arguments in %s on line %d -bool(false) - --- Iteration 21 -- - -Warning: vsprintf(): Too few arguments in %s on line %d -bool(false) - --- Iteration 22 -- - -Warning: vsprintf(): Too few arguments in %s on line %d -bool(false) - --- Iteration 23 -- -string(%d) "Resource id #%d" -Done ---UEXPECTF-- -*** Testing vsprintf() : with unexpected values for args argument *** - --- Iteration 1 -- unicode(1) "0" -- Iteration 2 -- diff --git a/ext/standard/tests/strings/vsprintf_variation3.phpt b/ext/standard/tests/strings/vsprintf_variation3.phpt index bc5077a51c..ee27ba30a0 100644 --- a/ext/standard/tests/strings/vsprintf_variation3.phpt +++ b/ext/standard/tests/strings/vsprintf_variation3.phpt @@ -53,35 +53,7 @@ foreach($formats as $format) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : int formats with int values *** - --- Iteration 1 -- -string(1) "0" - --- Iteration 2 -- -string(5) "-1 1 " - --- Iteration 3 -- -string(36) "2147483647 d, 2147483640 -2147483640" - --- Iteration 4 -- -string(38) " 123456 12345678 -1234567 1234567" - --- Iteration 5 -- -string(24) "111 2222 333333 44444444" - --- Iteration 6 -- -string(15) "4667 4011 83 10" - --- Iteration 7 -- -string(8) "%-5678 d" - --- Iteration 8 -- -string(7) "1 2 3 4" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : int formats with int values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation4.phpt b/ext/standard/tests/strings/vsprintf_variation4.phpt index b374d0572a..9bbbc13958 100644 --- a/ext/standard/tests/strings/vsprintf_variation4.phpt +++ b/ext/standard/tests/strings/vsprintf_variation4.phpt @@ -71,38 +71,7 @@ foreach($args_array as $args) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : int formats and non-integer values *** - --- Iteration 1 -- -string(111) "2 +0 10 - 123456 d -1234 1234 - 2147483647 200000 4000 22000000 - 12345 12 -12 -123456 - 10 123456 2 0" - --- Iteration 2 -- -string(92) "0 +0 0 - 123 d -123 123 - 0 0 123456 0000 - 1234 0 $0 _0 - 0 123 0 0" - --- Iteration 3 -- -string(81) "1 +1 1 - 1 d 1 1 - 1 1 1 0001 - #1 1 $1 _1 - 1 1 1 1" - --- Iteration 4 -- -string(81) "1 +1 0 - 1 d 0 1 - 1 0 1 0000 - #0 1 $1 _0 - 0 1 1 1" -Done ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : int formats and non-integer values *** -- Iteration 1 -- @@ -133,4 +102,3 @@ unicode(81) "1 +1 0 #0 1 $1 _0 0 1 1 1" Done - diff --git a/ext/standard/tests/strings/vsprintf_variation4_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation4_64bit.phpt index 99f48e9a3c..29119553e8 100644 --- a/ext/standard/tests/strings/vsprintf_variation4_64bit.phpt +++ b/ext/standard/tests/strings/vsprintf_variation4_64bit.phpt @@ -71,38 +71,7 @@ foreach($args_array as $args) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : int formats and non-integer values *** - --- Iteration 1 -- -string(112) "2 +0 10 - 123456 d -1234 1234 - 20000000000 200000 4000 22000000 - 12345 12 -12 -123456 - 10 123456 2 0" - --- Iteration 2 -- -string(92) "0 +0 0 - 123 d -123 123 - 0 0 123456 0000 - 1234 0 $0 _0 - 0 123 0 0" - --- Iteration 3 -- -string(81) "1 +1 1 - 1 d 1 1 - 1 1 1 0001 - #1 1 $1 _1 - 1 1 1 1" - --- Iteration 4 -- -string(81) "1 +1 0 - 1 d 0 1 - 1 0 1 0000 - #0 1 $1 _0 - 0 1 1 1" -Done ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : int formats and non-integer values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation5.phpt b/ext/standard/tests/strings/vsprintf_variation5.phpt index 308720a8b7..571d0f9661 100644 --- a/ext/standard/tests/strings/vsprintf_variation5.phpt +++ b/ext/standard/tests/strings/vsprintf_variation5.phpt @@ -53,35 +53,7 @@ foreach($formats as $format) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : int formats with float values *** - --- Iteration 1 -- -string(8) "0.000000" - --- Iteration 2 -- -string(28) "-0.100000 0.100000 10.000001" - --- Iteration 3 -- -string(57) "2147483649.000000 f, 2147483640.000000 -2147483640.000000" - --- Iteration 4 -- -string(45) "200000.0000 0.0000 -200000.000000 -0.0000" - --- Iteration 5 -- -string(98) "20000.000000 -1999999999999999879418332743206357172224.000000 0.000000 20000000000000000000.000000" - --- Iteration 6 -- -string(43) "4667.000000 4011.000000 83.000000 10.000000" - --- Iteration 7 -- -string(15) "%-5678.567800 f" - --- Iteration 8 -- -string(35) "1.110000 2.220000 3.330000 4.440000" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : int formats with float values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation6.phpt b/ext/standard/tests/strings/vsprintf_variation6.phpt index 9c01202d3f..546dc91a88 100644 --- a/ext/standard/tests/strings/vsprintf_variation6.phpt +++ b/ext/standard/tests/strings/vsprintf_variation6.phpt @@ -67,39 +67,7 @@ foreach($args_array as $args) { echo "Done"; ?> ---EXPECTF-- -*** Testing vsprintf() : float formats and non-float values *** - --- Iteration 1 -- -string(244) "2.000000 -2.000000 2.000000 - 123456.000000 f -12346789.000000 12346789.000000 - 123200.0000 20000.0000 -40000.000000 22212.0000 - 12345780.000000 1211111.000000 -12111111.000000 -12345634.000000 - 2.000000 123456.000000 2.000000 -2.000000" - --- Iteration 2 -- -string(196) "0.000000 +0.000000 0.000000 - 123.000000 f -123.000000 123.000000 - 0.0000 0.0000 123456.000000 0.0000 - 1234.000000 0.000000 0.000000 0.000000 - 0.000000 123.000000 0.000000 0.000000" - --- Iteration 3 -- -string(179) "1.000000 +1.000000 1.000000 - 1.000000 f 1.000000 1.000000 - 1.0000 1.0000 1.000000 1.0000 - 1.000000 1.000000 1.000000 1.000000 - 1.000000 1.000000 1.000000 1.000000" - --- Iteration 4 -- -string(179) "1.000000 +1.000000 0.000000 - 1.000000 f 0.000000 1.000000 - 1.0000 0.0000 1.000000 0.0000 - 0.000000 1.000000 1.000000 0.000000 - 0.000000 1.000000 1.000000 1.000000" -Done - ---UEXPECTF-- +--EXPECT-- *** Testing vsprintf() : float formats and non-float values *** -- Iteration 1 -- diff --git a/ext/standard/tests/strings/vsprintf_variation7.phpt b/ext/standard/tests/strings/vsprintf_variation7.phpt Binary files differindex 57675f170c..06268021d5 100644 --- a/ext/standard/tests/strings/vsprintf_variation7.phpt +++ b/ext/standard/tests/strings/vsprintf_variation7.phpt diff --git a/ext/standard/tests/strings/vsprintf_variation8.phpt b/ext/standard/tests/strings/vsprintf_variation8.phpt index 2b08f013d0..c0268ab511 100644 --- a/ext/standard/tests/strings/vsprintf_variation8.phpt +++ b/ext/standard/tests/strings/vsprintf_variation8.phpt @@ -72,74 +72,6 @@ echo "Done"; *** Testing vsprintf() : string formats and non-string values *** -- Iteration 1 -- -string(177) "2.2 0.2 10.2 - 123456.234 s -1234.6789 1234.6789 - 2000 2000 -400000000000 2200 - 12345.78 12.000000011111 -12.00000111111 -123456.234 - 10.2 123456.234 2.2 0.2" - --- Iteration 2 -- -string(132) "2 -2 2 - 123456 s -12346789 12346789 - 1232 2000 -40000 2221 - 12345780 1211111 -12111111 -12345634 - 2 123456 2 -2" - --- Iteration 3 -- - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d - -Notice: Array to string conversion in %s on line %d -string(131) "Array Array Array - Array s Array Array - Arra Arra Array Arra - Array Array Array Array - Array Array Array Array" - --- Iteration 4 -- -string(81) "1 1 - 1 s 1 - 1 0001 0000 - #0 1 $1 _0 - 1 1 1" -Done - ---UEXPECTF-- -*** Testing vsprintf() : string formats and non-string values *** - --- Iteration 1 -- unicode(177) "2.2 0.2 10.2 123456.234 s -1234.6789 1234.6789 2000 2000 -400000000000 2200 diff --git a/ext/standard/tests/strings/vsprintf_variation9.phpt b/ext/standard/tests/strings/vsprintf_variation9.phpt Binary files differindex a81fd99998..8a05af91c9 100644 --- a/ext/standard/tests/strings/vsprintf_variation9.phpt +++ b/ext/standard/tests/strings/vsprintf_variation9.phpt diff --git a/ext/standard/tests/strings/wordwrap_basic.phpt b/ext/standard/tests/strings/wordwrap_basic.phpt index 84a7f7335c..1760a9cc77 100644 --- a/ext/standard/tests/strings/wordwrap_basic.phpt +++ b/ext/standard/tests/strings/wordwrap_basic.phpt @@ -35,7 +35,7 @@ $cut = false; var_dump( wordwrap($str, $width, $break, $cut) ); echo "Done\n"; ?> ---EXPECTF-- +--EXPECT-- *** Testing wordwrap() : basic functionality *** string(96) "The quick brown foooooooooox jummmmmmmmmmmmped over the lazzzzzzzzzzzy doooooooooooooooooooooog." diff --git a/ext/standard/tests/strings/wordwrap_variation1.phpt b/ext/standard/tests/strings/wordwrap_variation1.phpt index 47cbd41fd9..54af9a0011 100644 --- a/ext/standard/tests/strings/wordwrap_variation1.phpt +++ b/ext/standard/tests/strings/wordwrap_variation1.phpt @@ -162,237 +162,6 @@ string(3) "0.5" string(3) "0.5" -- Iteration 10 -- -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL --- Iteration 11 -- - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL --- Iteration 12 -- - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL --- Iteration 13 -- - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL --- Iteration 14 -- - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, array given in %s on line %d -NULL --- Iteration 15 -- -string(1) "1" -string(1) "1" -string(1) "1" -string(1) "1" -string(1) "1" --- Iteration 16 -- -string(0) "" -string(0) "" -string(0) "" -string(0) "" -string(0) "" --- Iteration 17 -- -string(1) "1" -string(1) "1" -string(1) "1" -string(1) "1" -string(1) "1" --- Iteration 18 -- -string(0) "" -string(0) "" -string(0) "" -string(0) "" -string(0) "" --- Iteration 19 -- - -Warning: wordwrap() expects parameter 1 to be string, object given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, object given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, object given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, object given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, object given in %s on line %d -NULL --- Iteration 20 -- -string(0) "" -string(0) "" -string(0) "" -string(0) "" -string(0) "" --- Iteration 21 -- -string(0) "" -string(0) "" -string(0) "" -string(0) "" -string(0) "" --- Iteration 22 -- -string(0) "" -string(0) "" -string(0) "" -string(0) "" -string(0) "" --- Iteration 23 -- -string(0) "" -string(0) "" -string(0) "" -string(0) "" -string(0) "" --- Iteration 24 -- - -Warning: wordwrap() expects parameter 1 to be string, resource given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, resource given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, resource given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, resource given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 1 to be string, resource given in %s on line %d -NULL --- Iteration 25 -- -string(0) "" -string(0) "" -string(0) "" -string(0) "" -string(0) "" --- Iteration 26 -- -string(0) "" -string(0) "" -string(0) "" -string(0) "" -string(0) "" -Done ---UEXPECTF-- -*** Testing wordwrap() : usage variations *** - ---- Testing wordwrap() by supplying different values for 'str' argument --- --- Iteration 1 -- -string(1) "0" -string(1) "0" -string(1) "0" -string(1) "0" -string(1) "0" --- Iteration 2 -- -string(1) "1" -string(1) "1" -string(1) "1" -string(1) "1" -string(1) "1" --- Iteration 3 -- -string(5) "12345" -string(5) "12345" -string(5) "12345" -string(5) "12345" -string(13) "123<br />\n45" --- Iteration 4 -- -string(5) "-2345" -string(5) "-2345" -string(5) "-2345" -string(5) "-2345" -string(13) "-23<br />\n45" --- Iteration 5 -- -string(4) "10.5" -string(4) "10.5" -string(4) "10.5" -string(4) "10.5" -string(12) "10.<br />\n5" --- Iteration 6 -- -string(5) "-10.5" -string(5) "-10.5" -string(5) "-10.5" -string(5) "-10.5" -string(13) "-10<br />\n.5" --- Iteration 7 -- -string(12) "101234567000" -string(12) "101234567000" -string(12) "101234567000" -string(12) "101234567000" -string(36) "101<br />\n234<br />\n567<br />\n000" --- Iteration 8 -- -string(13) "1.07654321E-9" -string(13) "1.07654321E-9" -string(13) "1.07654321E-9" -string(13) "1.07654321E-9" -string(45) "1.0<br />\n765<br />\n432<br />\n1E-<br />\n9" --- Iteration 9 -- -string(3) "0.5" -string(3) "0.5" -string(3) "0.5" -string(3) "0.5" -string(3) "0.5" --- Iteration 10 -- - Warning: wordwrap() expects parameter 1 to be binary string, array given in %s on line %d NULL diff --git a/ext/standard/tests/strings/wordwrap_variation2.phpt b/ext/standard/tests/strings/wordwrap_variation2.phpt index e0b9246207..4f12180490 100644 --- a/ext/standard/tests/strings/wordwrap_variation2.phpt +++ b/ext/standard/tests/strings/wordwrap_variation2.phpt @@ -225,245 +225,6 @@ Warning: wordwrap(): Can't force cut when width is zero in %s on line %d bool(false) -- Iteration 13 -- -Warning: wordwrap() expects parameter 2 to be long, string given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, string given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, string given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, string given in %s on line %d -NULL --- Iteration 14 -- - -Warning: wordwrap() expects parameter 2 to be long, string given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, string given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, string given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, string given in %s on line %d -NULL --- Iteration 15 -- - -Warning: wordwrap() expects parameter 2 to be long, object given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, object given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, object given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, object given in %s on line %d -NULL --- Iteration 16 -- -string(25) "testing -wordwrap -function" -string(39) "testing<br />\nwordwrap<br />\nfunction" -string(39) "testing<br />\nwordwrap<br />\nfunction" - -Warning: wordwrap(): Can't force cut when width is zero in %s on line %d -bool(false) --- Iteration 17 -- -string(25) "testing -wordwrap -function" -string(39) "testing<br />\nwordwrap<br />\nfunction" -string(39) "testing<br />\nwordwrap<br />\nfunction" - -Warning: wordwrap(): Can't force cut when width is zero in %s on line %d -bool(false) --- Iteration 18 -- - -Warning: wordwrap() expects parameter 2 to be long, string given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, string given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, string given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, string given in %s on line %d -NULL --- Iteration 19 -- - -Warning: wordwrap() expects parameter 2 to be long, string given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, string given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, string given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, string given in %s on line %d -NULL --- Iteration 20 -- - -Warning: wordwrap() expects parameter 2 to be long, resource given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, resource given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, resource given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, resource given in %s on line %d -NULL --- Iteration 21 -- -string(25) "testing -wordwrap -function" -string(39) "testing<br />\nwordwrap<br />\nfunction" -string(39) "testing<br />\nwordwrap<br />\nfunction" - -Warning: wordwrap(): Can't force cut when width is zero in %s on line %d -bool(false) --- Iteration 22 -- -string(25) "testing -wordwrap -function" -string(39) "testing<br />\nwordwrap<br />\nfunction" -string(39) "testing<br />\nwordwrap<br />\nfunction" - -Warning: wordwrap(): Can't force cut when width is zero in %s on line %d -bool(false) -Done ---UEXPECTF-- -*** Testing wordwrap() : usage variations *** - ---- Testing wordwrap() by supplying different values for 'width' argument --- --- Iteration 1 -- -string(25) "testing -wordwrap -function" -string(39) "testing<br />\nwordwrap<br />\nfunction" -string(39) "testing<br />\nwordwrap<br />\nfunction" - -Warning: wordwrap(): Can't force cut when width is zero in %s on line %d -bool(false) --- Iteration 2 -- -string(25) "testing -wordwrap -function" -string(39) "testing<br />\nwordwrap<br />\nfunction" -string(39) "testing<br />\nwordwrap<br />\nfunction" -string(223) "<br />\nt<br />\ne<br />\ns<br />\nt<br />\ni<br />\nn<br />\ng<br />\n<br />\nw<br />\no<br />\nr<br />\nd<br />\nw<br />\nr<br />\na<br />\np<br />\n<br />\nf<br />\nu<br />\nn<br />\nc<br />\nt<br />\ni<br />\no<br />\nn" --- Iteration 3 -- -string(25) "testing -wordwrap -function" -string(39) "testing<br />\nwordwrap<br />\nfunction" -string(39) "testing<br />\nwordwrap<br />\nfunction" -string(223) "<br />\nt<br />\ne<br />\ns<br />\nt<br />\ni<br />\nn<br />\ng<br />\n<br />\nw<br />\no<br />\nr<br />\nd<br />\nw<br />\nr<br />\na<br />\np<br />\n<br />\nf<br />\nu<br />\nn<br />\nc<br />\nt<br />\ni<br />\no<br />\nn" --- Iteration 4 -- - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 5 -- - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 6 -- - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 7 -- - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 8 -- - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d -NULL --- Iteration 9 -- -string(25) "testing -wordwrap -function" -string(39) "testing<br />\nwordwrap<br />\nfunction" -string(39) "testing<br />\nwordwrap<br />\nfunction" -string(199) "t<br />\ne<br />\ns<br />\nt<br />\ni<br />\nn<br />\ng<br />\nw<br />\no<br />\nr<br />\nd<br />\nw<br />\nr<br />\na<br />\np<br />\nf<br />\nu<br />\nn<br />\nc<br />\nt<br />\ni<br />\no<br />\nn" --- Iteration 10 -- -string(25) "testing -wordwrap -function" -string(39) "testing<br />\nwordwrap<br />\nfunction" -string(39) "testing<br />\nwordwrap<br />\nfunction" - -Warning: wordwrap(): Can't force cut when width is zero in %s on line %d -bool(false) --- Iteration 11 -- -string(25) "testing -wordwrap -function" -string(39) "testing<br />\nwordwrap<br />\nfunction" -string(39) "testing<br />\nwordwrap<br />\nfunction" -string(199) "t<br />\ne<br />\ns<br />\nt<br />\ni<br />\nn<br />\ng<br />\nw<br />\no<br />\nr<br />\nd<br />\nw<br />\nr<br />\na<br />\np<br />\nf<br />\nu<br />\nn<br />\nc<br />\nt<br />\ni<br />\no<br />\nn" --- Iteration 12 -- -string(25) "testing -wordwrap -function" -string(39) "testing<br />\nwordwrap<br />\nfunction" -string(39) "testing<br />\nwordwrap<br />\nfunction" - -Warning: wordwrap(): Can't force cut when width is zero in %s on line %d -bool(false) --- Iteration 13 -- - Warning: wordwrap() expects parameter 2 to be long, Unicode string given in %s on line %d NULL diff --git a/ext/standard/tests/strings/wordwrap_variation3.phpt b/ext/standard/tests/strings/wordwrap_variation3.phpt index 78c87e1ba7..54149a479d 100644 --- a/ext/standard/tests/strings/wordwrap_variation3.phpt +++ b/ext/standard/tests/strings/wordwrap_variation3.phpt @@ -143,205 +143,6 @@ string(29) "testing0.5wordwrap0.5function" string(29) "testing0.5wordwrap0.5function" -- Iteration 10 -- -Warning: wordwrap() expects parameter 3 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 3 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 3 to be string, array given in %s on line %d -NULL --- Iteration 11 -- - -Warning: wordwrap() expects parameter 3 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 3 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 3 to be string, array given in %s on line %d -NULL --- Iteration 12 -- - -Warning: wordwrap() expects parameter 3 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 3 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 3 to be string, array given in %s on line %d -NULL --- Iteration 13 -- - -Warning: wordwrap() expects parameter 3 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 3 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 3 to be string, array given in %s on line %d -NULL --- Iteration 14 -- - -Warning: wordwrap() expects parameter 3 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 3 to be string, array given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 3 to be string, array given in %s on line %d -NULL --- Iteration 15 -- -string(25) "testing1wordwrap1function" -string(25) "testing1wordwrap1function" -string(25) "testing1wordwrap1function" --- Iteration 16 -- - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) --- Iteration 17 -- -string(25) "testing1wordwrap1function" -string(25) "testing1wordwrap1function" -string(25) "testing1wordwrap1function" --- Iteration 18 -- - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) --- Iteration 19 -- - -Warning: wordwrap() expects parameter 3 to be string, object given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 3 to be string, object given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 3 to be string, object given in %s on line %d -NULL --- Iteration 20 -- - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) --- Iteration 21 -- - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) --- Iteration 22 -- - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) --- Iteration 23 -- - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) --- Iteration 24 -- - -Warning: wordwrap() expects parameter 3 to be string, resource given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 3 to be string, resource given in %s on line %d -NULL - -Warning: wordwrap() expects parameter 3 to be string, resource given in %s on line %d -NULL --- Iteration 25 -- - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) --- Iteration 26 -- - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) - -Warning: wordwrap(): Break string cannot be empty in %s on line %d -bool(false) -Done ---UEXPECTF-- -*** Testing wordwrap() : usage variations *** - ---- Testing wordwrap() by supplying different values for 'break' argument --- --- Iteration 1 -- -string(25) "testing0wordwrap0function" -string(25) "testing0wordwrap0function" -string(25) "testing0wordwrap0function" --- Iteration 2 -- -string(25) "testing1wordwrap1function" -string(25) "testing1wordwrap1function" -string(25) "testing1wordwrap1function" --- Iteration 3 -- -string(33) "testing12345wordwrap12345function" -string(33) "testing12345wordwrap12345function" -string(33) "testing12345wordwrap12345function" --- Iteration 4 -- -string(33) "testing-2345wordwrap-2345function" -string(33) "testing-2345wordwrap-2345function" -string(33) "testing-2345wordwrap-2345function" --- Iteration 5 -- -string(31) "testing10.5wordwrap10.5function" -string(31) "testing10.5wordwrap10.5function" -string(31) "testing10.5wordwrap10.5function" --- Iteration 6 -- -string(33) "testing-10.5wordwrap-10.5function" -string(33) "testing-10.5wordwrap-10.5function" -string(33) "testing-10.5wordwrap-10.5function" --- Iteration 7 -- -string(47) "testing101234567000wordwrap101234567000function" -string(47) "testing101234567000wordwrap101234567000function" -string(47) "testing101234567000wordwrap101234567000function" --- Iteration 8 -- -string(49) "testing1.07654321E-9wordwrap1.07654321E-9function" -string(49) "testing1.07654321E-9wordwrap1.07654321E-9function" -string(49) "testing1.07654321E-9wordwrap1.07654321E-9function" --- Iteration 9 -- -string(29) "testing0.5wordwrap0.5function" -string(29) "testing0.5wordwrap0.5function" -string(29) "testing0.5wordwrap0.5function" --- Iteration 10 -- - Warning: wordwrap() expects parameter 3 to be binary string, array given in %s on line %d NULL diff --git a/ext/standard/tests/strings/wordwrap_variation5.phpt b/ext/standard/tests/strings/wordwrap_variation5.phpt index b0911a899c..ebfffe4040 100644 --- a/ext/standard/tests/strings/wordwrap_variation5.phpt +++ b/ext/standard/tests/strings/wordwrap_variation5.phpt @@ -40,7 +40,7 @@ var_dump( wordwrap($str, $width, $break1, $cut) ); echo "Done\n"; ?> ---EXPECTF-- +--EXPECT-- *** Testing wordwrap() : usage variations *** -- Testing wordwrap() with default break value and single space as value -- diff --git a/ext/standard/tests/time/bug38524.phpt b/ext/standard/tests/time/bug38524.phpt index efdc5ee23e..bd516de526 100755 --- a/ext/standard/tests/time/bug38524.phpt +++ b/ext/standard/tests/time/bug38524.phpt @@ -9,28 +9,6 @@ Bug #38524 (strptime() does not initialize the internal date storage structure) ===DONE=== --EXPECTF-- array(9) { - ["tm_sec"]=> - int(0) - ["tm_min"]=> - int(0) - ["tm_hour"]=> - int(0) - ["tm_mday"]=> - int(20) - ["tm_mon"]=> - int(7) - ["tm_year"]=> - int(106) - ["tm_wday"]=> - int(0) - ["tm_yday"]=> - int(%d) - ["unparsed"]=> - string(0) "" -} -===DONE=== ---UEXPECTF-- -array(9) { [u"tm_sec"]=> int(0) [u"tm_min"]=> diff --git a/ext/standard/tests/url/base64_decode_basic_001.phpt b/ext/standard/tests/url/base64_decode_basic_001.phpt index 7b1052a97d..6dbc89b5dd 100644 --- a/ext/standard/tests/url/base64_decode_basic_001.phpt +++ b/ext/standard/tests/url/base64_decode_basic_001.phpt @@ -16,15 +16,9 @@ var_dump(bin2hex(base64_decode($allbase64, true))); echo "Done"; ?> ---EXPECTF-- -Decode an input string containing the whole base64 alphabet: -string(96) "00108310518720928b30d38f41149351559761969b71d79f8218a39259a7a29aabb2dbafc31cb3d35db7e39ebbf3dfbf" -string(96) "00108310518720928b30d38f41149351559761969b71d79f8218a39259a7a29aabb2dbafc31cb3d35db7e39ebbf3dfbf" -string(96) "00108310518720928b30d38f41149351559761969b71d79f8218a39259a7a29aabb2dbafc31cb3d35db7e39ebbf3dfbf" -Done ---UEXPECTF-- +--EXPECT-- Decode an input string containing the whole base64 alphabet: unicode(96) "00108310518720928b30d38f41149351559761969b71d79f8218a39259a7a29aabb2dbafc31cb3d35db7e39ebbf3dfbf" unicode(96) "00108310518720928b30d38f41149351559761969b71d79f8218a39259a7a29aabb2dbafc31cb3d35db7e39ebbf3dfbf" unicode(96) "00108310518720928b30d38f41149351559761969b71d79f8218a39259a7a29aabb2dbafc31cb3d35db7e39ebbf3dfbf" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/base64_decode_basic_002.phpt b/ext/standard/tests/url/base64_decode_basic_002.phpt index 1289894f4a..7c262ccad0 100644 --- a/ext/standard/tests/url/base64_decode_basic_002.phpt +++ b/ext/standard/tests/url/base64_decode_basic_002.phpt @@ -29,7 +29,7 @@ var_dump(base64_decode($badChars, true)); echo "Done"; ?> ---EXPECTF-- +--EXPECT-- Decode 'hello world!': string(12) "hello world!" string(12) "hello world!" @@ -44,4 +44,4 @@ Other chars outside the base64 alphabet are ignored when $strict===false, but ca string(12) "hello world!" string(12) "hello world!" bool(false) -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/base64_decode_variation_001.phpt b/ext/standard/tests/url/base64_decode_variation_001.phpt index 93b0a63cae..ee817e5ac4 100644 --- a/ext/standard/tests/url/base64_decode_variation_001.phpt +++ b/ext/standard/tests/url/base64_decode_variation_001.phpt @@ -112,98 +112,6 @@ bool(false) Error: 8 - Array to string conversion, %s(72) Arg value Array -Error: 2 - base64_decode() expects parameter 1 to be string, array given, %s(73) -NULL -Error: 8 - Array to string conversion, %s(72) - -Arg value Array -Error: 2 - base64_decode() expects parameter 1 to be string, array given, %s(73) -NULL -Error: 8 - Array to string conversion, %s(72) - -Arg value Array -Error: 2 - base64_decode() expects parameter 1 to be string, array given, %s(73) -NULL -Error: 8 - Array to string conversion, %s(72) - -Arg value Array -Error: 2 - base64_decode() expects parameter 1 to be string, array given, %s(73) -NULL -Error: 8 - Array to string conversion, %s(72) - -Arg value Array -Error: 2 - base64_decode() expects parameter 1 to be string, array given, %s(73) -NULL - -Arg value -string(0) "" - -Arg value -string(0) "" - -Arg value 1 -string(0) "" - -Arg value -string(0) "" - -Arg value 1 -string(0) "" - -Arg value -string(0) "" - -Arg value -string(0) "" - -Arg value -string(0) "" -Error: 4096 - Object of class stdClass could not be converted to string, %s(72) - -Arg value -Error: 2 - base64_decode() expects parameter 1 to be string, object given, %s(73) -NULL - -Arg value -string(0) "" - -Arg value -string(0) "" -Done ---UEXPECTF-- -*** Testing base64_decode() : usage variations *** -Error: 8 - Undefined variable: undefined_var, %s(63) -Error: 8 - Undefined variable: unset_var, %s(66) - -Arg value 0 -string(0) "" - -Arg value 1 -string(0) "" - -Arg value 12345 -string(3) "×mø" - -Arg value -2345 -bool(false) - -Arg value 10.5 -bool(false) - -Arg value -10.5 -bool(false) - -Arg value 101234567000 -string(9) "×MvߎzïM4" - -Arg value 1.07654321E-9 -bool(false) - -Arg value 0.5 -bool(false) -Error: 8 - Array to string conversion, %s(72) - -Arg value Array Error: 2 - base64_decode() expects parameter 1 to be binary string, array given, %s(73) NULL Error: 8 - Array to string conversion, %s(72) diff --git a/ext/standard/tests/url/base64_decode_variation_002.phpt b/ext/standard/tests/url/base64_decode_variation_002.phpt index fc65891f9f..6697864a72 100644 --- a/ext/standard/tests/url/base64_decode_variation_002.phpt +++ b/ext/standard/tests/url/base64_decode_variation_002.phpt @@ -180,101 +180,3 @@ string(12) "hello world!" Arg value string(12) "hello world!" Done ---UEXPECTF-- -*** Testing base64_decode() : usage variations *** -Error: 8 - Undefined variable: undefined_var, %s(67) -Error: 8 - Undefined variable: unset_var, %s(70) - -Arg value 0 -string(12) "hello world!" - -Arg value 1 -bool(false) - -Arg value 12345 -bool(false) - -Arg value -2345 -bool(false) - -Arg value 10.5 -bool(false) - -Arg value -10.5 -bool(false) - -Arg value 101234567000 -bool(false) - -Arg value 1.07654321E-9 -bool(false) - -Arg value 0.5 -bool(false) -Error: 8 - Array to string conversion, %s(76) - -Arg value Array -Error: 2 - base64_decode() expects parameter 2 to be boolean, array given, %s(77) -NULL -Error: 8 - Array to string conversion, %s(76) - -Arg value Array -Error: 2 - base64_decode() expects parameter 2 to be boolean, array given, %s(77) -NULL -Error: 8 - Array to string conversion, %s(76) - -Arg value Array -Error: 2 - base64_decode() expects parameter 2 to be boolean, array given, %s(77) -NULL -Error: 8 - Array to string conversion, %s(76) - -Arg value Array -Error: 2 - base64_decode() expects parameter 2 to be boolean, array given, %s(77) -NULL -Error: 8 - Array to string conversion, %s(76) - -Arg value Array -Error: 2 - base64_decode() expects parameter 2 to be boolean, array given, %s(77) -NULL - -Arg value -string(12) "hello world!" - -Arg value -string(12) "hello world!" - -Arg value 1 -bool(false) - -Arg value -string(12) "hello world!" - -Arg value 1 -bool(false) - -Arg value -string(12) "hello world!" - -Arg value -string(12) "hello world!" - -Arg value -string(12) "hello world!" - -Arg value string -bool(false) - -Arg value string -bool(false) -Error: 4096 - Object of class stdClass could not be converted to string, %s(76) - -Arg value -Error: 2 - base64_decode() expects parameter 2 to be boolean, object given, %s(77) -NULL - -Arg value -string(12) "hello world!" - -Arg value -string(12) "hello world!" -Done
\ No newline at end of file diff --git a/ext/standard/tests/url/base64_encode_error_001.phpt b/ext/standard/tests/url/base64_encode_error_001.phpt index a8883ac8f9..fc4251716b 100644 --- a/ext/standard/tests/url/base64_encode_error_001.phpt +++ b/ext/standard/tests/url/base64_encode_error_001.phpt @@ -34,4 +34,4 @@ NULL Warning: base64_encode() expects exactly 1 parameter, 2 given in %s on line 18 NULL -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/base64_encode_variation_001.phpt b/ext/standard/tests/url/base64_encode_variation_001.phpt index 3fc1a7f549..faffad6d27 100644 --- a/ext/standard/tests/url/base64_encode_variation_001.phpt +++ b/ext/standard/tests/url/base64_encode_variation_001.phpt @@ -112,98 +112,6 @@ string(4) "MC41" Error: 8 - Array to string conversion, %s(72) Arg value Array -Error: 2 - base64_encode() expects parameter 1 to be string, array given, %s(73) -NULL -Error: 8 - Array to string conversion, %s(72) - -Arg value Array -Error: 2 - base64_encode() expects parameter 1 to be string, array given, %s(73) -NULL -Error: 8 - Array to string conversion, %s(72) - -Arg value Array -Error: 2 - base64_encode() expects parameter 1 to be string, array given, %s(73) -NULL -Error: 8 - Array to string conversion, %s(72) - -Arg value Array -Error: 2 - base64_encode() expects parameter 1 to be string, array given, %s(73) -NULL -Error: 8 - Array to string conversion, %s(72) - -Arg value Array -Error: 2 - base64_encode() expects parameter 1 to be string, array given, %s(73) -NULL - -Arg value -string(0) "" - -Arg value -string(0) "" - -Arg value 1 -string(4) "MQ==" - -Arg value -string(0) "" - -Arg value 1 -string(4) "MQ==" - -Arg value -string(0) "" - -Arg value -string(0) "" - -Arg value -string(0) "" -Error: 4096 - Object of class stdClass could not be converted to string, %s(72) - -Arg value -Error: 2 - base64_encode() expects parameter 1 to be string, object given, %s(73) -NULL - -Arg value -string(0) "" - -Arg value -string(0) "" -Done ---UEXPECTF-- -*** Testing base64_encode() : usage variations *** -Error: 8 - Undefined variable: undefined_var, %s(63) -Error: 8 - Undefined variable: unset_var, %s(66) - -Arg value 0 -string(4) "MA==" - -Arg value 1 -string(4) "MQ==" - -Arg value 12345 -string(8) "MTIzNDU=" - -Arg value -2345 -string(8) "LTIzNDU=" - -Arg value 10.5 -string(8) "MTAuNQ==" - -Arg value -10.5 -string(8) "LTEwLjU=" - -Arg value 101234567000 -string(16) "MTAxMjM0NTY3MDAw" - -Arg value 1.07654321E-9 -string(20) "MS4wNzY1NDMyMUUtOQ==" - -Arg value 0.5 -string(4) "MC41" -Error: 8 - Array to string conversion, %s(72) - -Arg value Array Error: 2 - base64_encode() expects parameter 1 to be binary string, array given, %s(73) NULL Error: 8 - Array to string conversion, %s(72) diff --git a/ext/standard/tests/url/parse_url_basic_001.phpt b/ext/standard/tests/url/parse_url_basic_001.phpt index 78a751f81f..8fb39d93a1 100644 --- a/ext/standard/tests/url/parse_url_basic_001.phpt +++ b/ext/standard/tests/url/parse_url_basic_001.phpt @@ -23,883 +23,6 @@ echo "Done"; --EXPECTF-- --> 64.246.30.37: array(1) { - ["path"]=> - string(12) "64.246.30.37" -} - ---> http://64.246.30.37: array(2) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(12) "64.246.30.37" -} - ---> http://64.246.30.37/: array(3) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(12) "64.246.30.37" - ["path"]=> - string(1) "/" -} - ---> 64.246.30.37/: array(1) { - ["path"]=> - string(13) "64.246.30.37/" -} - ---> 64.246.30.37:80/: array(3) { - ["host"]=> - string(12) "64.246.30.37" - ["port"]=> - int(80) - ["path"]=> - string(1) "/" -} - ---> php.net: array(1) { - ["path"]=> - string(7) "php.net" -} - ---> php.net/: array(1) { - ["path"]=> - string(8) "php.net/" -} - ---> http://php.net: array(2) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(7) "php.net" -} - ---> http://php.net/: array(3) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(7) "php.net" - ["path"]=> - string(1) "/" -} - ---> www.php.net: array(1) { - ["path"]=> - string(11) "www.php.net" -} - ---> www.php.net/: array(1) { - ["path"]=> - string(12) "www.php.net/" -} - ---> http://www.php.net: array(2) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" -} - ---> http://www.php.net/: array(3) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["path"]=> - string(1) "/" -} - ---> www.php.net:80: array(2) { - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) -} - ---> http://www.php.net:80: array(3) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) -} - ---> http://www.php.net:80/: array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(1) "/" -} - ---> http://www.php.net/index.php: array(3) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["path"]=> - string(10) "/index.php" -} - ---> www.php.net/?: array(1) { - ["path"]=> - string(12) "www.php.net/" -} - ---> www.php.net:80/?: array(3) { - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(1) "/" -} - ---> http://www.php.net/?: array(3) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["path"]=> - string(1) "/" -} - ---> http://www.php.net:80/?: array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(1) "/" -} - ---> http://www.php.net:80/index.php: array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(10) "/index.php" -} - ---> http://www.php.net:80/foo/bar/index.php: array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(18) "/foo/bar/index.php" -} - ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php: array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(53) "/this/is/a/very/deep/directory/structure/and/file.php" -} - ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php?lots=1&of=2¶meters=3&too=4&here=5: array(5) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(53) "/this/is/a/very/deep/directory/structure/and/file.php" - ["query"]=> - string(37) "lots=1&of=2¶meters=3&too=4&here=5" -} - ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/: array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(45) "/this/is/a/very/deep/directory/structure/and/" -} - ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php: array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(53) "/this/is/a/very/deep/directory/structure/and/file.php" -} - ---> http://www.php.net:80/this/../a/../deep/directory: array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(28) "/this/../a/../deep/directory" -} - ---> http://www.php.net:80/this/../a/../deep/directory/: array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(29) "/this/../a/../deep/directory/" -} - ---> http://www.php.net:80/this/is/a/very/deep/directory/../file.php: array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(42) "/this/is/a/very/deep/directory/../file.php" -} - ---> http://www.php.net:80/index.php: array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(10) "/index.php" -} - ---> http://www.php.net:80/index.php?: array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(10) "/index.php" -} - ---> http://www.php.net:80/#foo: array(5) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(1) "/" - ["fragment"]=> - string(3) "foo" -} - ---> http://www.php.net:80/?#: array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(1) "/" -} - ---> http://www.php.net:80/?test=1: array(5) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(1) "/" - ["query"]=> - string(6) "test=1" -} - ---> http://www.php.net/?test=1&: array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["path"]=> - string(1) "/" - ["query"]=> - string(7) "test=1&" -} - ---> http://www.php.net:80/?&: array(5) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(1) "/" - ["query"]=> - string(1) "&" -} - ---> http://www.php.net:80/index.php?test=1&: array(5) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(7) "test=1&" -} - ---> http://www.php.net/index.php?&: array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(1) "&" -} - ---> http://www.php.net:80/index.php?foo&: array(5) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(4) "foo&" -} - ---> http://www.php.net/index.php?&foo: array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(4) "&foo" -} - ---> http://www.php.net:80/index.php?test=1&test2=char&test3=mixesCI: array(5) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(31) "test=1&test2=char&test3=mixesCI" -} - ---> www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123: array(5) { - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(31) "test=1&test2=char&test3=mixesCI" - ["fragment"]=> - string(16) "some_page_ref123" -} - ---> http://secret@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123: array(7) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["user"]=> - string(6) "secret" - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(31) "test=1&test2=char&test3=mixesCI" - ["fragment"]=> - string(16) "some_page_ref123" -} - ---> http://secret:@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123: array(6) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["user"]=> - string(6) "secret" - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(31) "test=1&test2=char&test3=mixesCI" - ["fragment"]=> - string(16) "some_page_ref123" -} - ---> http://:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123: array(7) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["pass"]=> - string(7) "hideout" - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(31) "test=1&test2=char&test3=mixesCI" - ["fragment"]=> - string(16) "some_page_ref123" -} - ---> http://secret:hideout@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123: array(7) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["user"]=> - string(6) "secret" - ["pass"]=> - string(7) "hideout" - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(31) "test=1&test2=char&test3=mixesCI" - ["fragment"]=> - string(16) "some_page_ref123" -} - ---> http://secret@hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123: array(7) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["user"]=> - string(14) "secret@hideout" - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(31) "test=1&test2=char&test3=mixesCI" - ["fragment"]=> - string(16) "some_page_ref123" -} - ---> http://secret:hid:out@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123: array(8) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["user"]=> - string(6) "secret" - ["pass"]=> - string(7) "hid:out" - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(31) "test=1&test2=char&test3=mixesCI" - ["fragment"]=> - string(16) "some_page_ref123" -} - ---> nntp://news.php.net: array(2) { - ["scheme"]=> - string(4) "nntp" - ["host"]=> - string(12) "news.php.net" -} - ---> ftp://ftp.gnu.org/gnu/glic/glibc.tar.gz: array(3) { - ["scheme"]=> - string(3) "ftp" - ["host"]=> - string(11) "ftp.gnu.org" - ["path"]=> - string(22) "/gnu/glic/glibc.tar.gz" -} - ---> zlib:http://foo@bar: array(2) { - ["scheme"]=> - string(4) "zlib" - ["path"]=> - string(14) "http://foo@bar" -} - ---> zlib:filename.txt: array(2) { - ["scheme"]=> - string(4) "zlib" - ["path"]=> - string(12) "filename.txt" -} - ---> zlib:/path/to/my/file/file.txt: array(2) { - ["scheme"]=> - string(4) "zlib" - ["path"]=> - string(25) "/path/to/my/file/file.txt" -} - ---> foo://foo@bar: array(3) { - ["scheme"]=> - string(3) "foo" - ["host"]=> - string(3) "bar" - ["user"]=> - string(3) "foo" -} - ---> mailto:me@mydomain.com: array(2) { - ["scheme"]=> - string(6) "mailto" - ["path"]=> - string(15) "me@mydomain.com" -} - ---> /foo.php?a=b&c=d: array(2) { - ["path"]=> - string(8) "/foo.php" - ["query"]=> - string(7) "a=b&c=d" -} - ---> foo.php?a=b&c=d: array(2) { - ["path"]=> - string(7) "foo.php" - ["query"]=> - string(7) "a=b&c=d" -} - ---> http://user:passwd@www.example.com:8080?bar=1&boom=0: array(6) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(15) "www.example.com" - ["port"]=> - int(8080) - ["user"]=> - string(4) "user" - ["pass"]=> - string(6) "passwd" - ["query"]=> - string(12) "bar=1&boom=0" -} - ---> file:///path/to/file: array(2) { - ["scheme"]=> - string(4) "file" - ["path"]=> - string(13) "/path/to/file" -} - ---> file://path/to/file: array(3) { - ["scheme"]=> - string(4) "file" - ["host"]=> - string(4) "path" - ["path"]=> - string(8) "/to/file" -} - ---> file:/path/to/file: array(2) { - ["scheme"]=> - string(4) "file" - ["path"]=> - string(13) "/path/to/file" -} - ---> http://1.2.3.4:/abc.asp?a=1&b=2: array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(7) "1.2.3.4" - ["path"]=> - string(8) "/abc.asp" - ["query"]=> - string(7) "a=1&b=2" -} - ---> http://foo.com#bar: array(3) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(7) "foo.com" - ["fragment"]=> - string(3) "bar" -} - ---> scheme:: array(1) { - ["scheme"]=> - string(6) "scheme" -} - ---> foo+bar://baz@bang/bla: array(4) { - ["scheme"]=> - string(7) "foo+bar" - ["host"]=> - string(4) "bang" - ["user"]=> - string(3) "baz" - ["path"]=> - string(4) "/bla" -} - ---> gg:9130731: array(2) { - ["scheme"]=> - string(2) "gg" - ["path"]=> - string(7) "9130731" -} - ---> http://user:@pass@host/path?argument?value#etc: array(7) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(4) "host" - ["user"]=> - string(4) "user" - ["pass"]=> - string(5) "@pass" - ["path"]=> - string(5) "/path" - ["query"]=> - string(14) "argument?value" - ["fragment"]=> - string(3) "etc" -} - ---> http://10.10.10.10/:80: array(3) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "10.10.10.10" - ["path"]=> - string(4) "/:80" -} - ---> http://x:?: array(2) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(1) "x" -} - ---> x:blah.com: array(2) { - ["scheme"]=> - string(1) "x" - ["path"]=> - string(8) "blah.com" -} - ---> x:/blah.com: array(2) { - ["scheme"]=> - string(1) "x" - ["path"]=> - string(9) "/blah.com" -} - ---> x://::abc/?: array(3) { - ["scheme"]=> - string(1) "x" - ["host"]=> - string(1) ":" - ["path"]=> - string(1) "/" -} - ---> http://::?: array(2) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(1) ":" -} - ---> x://::6.5: array(3) { - ["scheme"]=> - string(1) "x" - ["host"]=> - string(1) ":" - ["port"]=> - int(6) -} - ---> http://?:/: array(3) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(1) "?" - ["path"]=> - string(1) "/" -} - ---> http://@?:/: array(4) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(1) "?" - ["user"]=> - string(0) "" - ["path"]=> - string(1) "/" -} - ---> file:///:: array(2) { - ["scheme"]=> - string(4) "file" - ["path"]=> - string(2) "/:" -} - ---> file:///a:/: array(2) { - ["scheme"]=> - string(4) "file" - ["path"]=> - string(3) "a:/" -} - ---> file:///ab:/: array(2) { - ["scheme"]=> - string(4) "file" - ["path"]=> - string(5) "/ab:/" -} - ---> file:///a:/: array(2) { - ["scheme"]=> - string(4) "file" - ["path"]=> - string(3) "a:/" -} - ---> file:///@:/: array(2) { - ["scheme"]=> - string(4) "file" - ["path"]=> - string(3) "@:/" -} - ---> file:///:80/: array(2) { - ["scheme"]=> - string(4) "file" - ["path"]=> - string(5) "/:80/" -} - ---> []: array(1) { - ["path"]=> - string(2) "[]" -} - ---> http://[x:80]/: array(3) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(6) "[x:80]" - ["path"]=> - string(1) "/" -} - ---> : array(1) { - ["path"]=> - string(0) "" -} - ---> /: array(1) { - ["path"]=> - string(1) "/" -} - ---> http:///blah.com: -Warning: parse_url(http:///blah.com): Unable to parse URL in %s on line 15 -bool(false) - ---> http://:80: -Warning: parse_url(http://:80): Unable to parse URL in %s on line 15 -bool(false) - ---> http://user@:80: -Warning: parse_url(http://user@:80): Unable to parse URL in %s on line 15 -bool(false) - ---> http://user:pass@:80: -Warning: parse_url(http://user:pass@:80): Unable to parse URL in %s on line 15 -bool(false) - ---> http://:: -Warning: parse_url(http://:): Unable to parse URL in %s on line 15 -bool(false) - ---> http://@/: -Warning: parse_url(http://@/): Unable to parse URL in %s on line 15 -bool(false) - ---> http://@:/: -Warning: parse_url(http://@:/): Unable to parse URL in %s on line 15 -bool(false) - ---> http://:/: -Warning: parse_url(http://:/): Unable to parse URL in %s on line 15 -bool(false) - ---> http://?: -Warning: parse_url(http://?): Unable to parse URL in %s on line 15 -bool(false) - ---> http://?:: -Warning: parse_url(http://?:): Unable to parse URL in %s on line 15 -bool(false) - ---> http://:?: -Warning: parse_url(http://:?): Unable to parse URL in %s on line 15 -bool(false) - ---> http://blah.com:123456: -Warning: parse_url(http://blah.com:123456): Unable to parse URL in %s on line 15 -bool(false) - ---> http://blah.com:abcdef: -Warning: parse_url(http://blah.com:abcdef): Unable to parse URL in %s on line 15 -bool(false) -Done ---UEXPECTF-- - ---> 64.246.30.37: array(1) { [u"path"]=> unicode(12) "64.246.30.37" } @@ -1773,4 +896,4 @@ bool(false) --> http://blah.com:abcdef: Warning: parse_url(http://blah.com:abcdef): Unable to parse URL in %s on line 15 bool(false) -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/parse_url_basic_002.phpt b/ext/standard/tests/url/parse_url_basic_002.phpt index 26c4404fc8..a8bc7110e0 100644 --- a/ext/standard/tests/url/parse_url_basic_002.phpt +++ b/ext/standard/tests/url/parse_url_basic_002.phpt @@ -23,134 +23,6 @@ echo "Done"; ?> --EXPECTF-- --> 64.246.30.37 : NULL ---> http://64.246.30.37 : string(4) "http" ---> http://64.246.30.37/ : string(4) "http" ---> 64.246.30.37/ : NULL ---> 64.246.30.37:80/ : NULL ---> php.net : NULL ---> php.net/ : NULL ---> http://php.net : string(4) "http" ---> http://php.net/ : string(4) "http" ---> www.php.net : NULL ---> www.php.net/ : NULL ---> http://www.php.net : string(4) "http" ---> http://www.php.net/ : string(4) "http" ---> www.php.net:80 : NULL ---> http://www.php.net:80 : string(4) "http" ---> http://www.php.net:80/ : string(4) "http" ---> http://www.php.net/index.php : string(4) "http" ---> www.php.net/? : NULL ---> www.php.net:80/? : NULL ---> http://www.php.net/? : string(4) "http" ---> http://www.php.net:80/? : string(4) "http" ---> http://www.php.net:80/index.php : string(4) "http" ---> http://www.php.net:80/foo/bar/index.php : string(4) "http" ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : string(4) "http" ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php?lots=1&of=2¶meters=3&too=4&here=5 : string(4) "http" ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/ : string(4) "http" ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : string(4) "http" ---> http://www.php.net:80/this/../a/../deep/directory : string(4) "http" ---> http://www.php.net:80/this/../a/../deep/directory/ : string(4) "http" ---> http://www.php.net:80/this/is/a/very/deep/directory/../file.php : string(4) "http" ---> http://www.php.net:80/index.php : string(4) "http" ---> http://www.php.net:80/index.php? : string(4) "http" ---> http://www.php.net:80/#foo : string(4) "http" ---> http://www.php.net:80/?# : string(4) "http" ---> http://www.php.net:80/?test=1 : string(4) "http" ---> http://www.php.net/?test=1& : string(4) "http" ---> http://www.php.net:80/?& : string(4) "http" ---> http://www.php.net:80/index.php?test=1& : string(4) "http" ---> http://www.php.net/index.php?& : string(4) "http" ---> http://www.php.net:80/index.php?foo& : string(4) "http" ---> http://www.php.net/index.php?&foo : string(4) "http" ---> http://www.php.net:80/index.php?test=1&test2=char&test3=mixesCI : string(4) "http" ---> www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : NULL ---> http://secret@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(4) "http" ---> http://secret:@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(4) "http" ---> http://:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(4) "http" ---> http://secret:hideout@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(4) "http" ---> http://secret@hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(4) "http" ---> http://secret:hid:out@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(4) "http" ---> nntp://news.php.net : string(4) "nntp" ---> ftp://ftp.gnu.org/gnu/glic/glibc.tar.gz : string(3) "ftp" ---> zlib:http://foo@bar : string(4) "zlib" ---> zlib:filename.txt : string(4) "zlib" ---> zlib:/path/to/my/file/file.txt : string(4) "zlib" ---> foo://foo@bar : string(3) "foo" ---> mailto:me@mydomain.com : string(6) "mailto" ---> /foo.php?a=b&c=d : NULL ---> foo.php?a=b&c=d : NULL ---> http://user:passwd@www.example.com:8080?bar=1&boom=0 : string(4) "http" ---> file:///path/to/file : string(4) "file" ---> file://path/to/file : string(4) "file" ---> file:/path/to/file : string(4) "file" ---> http://1.2.3.4:/abc.asp?a=1&b=2 : string(4) "http" ---> http://foo.com#bar : string(4) "http" ---> scheme: : string(6) "scheme" ---> foo+bar://baz@bang/bla : string(7) "foo+bar" ---> gg:9130731 : string(2) "gg" ---> http://user:@pass@host/path?argument?value#etc : string(4) "http" ---> http://10.10.10.10/:80 : string(4) "http" ---> http://x:? : string(4) "http" ---> x:blah.com : string(1) "x" ---> x:/blah.com : string(1) "x" ---> x://::abc/? : string(1) "x" ---> http://::? : string(4) "http" ---> x://::6.5 : string(1) "x" ---> http://?:/ : string(4) "http" ---> http://@?:/ : string(4) "http" ---> file:///: : string(4) "file" ---> file:///a:/ : string(4) "file" ---> file:///ab:/ : string(4) "file" ---> file:///a:/ : string(4) "file" ---> file:///@:/ : string(4) "file" ---> file:///:80/ : string(4) "file" ---> [] : NULL ---> http://[x:80]/ : string(4) "http" ---> : NULL ---> / : NULL ---> http:///blah.com : -Warning: parse_url(http:///blah.com): Unable to parse URL in %s on line 15 -bool(false) ---> http://:80 : -Warning: parse_url(http://:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://user@:80 : -Warning: parse_url(http://user@:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://user:pass@:80 : -Warning: parse_url(http://user:pass@:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://: : -Warning: parse_url(http://:): Unable to parse URL in %s on line 15 -bool(false) ---> http://@/ : -Warning: parse_url(http://@/): Unable to parse URL in %s on line 15 -bool(false) ---> http://@:/ : -Warning: parse_url(http://@:/): Unable to parse URL in %s on line 15 -bool(false) ---> http://:/ : -Warning: parse_url(http://:/): Unable to parse URL in %s on line 15 -bool(false) ---> http://? : -Warning: parse_url(http://?): Unable to parse URL in %s on line 15 -bool(false) ---> http://?: : -Warning: parse_url(http://?:): Unable to parse URL in %s on line 15 -bool(false) ---> http://:? : -Warning: parse_url(http://:?): Unable to parse URL in %s on line 15 -bool(false) ---> http://blah.com:123456 : -Warning: parse_url(http://blah.com:123456): Unable to parse URL in %s on line 15 -bool(false) ---> http://blah.com:abcdef : -Warning: parse_url(http://blah.com:abcdef): Unable to parse URL in %s on line 15 -bool(false) -Done ---UEXPECTF-- ---> 64.246.30.37 : NULL --> http://64.246.30.37 : unicode(4) "http" --> http://64.246.30.37/ : unicode(4) "http" --> 64.246.30.37/ : NULL @@ -276,4 +148,4 @@ bool(false) --> http://blah.com:abcdef : Warning: parse_url(http://blah.com:abcdef): Unable to parse URL in %s on line 15 bool(false) -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/parse_url_basic_003.phpt b/ext/standard/tests/url/parse_url_basic_003.phpt index 0bb3e9e141..fc902ae4c1 100644 --- a/ext/standard/tests/url/parse_url_basic_003.phpt +++ b/ext/standard/tests/url/parse_url_basic_003.phpt @@ -22,134 +22,6 @@ echo "Done"; ?> --EXPECTF-- --> 64.246.30.37 : NULL ---> http://64.246.30.37 : string(12) "64.246.30.37" ---> http://64.246.30.37/ : string(12) "64.246.30.37" ---> 64.246.30.37/ : NULL ---> 64.246.30.37:80/ : string(12) "64.246.30.37" ---> php.net : NULL ---> php.net/ : NULL ---> http://php.net : string(7) "php.net" ---> http://php.net/ : string(7) "php.net" ---> www.php.net : NULL ---> www.php.net/ : NULL ---> http://www.php.net : string(11) "www.php.net" ---> http://www.php.net/ : string(11) "www.php.net" ---> www.php.net:80 : string(11) "www.php.net" ---> http://www.php.net:80 : string(11) "www.php.net" ---> http://www.php.net:80/ : string(11) "www.php.net" ---> http://www.php.net/index.php : string(11) "www.php.net" ---> www.php.net/? : NULL ---> www.php.net:80/? : string(11) "www.php.net" ---> http://www.php.net/? : string(11) "www.php.net" ---> http://www.php.net:80/? : string(11) "www.php.net" ---> http://www.php.net:80/index.php : string(11) "www.php.net" ---> http://www.php.net:80/foo/bar/index.php : string(11) "www.php.net" ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : string(11) "www.php.net" ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php?lots=1&of=2¶meters=3&too=4&here=5 : string(11) "www.php.net" ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/ : string(11) "www.php.net" ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : string(11) "www.php.net" ---> http://www.php.net:80/this/../a/../deep/directory : string(11) "www.php.net" ---> http://www.php.net:80/this/../a/../deep/directory/ : string(11) "www.php.net" ---> http://www.php.net:80/this/is/a/very/deep/directory/../file.php : string(11) "www.php.net" ---> http://www.php.net:80/index.php : string(11) "www.php.net" ---> http://www.php.net:80/index.php? : string(11) "www.php.net" ---> http://www.php.net:80/#foo : string(11) "www.php.net" ---> http://www.php.net:80/?# : string(11) "www.php.net" ---> http://www.php.net:80/?test=1 : string(11) "www.php.net" ---> http://www.php.net/?test=1& : string(11) "www.php.net" ---> http://www.php.net:80/?& : string(11) "www.php.net" ---> http://www.php.net:80/index.php?test=1& : string(11) "www.php.net" ---> http://www.php.net/index.php?& : string(11) "www.php.net" ---> http://www.php.net:80/index.php?foo& : string(11) "www.php.net" ---> http://www.php.net/index.php?&foo : string(11) "www.php.net" ---> http://www.php.net:80/index.php?test=1&test2=char&test3=mixesCI : string(11) "www.php.net" ---> www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(11) "www.php.net" ---> http://secret@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(11) "www.php.net" ---> http://secret:@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(11) "www.php.net" ---> http://:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(11) "www.php.net" ---> http://secret:hideout@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(11) "www.php.net" ---> http://secret@hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(11) "www.php.net" ---> http://secret:hid:out@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(11) "www.php.net" ---> nntp://news.php.net : string(12) "news.php.net" ---> ftp://ftp.gnu.org/gnu/glic/glibc.tar.gz : string(11) "ftp.gnu.org" ---> zlib:http://foo@bar : NULL ---> zlib:filename.txt : NULL ---> zlib:/path/to/my/file/file.txt : NULL ---> foo://foo@bar : string(3) "bar" ---> mailto:me@mydomain.com : NULL ---> /foo.php?a=b&c=d : NULL ---> foo.php?a=b&c=d : NULL ---> http://user:passwd@www.example.com:8080?bar=1&boom=0 : string(15) "www.example.com" ---> file:///path/to/file : NULL ---> file://path/to/file : string(4) "path" ---> file:/path/to/file : NULL ---> http://1.2.3.4:/abc.asp?a=1&b=2 : string(7) "1.2.3.4" ---> http://foo.com#bar : string(7) "foo.com" ---> scheme: : NULL ---> foo+bar://baz@bang/bla : string(4) "bang" ---> gg:9130731 : NULL ---> http://user:@pass@host/path?argument?value#etc : string(4) "host" ---> http://10.10.10.10/:80 : string(11) "10.10.10.10" ---> http://x:? : string(1) "x" ---> x:blah.com : NULL ---> x:/blah.com : NULL ---> x://::abc/? : string(1) ":" ---> http://::? : string(1) ":" ---> x://::6.5 : string(1) ":" ---> http://?:/ : string(1) "?" ---> http://@?:/ : string(1) "?" ---> file:///: : NULL ---> file:///a:/ : NULL ---> file:///ab:/ : NULL ---> file:///a:/ : NULL ---> file:///@:/ : NULL ---> file:///:80/ : NULL ---> [] : NULL ---> http://[x:80]/ : string(6) "[x:80]" ---> : NULL ---> / : NULL ---> http:///blah.com : -Warning: parse_url(http:///blah.com): Unable to parse URL in %s on line 15 -bool(false) ---> http://:80 : -Warning: parse_url(http://:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://user@:80 : -Warning: parse_url(http://user@:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://user:pass@:80 : -Warning: parse_url(http://user:pass@:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://: : -Warning: parse_url(http://:): Unable to parse URL in %s on line 15 -bool(false) ---> http://@/ : -Warning: parse_url(http://@/): Unable to parse URL in %s on line 15 -bool(false) ---> http://@:/ : -Warning: parse_url(http://@:/): Unable to parse URL in %s on line 15 -bool(false) ---> http://:/ : -Warning: parse_url(http://:/): Unable to parse URL in %s on line 15 -bool(false) ---> http://? : -Warning: parse_url(http://?): Unable to parse URL in %s on line 15 -bool(false) ---> http://?: : -Warning: parse_url(http://?:): Unable to parse URL in %s on line 15 -bool(false) ---> http://:? : -Warning: parse_url(http://:?): Unable to parse URL in %s on line 15 -bool(false) ---> http://blah.com:123456 : -Warning: parse_url(http://blah.com:123456): Unable to parse URL in %s on line 15 -bool(false) ---> http://blah.com:abcdef : -Warning: parse_url(http://blah.com:abcdef): Unable to parse URL in %s on line 15 -bool(false) -Done ---UEXPECTF-- ---> 64.246.30.37 : NULL --> http://64.246.30.37 : unicode(12) "64.246.30.37" --> http://64.246.30.37/ : unicode(12) "64.246.30.37" --> 64.246.30.37/ : NULL @@ -275,4 +147,4 @@ bool(false) --> http://blah.com:abcdef : Warning: parse_url(http://blah.com:abcdef): Unable to parse URL in %s on line 15 bool(false) -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/parse_url_basic_004.phpt b/ext/standard/tests/url/parse_url_basic_004.phpt index af32795470..280c303ac5 100644 --- a/ext/standard/tests/url/parse_url_basic_004.phpt +++ b/ext/standard/tests/url/parse_url_basic_004.phpt @@ -147,4 +147,4 @@ bool(false) --> http://blah.com:abcdef : Warning: parse_url(http://blah.com:abcdef): Unable to parse URL in %s on line 15 bool(false) -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/parse_url_basic_005.phpt b/ext/standard/tests/url/parse_url_basic_005.phpt index a5778eac14..1bb3064320 100644 --- a/ext/standard/tests/url/parse_url_basic_005.phpt +++ b/ext/standard/tests/url/parse_url_basic_005.phpt @@ -64,134 +64,6 @@ echo "Done"; --> http://www.php.net/index.php?&foo : NULL --> http://www.php.net:80/index.php?test=1&test2=char&test3=mixesCI : NULL --> www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : NULL ---> http://secret@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(6) "secret" ---> http://secret:@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(6) "secret" ---> http://:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : NULL ---> http://secret:hideout@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(6) "secret" ---> http://secret@hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(14) "secret@hideout" ---> http://secret:hid:out@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(6) "secret" ---> nntp://news.php.net : NULL ---> ftp://ftp.gnu.org/gnu/glic/glibc.tar.gz : NULL ---> zlib:http://foo@bar : NULL ---> zlib:filename.txt : NULL ---> zlib:/path/to/my/file/file.txt : NULL ---> foo://foo@bar : string(3) "foo" ---> mailto:me@mydomain.com : NULL ---> /foo.php?a=b&c=d : NULL ---> foo.php?a=b&c=d : NULL ---> http://user:passwd@www.example.com:8080?bar=1&boom=0 : string(4) "user" ---> file:///path/to/file : NULL ---> file://path/to/file : NULL ---> file:/path/to/file : NULL ---> http://1.2.3.4:/abc.asp?a=1&b=2 : NULL ---> http://foo.com#bar : NULL ---> scheme: : NULL ---> foo+bar://baz@bang/bla : string(3) "baz" ---> gg:9130731 : NULL ---> http://user:@pass@host/path?argument?value#etc : string(4) "user" ---> http://10.10.10.10/:80 : NULL ---> http://x:? : NULL ---> x:blah.com : NULL ---> x:/blah.com : NULL ---> x://::abc/? : NULL ---> http://::? : NULL ---> x://::6.5 : NULL ---> http://?:/ : NULL ---> http://@?:/ : string(0) "" ---> file:///: : NULL ---> file:///a:/ : NULL ---> file:///ab:/ : NULL ---> file:///a:/ : NULL ---> file:///@:/ : NULL ---> file:///:80/ : NULL ---> [] : NULL ---> http://[x:80]/ : NULL ---> : NULL ---> / : NULL ---> http:///blah.com : -Warning: parse_url(http:///blah.com): Unable to parse URL in %s on line 15 -bool(false) ---> http://:80 : -Warning: parse_url(http://:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://user@:80 : -Warning: parse_url(http://user@:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://user:pass@:80 : -Warning: parse_url(http://user:pass@:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://: : -Warning: parse_url(http://:): Unable to parse URL in %s on line 15 -bool(false) ---> http://@/ : -Warning: parse_url(http://@/): Unable to parse URL in %s on line 15 -bool(false) ---> http://@:/ : -Warning: parse_url(http://@:/): Unable to parse URL in %s on line 15 -bool(false) ---> http://:/ : -Warning: parse_url(http://:/): Unable to parse URL in %s on line 15 -bool(false) ---> http://? : -Warning: parse_url(http://?): Unable to parse URL in %s on line 15 -bool(false) ---> http://?: : -Warning: parse_url(http://?:): Unable to parse URL in %s on line 15 -bool(false) ---> http://:? : -Warning: parse_url(http://:?): Unable to parse URL in %s on line 15 -bool(false) ---> http://blah.com:123456 : -Warning: parse_url(http://blah.com:123456): Unable to parse URL in %s on line 15 -bool(false) ---> http://blah.com:abcdef : -Warning: parse_url(http://blah.com:abcdef): Unable to parse URL in %s on line 15 -bool(false) -Done ---UEXPECTF-- ---> 64.246.30.37 : NULL ---> http://64.246.30.37 : NULL ---> http://64.246.30.37/ : NULL ---> 64.246.30.37/ : NULL ---> 64.246.30.37:80/ : NULL ---> php.net : NULL ---> php.net/ : NULL ---> http://php.net : NULL ---> http://php.net/ : NULL ---> www.php.net : NULL ---> www.php.net/ : NULL ---> http://www.php.net : NULL ---> http://www.php.net/ : NULL ---> www.php.net:80 : NULL ---> http://www.php.net:80 : NULL ---> http://www.php.net:80/ : NULL ---> http://www.php.net/index.php : NULL ---> www.php.net/? : NULL ---> www.php.net:80/? : NULL ---> http://www.php.net/? : NULL ---> http://www.php.net:80/? : NULL ---> http://www.php.net:80/index.php : NULL ---> http://www.php.net:80/foo/bar/index.php : NULL ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : NULL ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php?lots=1&of=2¶meters=3&too=4&here=5 : NULL ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/ : NULL ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : NULL ---> http://www.php.net:80/this/../a/../deep/directory : NULL ---> http://www.php.net:80/this/../a/../deep/directory/ : NULL ---> http://www.php.net:80/this/is/a/very/deep/directory/../file.php : NULL ---> http://www.php.net:80/index.php : NULL ---> http://www.php.net:80/index.php? : NULL ---> http://www.php.net:80/#foo : NULL ---> http://www.php.net:80/?# : NULL ---> http://www.php.net:80/?test=1 : NULL ---> http://www.php.net/?test=1& : NULL ---> http://www.php.net:80/?& : NULL ---> http://www.php.net:80/index.php?test=1& : NULL ---> http://www.php.net/index.php?& : NULL ---> http://www.php.net:80/index.php?foo& : NULL ---> http://www.php.net/index.php?&foo : NULL ---> http://www.php.net:80/index.php?test=1&test2=char&test3=mixesCI : NULL ---> www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : NULL --> http://secret@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : unicode(6) "secret" --> http://secret:@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : unicode(6) "secret" --> http://:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : NULL @@ -275,4 +147,4 @@ bool(false) --> http://blah.com:abcdef : Warning: parse_url(http://blah.com:abcdef): Unable to parse URL in %s on line 15 bool(false) -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/parse_url_basic_006.phpt b/ext/standard/tests/url/parse_url_basic_006.phpt index 97d06bae9a..52086c2f85 100644 --- a/ext/standard/tests/url/parse_url_basic_006.phpt +++ b/ext/standard/tests/url/parse_url_basic_006.phpt @@ -66,134 +66,6 @@ echo "Done"; --> www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : NULL --> http://secret@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : NULL --> http://secret:@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : NULL ---> http://:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(7) "hideout" ---> http://secret:hideout@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(7) "hideout" ---> http://secret@hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : NULL ---> http://secret:hid:out@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(7) "hid:out" ---> nntp://news.php.net : NULL ---> ftp://ftp.gnu.org/gnu/glic/glibc.tar.gz : NULL ---> zlib:http://foo@bar : NULL ---> zlib:filename.txt : NULL ---> zlib:/path/to/my/file/file.txt : NULL ---> foo://foo@bar : NULL ---> mailto:me@mydomain.com : NULL ---> /foo.php?a=b&c=d : NULL ---> foo.php?a=b&c=d : NULL ---> http://user:passwd@www.example.com:8080?bar=1&boom=0 : string(6) "passwd" ---> file:///path/to/file : NULL ---> file://path/to/file : NULL ---> file:/path/to/file : NULL ---> http://1.2.3.4:/abc.asp?a=1&b=2 : NULL ---> http://foo.com#bar : NULL ---> scheme: : NULL ---> foo+bar://baz@bang/bla : NULL ---> gg:9130731 : NULL ---> http://user:@pass@host/path?argument?value#etc : string(5) "@pass" ---> http://10.10.10.10/:80 : NULL ---> http://x:? : NULL ---> x:blah.com : NULL ---> x:/blah.com : NULL ---> x://::abc/? : NULL ---> http://::? : NULL ---> x://::6.5 : NULL ---> http://?:/ : NULL ---> http://@?:/ : NULL ---> file:///: : NULL ---> file:///a:/ : NULL ---> file:///ab:/ : NULL ---> file:///a:/ : NULL ---> file:///@:/ : NULL ---> file:///:80/ : NULL ---> [] : NULL ---> http://[x:80]/ : NULL ---> : NULL ---> / : NULL ---> http:///blah.com : -Warning: parse_url(http:///blah.com): Unable to parse URL in %s on line 15 -bool(false) ---> http://:80 : -Warning: parse_url(http://:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://user@:80 : -Warning: parse_url(http://user@:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://user:pass@:80 : -Warning: parse_url(http://user:pass@:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://: : -Warning: parse_url(http://:): Unable to parse URL in %s on line 15 -bool(false) ---> http://@/ : -Warning: parse_url(http://@/): Unable to parse URL in %s on line 15 -bool(false) ---> http://@:/ : -Warning: parse_url(http://@:/): Unable to parse URL in %s on line 15 -bool(false) ---> http://:/ : -Warning: parse_url(http://:/): Unable to parse URL in %s on line 15 -bool(false) ---> http://? : -Warning: parse_url(http://?): Unable to parse URL in %s on line 15 -bool(false) ---> http://?: : -Warning: parse_url(http://?:): Unable to parse URL in %s on line 15 -bool(false) ---> http://:? : -Warning: parse_url(http://:?): Unable to parse URL in %s on line 15 -bool(false) ---> http://blah.com:123456 : -Warning: parse_url(http://blah.com:123456): Unable to parse URL in %s on line 15 -bool(false) ---> http://blah.com:abcdef : -Warning: parse_url(http://blah.com:abcdef): Unable to parse URL in %s on line 15 -bool(false) -Done ---UEXPECTF-- ---> 64.246.30.37 : NULL ---> http://64.246.30.37 : NULL ---> http://64.246.30.37/ : NULL ---> 64.246.30.37/ : NULL ---> 64.246.30.37:80/ : NULL ---> php.net : NULL ---> php.net/ : NULL ---> http://php.net : NULL ---> http://php.net/ : NULL ---> www.php.net : NULL ---> www.php.net/ : NULL ---> http://www.php.net : NULL ---> http://www.php.net/ : NULL ---> www.php.net:80 : NULL ---> http://www.php.net:80 : NULL ---> http://www.php.net:80/ : NULL ---> http://www.php.net/index.php : NULL ---> www.php.net/? : NULL ---> www.php.net:80/? : NULL ---> http://www.php.net/? : NULL ---> http://www.php.net:80/? : NULL ---> http://www.php.net:80/index.php : NULL ---> http://www.php.net:80/foo/bar/index.php : NULL ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : NULL ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php?lots=1&of=2¶meters=3&too=4&here=5 : NULL ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/ : NULL ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : NULL ---> http://www.php.net:80/this/../a/../deep/directory : NULL ---> http://www.php.net:80/this/../a/../deep/directory/ : NULL ---> http://www.php.net:80/this/is/a/very/deep/directory/../file.php : NULL ---> http://www.php.net:80/index.php : NULL ---> http://www.php.net:80/index.php? : NULL ---> http://www.php.net:80/#foo : NULL ---> http://www.php.net:80/?# : NULL ---> http://www.php.net:80/?test=1 : NULL ---> http://www.php.net/?test=1& : NULL ---> http://www.php.net:80/?& : NULL ---> http://www.php.net:80/index.php?test=1& : NULL ---> http://www.php.net/index.php?& : NULL ---> http://www.php.net:80/index.php?foo& : NULL ---> http://www.php.net/index.php?&foo : NULL ---> http://www.php.net:80/index.php?test=1&test2=char&test3=mixesCI : NULL ---> www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : NULL ---> http://secret@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : NULL ---> http://secret:@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : NULL --> http://:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : unicode(7) "hideout" --> http://secret:hideout@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : unicode(7) "hideout" --> http://secret@hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : NULL @@ -275,4 +147,4 @@ bool(false) --> http://blah.com:abcdef : Warning: parse_url(http://blah.com:abcdef): Unable to parse URL in %s on line 15 bool(false) -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/parse_url_basic_007.phpt b/ext/standard/tests/url/parse_url_basic_007.phpt index 25e9fca8e0..998f2f7891 100644 --- a/ext/standard/tests/url/parse_url_basic_007.phpt +++ b/ext/standard/tests/url/parse_url_basic_007.phpt @@ -21,134 +21,6 @@ foreach ($urls as $url) { echo "Done"; ?> --EXPECTF-- ---> 64.246.30.37 : string(12) "64.246.30.37" ---> http://64.246.30.37 : NULL ---> http://64.246.30.37/ : string(1) "/" ---> 64.246.30.37/ : string(13) "64.246.30.37/" ---> 64.246.30.37:80/ : string(1) "/" ---> php.net : string(7) "php.net" ---> php.net/ : string(8) "php.net/" ---> http://php.net : NULL ---> http://php.net/ : string(1) "/" ---> www.php.net : string(11) "www.php.net" ---> www.php.net/ : string(12) "www.php.net/" ---> http://www.php.net : NULL ---> http://www.php.net/ : string(1) "/" ---> www.php.net:80 : NULL ---> http://www.php.net:80 : NULL ---> http://www.php.net:80/ : string(1) "/" ---> http://www.php.net/index.php : string(10) "/index.php" ---> www.php.net/? : string(12) "www.php.net/" ---> www.php.net:80/? : string(1) "/" ---> http://www.php.net/? : string(1) "/" ---> http://www.php.net:80/? : string(1) "/" ---> http://www.php.net:80/index.php : string(10) "/index.php" ---> http://www.php.net:80/foo/bar/index.php : string(18) "/foo/bar/index.php" ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : string(53) "/this/is/a/very/deep/directory/structure/and/file.php" ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php?lots=1&of=2¶meters=3&too=4&here=5 : string(53) "/this/is/a/very/deep/directory/structure/and/file.php" ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/ : string(45) "/this/is/a/very/deep/directory/structure/and/" ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : string(53) "/this/is/a/very/deep/directory/structure/and/file.php" ---> http://www.php.net:80/this/../a/../deep/directory : string(28) "/this/../a/../deep/directory" ---> http://www.php.net:80/this/../a/../deep/directory/ : string(29) "/this/../a/../deep/directory/" ---> http://www.php.net:80/this/is/a/very/deep/directory/../file.php : string(42) "/this/is/a/very/deep/directory/../file.php" ---> http://www.php.net:80/index.php : string(10) "/index.php" ---> http://www.php.net:80/index.php? : string(10) "/index.php" ---> http://www.php.net:80/#foo : string(1) "/" ---> http://www.php.net:80/?# : string(1) "/" ---> http://www.php.net:80/?test=1 : string(1) "/" ---> http://www.php.net/?test=1& : string(1) "/" ---> http://www.php.net:80/?& : string(1) "/" ---> http://www.php.net:80/index.php?test=1& : string(10) "/index.php" ---> http://www.php.net/index.php?& : string(10) "/index.php" ---> http://www.php.net:80/index.php?foo& : string(10) "/index.php" ---> http://www.php.net/index.php?&foo : string(10) "/index.php" ---> http://www.php.net:80/index.php?test=1&test2=char&test3=mixesCI : string(10) "/index.php" ---> www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php" ---> http://secret@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php" ---> http://secret:@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php" ---> http://:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php" ---> http://secret:hideout@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php" ---> http://secret@hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php" ---> http://secret:hid:out@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php" ---> nntp://news.php.net : NULL ---> ftp://ftp.gnu.org/gnu/glic/glibc.tar.gz : string(22) "/gnu/glic/glibc.tar.gz" ---> zlib:http://foo@bar : string(14) "http://foo@bar" ---> zlib:filename.txt : string(12) "filename.txt" ---> zlib:/path/to/my/file/file.txt : string(25) "/path/to/my/file/file.txt" ---> foo://foo@bar : NULL ---> mailto:me@mydomain.com : string(15) "me@mydomain.com" ---> /foo.php?a=b&c=d : string(8) "/foo.php" ---> foo.php?a=b&c=d : string(7) "foo.php" ---> http://user:passwd@www.example.com:8080?bar=1&boom=0 : NULL ---> file:///path/to/file : string(13) "/path/to/file" ---> file://path/to/file : string(8) "/to/file" ---> file:/path/to/file : string(13) "/path/to/file" ---> http://1.2.3.4:/abc.asp?a=1&b=2 : string(8) "/abc.asp" ---> http://foo.com#bar : NULL ---> scheme: : NULL ---> foo+bar://baz@bang/bla : string(4) "/bla" ---> gg:9130731 : string(7) "9130731" ---> http://user:@pass@host/path?argument?value#etc : string(5) "/path" ---> http://10.10.10.10/:80 : string(4) "/:80" ---> http://x:? : NULL ---> x:blah.com : string(8) "blah.com" ---> x:/blah.com : string(9) "/blah.com" ---> x://::abc/? : string(1) "/" ---> http://::? : NULL ---> x://::6.5 : NULL ---> http://?:/ : string(1) "/" ---> http://@?:/ : string(1) "/" ---> file:///: : string(2) "/:" ---> file:///a:/ : string(3) "a:/" ---> file:///ab:/ : string(5) "/ab:/" ---> file:///a:/ : string(3) "a:/" ---> file:///@:/ : string(3) "@:/" ---> file:///:80/ : string(5) "/:80/" ---> [] : string(2) "[]" ---> http://[x:80]/ : string(1) "/" ---> : string(0) "" ---> / : string(1) "/" ---> http:///blah.com : -Warning: parse_url(http:///blah.com): Unable to parse URL in %s on line 15 -bool(false) ---> http://:80 : -Warning: parse_url(http://:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://user@:80 : -Warning: parse_url(http://user@:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://user:pass@:80 : -Warning: parse_url(http://user:pass@:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://: : -Warning: parse_url(http://:): Unable to parse URL in %s on line 15 -bool(false) ---> http://@/ : -Warning: parse_url(http://@/): Unable to parse URL in %s on line 15 -bool(false) ---> http://@:/ : -Warning: parse_url(http://@:/): Unable to parse URL in %s on line 15 -bool(false) ---> http://:/ : -Warning: parse_url(http://:/): Unable to parse URL in %s on line 15 -bool(false) ---> http://? : -Warning: parse_url(http://?): Unable to parse URL in %s on line 15 -bool(false) ---> http://?: : -Warning: parse_url(http://?:): Unable to parse URL in %s on line 15 -bool(false) ---> http://:? : -Warning: parse_url(http://:?): Unable to parse URL in %s on line 15 -bool(false) ---> http://blah.com:123456 : -Warning: parse_url(http://blah.com:123456): Unable to parse URL in %s on line 15 -bool(false) ---> http://blah.com:abcdef : -Warning: parse_url(http://blah.com:abcdef): Unable to parse URL in %s on line 15 -bool(false) -Done ---UEXPECTF-- --> 64.246.30.37 : unicode(12) "64.246.30.37" --> http://64.246.30.37 : NULL --> http://64.246.30.37/ : unicode(1) "/" @@ -275,4 +147,4 @@ bool(false) --> http://blah.com:abcdef : Warning: parse_url(http://blah.com:abcdef): Unable to parse URL in %s on line 15 bool(false) -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/parse_url_basic_008.phpt b/ext/standard/tests/url/parse_url_basic_008.phpt index 6cfaa4b504..0e61cf1a49 100644 --- a/ext/standard/tests/url/parse_url_basic_008.phpt +++ b/ext/standard/tests/url/parse_url_basic_008.phpt @@ -45,134 +45,6 @@ echo "Done"; --> http://www.php.net:80/index.php : NULL --> http://www.php.net:80/foo/bar/index.php : NULL --> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : NULL ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php?lots=1&of=2¶meters=3&too=4&here=5 : string(37) "lots=1&of=2¶meters=3&too=4&here=5" ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/ : NULL ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : NULL ---> http://www.php.net:80/this/../a/../deep/directory : NULL ---> http://www.php.net:80/this/../a/../deep/directory/ : NULL ---> http://www.php.net:80/this/is/a/very/deep/directory/../file.php : NULL ---> http://www.php.net:80/index.php : NULL ---> http://www.php.net:80/index.php? : NULL ---> http://www.php.net:80/#foo : NULL ---> http://www.php.net:80/?# : NULL ---> http://www.php.net:80/?test=1 : string(6) "test=1" ---> http://www.php.net/?test=1& : string(7) "test=1&" ---> http://www.php.net:80/?& : string(1) "&" ---> http://www.php.net:80/index.php?test=1& : string(7) "test=1&" ---> http://www.php.net/index.php?& : string(1) "&" ---> http://www.php.net:80/index.php?foo& : string(4) "foo&" ---> http://www.php.net/index.php?&foo : string(4) "&foo" ---> http://www.php.net:80/index.php?test=1&test2=char&test3=mixesCI : string(31) "test=1&test2=char&test3=mixesCI" ---> www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(31) "test=1&test2=char&test3=mixesCI" ---> http://secret@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(31) "test=1&test2=char&test3=mixesCI" ---> http://secret:@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(31) "test=1&test2=char&test3=mixesCI" ---> http://:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(31) "test=1&test2=char&test3=mixesCI" ---> http://secret:hideout@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(31) "test=1&test2=char&test3=mixesCI" ---> http://secret@hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(31) "test=1&test2=char&test3=mixesCI" ---> http://secret:hid:out@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(31) "test=1&test2=char&test3=mixesCI" ---> nntp://news.php.net : NULL ---> ftp://ftp.gnu.org/gnu/glic/glibc.tar.gz : NULL ---> zlib:http://foo@bar : NULL ---> zlib:filename.txt : NULL ---> zlib:/path/to/my/file/file.txt : NULL ---> foo://foo@bar : NULL ---> mailto:me@mydomain.com : NULL ---> /foo.php?a=b&c=d : string(7) "a=b&c=d" ---> foo.php?a=b&c=d : string(7) "a=b&c=d" ---> http://user:passwd@www.example.com:8080?bar=1&boom=0 : string(12) "bar=1&boom=0" ---> file:///path/to/file : NULL ---> file://path/to/file : NULL ---> file:/path/to/file : NULL ---> http://1.2.3.4:/abc.asp?a=1&b=2 : string(7) "a=1&b=2" ---> http://foo.com#bar : NULL ---> scheme: : NULL ---> foo+bar://baz@bang/bla : NULL ---> gg:9130731 : NULL ---> http://user:@pass@host/path?argument?value#etc : string(14) "argument?value" ---> http://10.10.10.10/:80 : NULL ---> http://x:? : NULL ---> x:blah.com : NULL ---> x:/blah.com : NULL ---> x://::abc/? : NULL ---> http://::? : NULL ---> x://::6.5 : NULL ---> http://?:/ : NULL ---> http://@?:/ : NULL ---> file:///: : NULL ---> file:///a:/ : NULL ---> file:///ab:/ : NULL ---> file:///a:/ : NULL ---> file:///@:/ : NULL ---> file:///:80/ : NULL ---> [] : NULL ---> http://[x:80]/ : NULL ---> : NULL ---> / : NULL ---> http:///blah.com : -Warning: parse_url(http:///blah.com): Unable to parse URL in %s on line 15 -bool(false) ---> http://:80 : -Warning: parse_url(http://:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://user@:80 : -Warning: parse_url(http://user@:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://user:pass@:80 : -Warning: parse_url(http://user:pass@:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://: : -Warning: parse_url(http://:): Unable to parse URL in %s on line 15 -bool(false) ---> http://@/ : -Warning: parse_url(http://@/): Unable to parse URL in %s on line 15 -bool(false) ---> http://@:/ : -Warning: parse_url(http://@:/): Unable to parse URL in %s on line 15 -bool(false) ---> http://:/ : -Warning: parse_url(http://:/): Unable to parse URL in %s on line 15 -bool(false) ---> http://? : -Warning: parse_url(http://?): Unable to parse URL in %s on line 15 -bool(false) ---> http://?: : -Warning: parse_url(http://?:): Unable to parse URL in %s on line 15 -bool(false) ---> http://:? : -Warning: parse_url(http://:?): Unable to parse URL in %s on line 15 -bool(false) ---> http://blah.com:123456 : -Warning: parse_url(http://blah.com:123456): Unable to parse URL in %s on line 15 -bool(false) ---> http://blah.com:abcdef : -Warning: parse_url(http://blah.com:abcdef): Unable to parse URL in %s on line 15 -bool(false) -Done ---UEXPECTF-- ---> 64.246.30.37 : NULL ---> http://64.246.30.37 : NULL ---> http://64.246.30.37/ : NULL ---> 64.246.30.37/ : NULL ---> 64.246.30.37:80/ : NULL ---> php.net : NULL ---> php.net/ : NULL ---> http://php.net : NULL ---> http://php.net/ : NULL ---> www.php.net : NULL ---> www.php.net/ : NULL ---> http://www.php.net : NULL ---> http://www.php.net/ : NULL ---> www.php.net:80 : NULL ---> http://www.php.net:80 : NULL ---> http://www.php.net:80/ : NULL ---> http://www.php.net/index.php : NULL ---> www.php.net/? : NULL ---> www.php.net:80/? : NULL ---> http://www.php.net/? : NULL ---> http://www.php.net:80/? : NULL ---> http://www.php.net:80/index.php : NULL ---> http://www.php.net:80/foo/bar/index.php : NULL ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : NULL --> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php?lots=1&of=2¶meters=3&too=4&here=5 : unicode(37) "lots=1&of=2¶meters=3&too=4&here=5" --> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/ : NULL --> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : NULL @@ -275,4 +147,4 @@ bool(false) --> http://blah.com:abcdef : Warning: parse_url(http://blah.com:abcdef): Unable to parse URL in %s on line 15 bool(false) -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/parse_url_basic_009.phpt b/ext/standard/tests/url/parse_url_basic_009.phpt index 473929f02b..17672642a2 100644 --- a/ext/standard/tests/url/parse_url_basic_009.phpt +++ b/ext/standard/tests/url/parse_url_basic_009.phpt @@ -53,134 +53,6 @@ echo "Done"; --> http://www.php.net:80/this/is/a/very/deep/directory/../file.php : NULL --> http://www.php.net:80/index.php : NULL --> http://www.php.net:80/index.php? : NULL ---> http://www.php.net:80/#foo : string(3) "foo" ---> http://www.php.net:80/?# : NULL ---> http://www.php.net:80/?test=1 : NULL ---> http://www.php.net/?test=1& : NULL ---> http://www.php.net:80/?& : NULL ---> http://www.php.net:80/index.php?test=1& : NULL ---> http://www.php.net/index.php?& : NULL ---> http://www.php.net:80/index.php?foo& : NULL ---> http://www.php.net/index.php?&foo : NULL ---> http://www.php.net:80/index.php?test=1&test2=char&test3=mixesCI : NULL ---> www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(16) "some_page_ref123" ---> http://secret@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(16) "some_page_ref123" ---> http://secret:@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(16) "some_page_ref123" ---> http://:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(16) "some_page_ref123" ---> http://secret:hideout@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(16) "some_page_ref123" ---> http://secret@hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(16) "some_page_ref123" ---> http://secret:hid:out@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(16) "some_page_ref123" ---> nntp://news.php.net : NULL ---> ftp://ftp.gnu.org/gnu/glic/glibc.tar.gz : NULL ---> zlib:http://foo@bar : NULL ---> zlib:filename.txt : NULL ---> zlib:/path/to/my/file/file.txt : NULL ---> foo://foo@bar : NULL ---> mailto:me@mydomain.com : NULL ---> /foo.php?a=b&c=d : NULL ---> foo.php?a=b&c=d : NULL ---> http://user:passwd@www.example.com:8080?bar=1&boom=0 : NULL ---> file:///path/to/file : NULL ---> file://path/to/file : NULL ---> file:/path/to/file : NULL ---> http://1.2.3.4:/abc.asp?a=1&b=2 : NULL ---> http://foo.com#bar : string(3) "bar" ---> scheme: : NULL ---> foo+bar://baz@bang/bla : NULL ---> gg:9130731 : NULL ---> http://user:@pass@host/path?argument?value#etc : string(3) "etc" ---> http://10.10.10.10/:80 : NULL ---> http://x:? : NULL ---> x:blah.com : NULL ---> x:/blah.com : NULL ---> x://::abc/? : NULL ---> http://::? : NULL ---> x://::6.5 : NULL ---> http://?:/ : NULL ---> http://@?:/ : NULL ---> file:///: : NULL ---> file:///a:/ : NULL ---> file:///ab:/ : NULL ---> file:///a:/ : NULL ---> file:///@:/ : NULL ---> file:///:80/ : NULL ---> [] : NULL ---> http://[x:80]/ : NULL ---> : NULL ---> / : NULL ---> http:///blah.com : -Warning: parse_url(http:///blah.com): Unable to parse URL in %s on line 15 -bool(false) ---> http://:80 : -Warning: parse_url(http://:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://user@:80 : -Warning: parse_url(http://user@:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://user:pass@:80 : -Warning: parse_url(http://user:pass@:80): Unable to parse URL in %s on line 15 -bool(false) ---> http://: : -Warning: parse_url(http://:): Unable to parse URL in %s on line 15 -bool(false) ---> http://@/ : -Warning: parse_url(http://@/): Unable to parse URL in %s on line 15 -bool(false) ---> http://@:/ : -Warning: parse_url(http://@:/): Unable to parse URL in %s on line 15 -bool(false) ---> http://:/ : -Warning: parse_url(http://:/): Unable to parse URL in %s on line 15 -bool(false) ---> http://? : -Warning: parse_url(http://?): Unable to parse URL in %s on line 15 -bool(false) ---> http://?: : -Warning: parse_url(http://?:): Unable to parse URL in %s on line 15 -bool(false) ---> http://:? : -Warning: parse_url(http://:?): Unable to parse URL in %s on line 15 -bool(false) ---> http://blah.com:123456 : -Warning: parse_url(http://blah.com:123456): Unable to parse URL in %s on line 15 -bool(false) ---> http://blah.com:abcdef : -Warning: parse_url(http://blah.com:abcdef): Unable to parse URL in %s on line 15 -bool(false) -Done ---UEXPECTF-- ---> 64.246.30.37 : NULL ---> http://64.246.30.37 : NULL ---> http://64.246.30.37/ : NULL ---> 64.246.30.37/ : NULL ---> 64.246.30.37:80/ : NULL ---> php.net : NULL ---> php.net/ : NULL ---> http://php.net : NULL ---> http://php.net/ : NULL ---> www.php.net : NULL ---> www.php.net/ : NULL ---> http://www.php.net : NULL ---> http://www.php.net/ : NULL ---> www.php.net:80 : NULL ---> http://www.php.net:80 : NULL ---> http://www.php.net:80/ : NULL ---> http://www.php.net/index.php : NULL ---> www.php.net/? : NULL ---> www.php.net:80/? : NULL ---> http://www.php.net/? : NULL ---> http://www.php.net:80/? : NULL ---> http://www.php.net:80/index.php : NULL ---> http://www.php.net:80/foo/bar/index.php : NULL ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : NULL ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php?lots=1&of=2¶meters=3&too=4&here=5 : NULL ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/ : NULL ---> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : NULL ---> http://www.php.net:80/this/../a/../deep/directory : NULL ---> http://www.php.net:80/this/../a/../deep/directory/ : NULL ---> http://www.php.net:80/this/is/a/very/deep/directory/../file.php : NULL ---> http://www.php.net:80/index.php : NULL ---> http://www.php.net:80/index.php? : NULL --> http://www.php.net:80/#foo : unicode(3) "foo" --> http://www.php.net:80/?# : NULL --> http://www.php.net:80/?test=1 : NULL @@ -275,4 +147,4 @@ bool(false) --> http://blah.com:abcdef : Warning: parse_url(http://blah.com:abcdef): Unable to parse URL in %s on line 15 bool(false) -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/parse_url_basic_010.phpt b/ext/standard/tests/url/parse_url_basic_010.phpt index 3bb2dba142..36fe46ace0 100644 --- a/ext/standard/tests/url/parse_url_basic_010.phpt +++ b/ext/standard/tests/url/parse_url_basic_010.phpt @@ -19,7 +19,7 @@ foreach(get_defined_constants() as $constantName => $constantValue) { echo "Done"; ?> ---EXPECTF-- +--EXPECT-- PHP_URL_SCHEME: 0 PHP_URL_HOST: 1 PHP_URL_PORT: 2 @@ -28,4 +28,4 @@ PHP_URL_PASS: 4 PHP_URL_PATH: 5 PHP_URL_QUERY: 6 PHP_URL_FRAGMENT: 7 -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/parse_url_error_001.phpt b/ext/standard/tests/url/parse_url_error_001.phpt index 0280a87cbc..12e4f53d35 100644 --- a/ext/standard/tests/url/parse_url_error_001.phpt +++ b/ext/standard/tests/url/parse_url_error_001.phpt @@ -35,4 +35,4 @@ NULL Warning: parse_url() expects at most 2 parameters, 3 given in %s on line 19 NULL -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/parse_url_error_002.phpt b/ext/standard/tests/url/parse_url_error_002.phpt index 9939df2f0b..674a78fbfd 100644 --- a/ext/standard/tests/url/parse_url_error_002.phpt +++ b/ext/standard/tests/url/parse_url_error_002.phpt @@ -22,32 +22,6 @@ echo "Done" --EXPECTF-- *** Testing parse_url() : error conditions: url component specifier out of range *** --> Below range:array(8) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["user"]=> - string(6) "secret" - ["pass"]=> - string(7) "hideout" - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(31) "test=1&test2=char&test3=mixesCI" - ["fragment"]=> - string(16) "some_page_ref123" -} - - ---> Above range: -Warning: parse_url(): Invalid URL component identifier 99 in %s on line 15 -bool(false) -Done ---UEXPECTF-- -*** Testing parse_url() : error conditions: url component specifier out of range *** ---> Below range:array(8) { [u"scheme"]=> unicode(4) "http" [u"host"]=> @@ -70,4 +44,4 @@ Done --> Above range: Warning: parse_url(): Invalid URL component identifier 99 in %s on line 15 bool(false) -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/parse_url_variation_001.phpt b/ext/standard/tests/url/parse_url_variation_001.phpt index d35612d9da..13417e4eeb 100644 --- a/ext/standard/tests/url/parse_url_variation_001.phpt +++ b/ext/standard/tests/url/parse_url_variation_001.phpt @@ -82,155 +82,6 @@ Error: 8 - Undefined variable: unset_var, %s(63) Arg value 0 array(1) { - ["path"]=> - string(1) "0" -} - -Arg value 1 -array(1) { - ["path"]=> - string(1) "1" -} - -Arg value 12345 -array(1) { - ["path"]=> - string(5) "12345" -} - -Arg value -2345 -array(1) { - ["path"]=> - string(5) "-2345" -} - -Arg value 10.5 -array(1) { - ["path"]=> - string(4) "10.5" -} - -Arg value -10.5 -array(1) { - ["path"]=> - string(5) "-10.5" -} - -Arg value 101234567000 -array(1) { - ["path"]=> - string(12) "101234567000" -} - -Arg value 1.07654321E-9 -array(1) { - ["path"]=> - string(13) "1.07654321E-9" -} - -Arg value 0.5 -array(1) { - ["path"]=> - string(3) "0.5" -} -Error: 8 - Array to string conversion, %s(69) - -Arg value Array -Error: 2 - parse_url() expects parameter 1 to be string (Unicode or binary), array given, %s(70) -NULL -Error: 8 - Array to string conversion, %s(69) - -Arg value Array -Error: 2 - parse_url() expects parameter 1 to be string (Unicode or binary), array given, %s(70) -NULL -Error: 8 - Array to string conversion, %s(69) - -Arg value Array -Error: 2 - parse_url() expects parameter 1 to be string (Unicode or binary), array given, %s(70) -NULL -Error: 8 - Array to string conversion, %s(69) - -Arg value Array -Error: 2 - parse_url() expects parameter 1 to be string (Unicode or binary), array given, %s(70) -NULL -Error: 8 - Array to string conversion, %s(69) - -Arg value Array -Error: 2 - parse_url() expects parameter 1 to be string (Unicode or binary), array given, %s(70) -NULL - -Arg value -array(1) { - ["path"]=> - string(0) "" -} - -Arg value -array(1) { - ["path"]=> - string(0) "" -} - -Arg value 1 -array(1) { - ["path"]=> - string(1) "1" -} - -Arg value -array(1) { - ["path"]=> - string(0) "" -} - -Arg value 1 -array(1) { - ["path"]=> - string(1) "1" -} - -Arg value -array(1) { - ["path"]=> - string(0) "" -} - -Arg value -array(1) { - ["path"]=> - string(0) "" -} - -Arg value -array(1) { - ["path"]=> - string(0) "" -} -Error: 4096 - Object of class stdClass could not be converted to string, %s(69) - -Arg value -Error: 2 - parse_url() expects parameter 1 to be string (Unicode or binary), object given, %s(70) -NULL - -Arg value -array(1) { - ["path"]=> - string(0) "" -} - -Arg value -array(1) { - ["path"]=> - string(0) "" -} -Done ---UEXPECTF-- -*** Testing parse_url() : usage variations *** -Error: 8 - Undefined variable: undefined_var, %s(60) -Error: 8 - Undefined variable: unset_var, %s(63) - -Arg value 0 -array(1) { [u"path"]=> unicode(1) "0" } @@ -372,4 +223,4 @@ array(1) { [u"path"]=> unicode(0) "" } -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/parse_url_variation_002.phpt b/ext/standard/tests/url/parse_url_variation_002.phpt index 6a5d3e9f3a..e0fea912c3 100644 --- a/ext/standard/tests/url/parse_url_variation_002.phpt +++ b/ext/standard/tests/url/parse_url_variation_002.phpt @@ -87,115 +87,6 @@ bool(false) Arg value -10.5 array(8) { - ["scheme"]=> - string(4) "http" - ["host"]=> - string(11) "www.php.net" - ["port"]=> - int(80) - ["user"]=> - string(6) "secret" - ["pass"]=> - string(7) "hideout" - ["path"]=> - string(10) "/index.php" - ["query"]=> - string(31) "test=1&test2=char&test3=mixesCI" - ["fragment"]=> - string(16) "some_page_ref123" -} - -Arg value 101234567000 -Error: 2 - parse_url(): Invalid URL component identifier %d, %s(71) -bool(false) - -Arg value 1.07654321E-9 -string(4) "http" - -Arg value 0.5 -string(4) "http" -Error: 8 - Array to string conversion, %s(70) - -Arg value Array -Error: 2 - parse_url() expects parameter 2 to be long, array given, %s(71) -NULL -Error: 8 - Array to string conversion, %s(70) - -Arg value Array -Error: 2 - parse_url() expects parameter 2 to be long, array given, %s(71) -NULL -Error: 8 - Array to string conversion, %s(70) - -Arg value Array -Error: 2 - parse_url() expects parameter 2 to be long, array given, %s(71) -NULL -Error: 8 - Array to string conversion, %s(70) - -Arg value Array -Error: 2 - parse_url() expects parameter 2 to be long, array given, %s(71) -NULL -Error: 8 - Array to string conversion, %s(70) - -Arg value Array -Error: 2 - parse_url() expects parameter 2 to be long, array given, %s(71) -NULL - -Arg value -string(4) "http" - -Arg value -string(4) "http" - -Arg value 1 -string(11) "www.php.net" - -Arg value -string(4) "http" - -Arg value 1 -string(11) "www.php.net" - -Arg value -string(4) "http" - -Arg value -Error: 2 - parse_url() expects parameter 2 to be long, string given, %s(71) -NULL - -Arg value -Error: 2 - parse_url() expects parameter 2 to be long, string given, %s(71) -NULL - -Arg value string -Error: 2 - parse_url() expects parameter 2 to be long, string given, %s(71) -NULL - -Arg value string -Error: 2 - parse_url() expects parameter 2 to be long, string given, %s(71) -NULL -Error: 4096 - Object of class stdClass could not be converted to string, %s(70) - -Arg value -Error: 2 - parse_url() expects parameter 2 to be long, object given, %s(71) -NULL - -Arg value -string(4) "http" - -Arg value -string(4) "http" -Done ---UEXPECTF-- -*** Testing parse_url() : usage variations *** -Error: 8 - Undefined variable: undefined_var, %s(61) -Error: 8 - Undefined variable: unset_var, %s(64) - -Arg value 10.5 -Error: 2 - parse_url(): Invalid URL component identifier 10, %s(71) -bool(false) - -Arg value -10.5 -array(8) { [u"scheme"]=> unicode(4) "http" [u"host"]=> @@ -293,4 +184,4 @@ unicode(4) "http" Arg value unicode(4) "http" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/rawurldecode_variation_001.phpt b/ext/standard/tests/url/rawurldecode_variation_001.phpt index e7f7581390..8edc7bc605 100644 --- a/ext/standard/tests/url/rawurldecode_variation_001.phpt +++ b/ext/standard/tests/url/rawurldecode_variation_001.phpt @@ -113,98 +113,6 @@ string(3) "0.5" Error: 8 - Array to string conversion, %s(73) Arg value Array -Error: 2 - rawurldecode() expects parameter 1 to be string, array given, %s(74) -NULL -Error: 8 - Array to string conversion, %s(73) - -Arg value Array -Error: 2 - rawurldecode() expects parameter 1 to be string, array given, %s(74) -NULL -Error: 8 - Array to string conversion, %s(73) - -Arg value Array -Error: 2 - rawurldecode() expects parameter 1 to be string, array given, %s(74) -NULL -Error: 8 - Array to string conversion, %s(73) - -Arg value Array -Error: 2 - rawurldecode() expects parameter 1 to be string, array given, %s(74) -NULL -Error: 8 - Array to string conversion, %s(73) - -Arg value Array -Error: 2 - rawurldecode() expects parameter 1 to be string, array given, %s(74) -NULL - -Arg value -string(0) "" - -Arg value -string(0) "" - -Arg value 1 -string(1) "1" - -Arg value -string(0) "" - -Arg value 1 -string(1) "1" - -Arg value -string(0) "" - -Arg value -string(0) "" - -Arg value -string(0) "" -Error: 4096 - Object of class stdClass could not be converted to string, %s(73) - -Arg value -Error: 2 - rawurldecode() expects parameter 1 to be string, object given, %s(74) -NULL - -Arg value -string(0) "" - -Arg value -string(0) "" -Done ---UEXPECTF-- -*** Testing rawurldecode() : usage variations *** -Error: 8 - Undefined variable: undefined_var, %s(64) -Error: 8 - Undefined variable: unset_var, %s(67) - -Arg value 0 -string(1) "0" - -Arg value 1 -string(1) "1" - -Arg value 12345 -string(5) "12345" - -Arg value -2345 -string(5) "-2345" - -Arg value 10.5 -string(4) "10.5" - -Arg value -10.5 -string(5) "-10.5" - -Arg value 101234567000 -string(12) "101234567000" - -Arg value 1.07654321E-9 -string(13) "1.07654321E-9" - -Arg value 0.5 -string(3) "0.5" -Error: 8 - Array to string conversion, %s(73) - -Arg value Array Error: 2 - rawurldecode() expects parameter 1 to be binary string, array given, %s(74) NULL Error: 8 - Array to string conversion, %s(73) diff --git a/ext/standard/tests/url/rawurlencode_error_001.phpt b/ext/standard/tests/url/rawurlencode_error_001.phpt index 7acce9e0c4..f368487c47 100644 --- a/ext/standard/tests/url/rawurlencode_error_001.phpt +++ b/ext/standard/tests/url/rawurlencode_error_001.phpt @@ -36,4 +36,4 @@ NULL Warning: rawurlencode() expects exactly 1 parameter, 2 given in %s on line 20 NULL -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/rawurlencode_variation_001.phpt b/ext/standard/tests/url/rawurlencode_variation_001.phpt index b5fd86d7db..f3867d03fe 100644 --- a/ext/standard/tests/url/rawurlencode_variation_001.phpt +++ b/ext/standard/tests/url/rawurlencode_variation_001.phpt @@ -113,98 +113,6 @@ string(3) "0.5" Error: 8 - Array to string conversion, %s(73) Arg value Array -Error: 2 - rawurlencode() expects parameter 1 to be string, array given, %s(74) -NULL -Error: 8 - Array to string conversion, %s(73) - -Arg value Array -Error: 2 - rawurlencode() expects parameter 1 to be string, array given, %s(74) -NULL -Error: 8 - Array to string conversion, %s(73) - -Arg value Array -Error: 2 - rawurlencode() expects parameter 1 to be string, array given, %s(74) -NULL -Error: 8 - Array to string conversion, %s(73) - -Arg value Array -Error: 2 - rawurlencode() expects parameter 1 to be string, array given, %s(74) -NULL -Error: 8 - Array to string conversion, %s(73) - -Arg value Array -Error: 2 - rawurlencode() expects parameter 1 to be string, array given, %s(74) -NULL - -Arg value -string(0) "" - -Arg value -string(0) "" - -Arg value 1 -string(1) "1" - -Arg value -string(0) "" - -Arg value 1 -string(1) "1" - -Arg value -string(0) "" - -Arg value -string(0) "" - -Arg value -string(0) "" -Error: 4096 - Object of class stdClass could not be converted to string, %s(73) - -Arg value -Error: 2 - rawurlencode() expects parameter 1 to be string, object given, %s(74) -NULL - -Arg value -string(0) "" - -Arg value -string(0) "" -Done ---UEXPECTF-- -*** Testing rawurlencode() : usage variations *** -Error: 8 - Undefined variable: undefined_var, %s(64) -Error: 8 - Undefined variable: unset_var, %s(67) - -Arg value 0 -string(1) "0" - -Arg value 1 -string(1) "1" - -Arg value 12345 -string(5) "12345" - -Arg value -2345 -string(5) "-2345" - -Arg value 10.5 -string(4) "10.5" - -Arg value -10.5 -string(5) "-10.5" - -Arg value 101234567000 -string(12) "101234567000" - -Arg value 1.07654321E-9 -string(13) "1.07654321E-9" - -Arg value 0.5 -string(3) "0.5" -Error: 8 - Array to string conversion, %s(73) - -Arg value Array Error: 2 - rawurlencode() expects parameter 1 to be binary string, array given, %s(74) NULL Error: 8 - Array to string conversion, %s(73) diff --git a/ext/standard/tests/url/urldecode_error_001.phpt b/ext/standard/tests/url/urldecode_error_001.phpt index f0e5ae0838..db45266a8b 100644 --- a/ext/standard/tests/url/urldecode_error_001.phpt +++ b/ext/standard/tests/url/urldecode_error_001.phpt @@ -36,4 +36,4 @@ NULL Warning: urldecode() expects exactly 1 parameter, 2 given in %s on line 20 NULL -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/urldecode_variation_001.phpt b/ext/standard/tests/url/urldecode_variation_001.phpt index e8b662908c..01421d5e40 100644 --- a/ext/standard/tests/url/urldecode_variation_001.phpt +++ b/ext/standard/tests/url/urldecode_variation_001.phpt @@ -113,98 +113,6 @@ string(3) "0.5" Error: 8 - Array to string conversion, %s(73) Arg value Array -Error: 2 - urldecode() expects parameter 1 to be string, array given, %s(74) -NULL -Error: 8 - Array to string conversion, %s(73) - -Arg value Array -Error: 2 - urldecode() expects parameter 1 to be string, array given, %s(74) -NULL -Error: 8 - Array to string conversion, %s(73) - -Arg value Array -Error: 2 - urldecode() expects parameter 1 to be string, array given, %s(74) -NULL -Error: 8 - Array to string conversion, %s(73) - -Arg value Array -Error: 2 - urldecode() expects parameter 1 to be string, array given, %s(74) -NULL -Error: 8 - Array to string conversion, %s(73) - -Arg value Array -Error: 2 - urldecode() expects parameter 1 to be string, array given, %s(74) -NULL - -Arg value -string(0) "" - -Arg value -string(0) "" - -Arg value 1 -string(1) "1" - -Arg value -string(0) "" - -Arg value 1 -string(1) "1" - -Arg value -string(0) "" - -Arg value -string(0) "" - -Arg value -string(0) "" -Error: 4096 - Object of class stdClass could not be converted to string, %s(73) - -Arg value -Error: 2 - urldecode() expects parameter 1 to be string, object given, %s(74) -NULL - -Arg value -string(0) "" - -Arg value -string(0) "" -Done ---UEXPECTF-- -*** Testing urldecode() : usage variations *** -Error: 8 - Undefined variable: undefined_var, %s(64) -Error: 8 - Undefined variable: unset_var, %s(67) - -Arg value 0 -string(1) "0" - -Arg value 1 -string(1) "1" - -Arg value 12345 -string(5) "12345" - -Arg value -2345 -string(5) "-2345" - -Arg value 10.5 -string(4) "10.5" - -Arg value -10.5 -string(5) "-10.5" - -Arg value 101234567000 -string(12) "101234567000" - -Arg value 1.07654321E-9 -string(13) "1.07654321E-9" - -Arg value 0.5 -string(3) "0.5" -Error: 8 - Array to string conversion, %s(73) - -Arg value Array Error: 2 - urldecode() expects parameter 1 to be binary string, array given, %s(74) NULL Error: 8 - Array to string conversion, %s(73) diff --git a/ext/standard/tests/url/urlencode_error_001.phpt b/ext/standard/tests/url/urlencode_error_001.phpt index fc00b057d8..3f76b2ca62 100644 --- a/ext/standard/tests/url/urlencode_error_001.phpt +++ b/ext/standard/tests/url/urlencode_error_001.phpt @@ -36,4 +36,4 @@ NULL Warning: urlencode() expects exactly 1 parameter, 2 given in %s on line 20 NULL -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/url/urlencode_variation_001.phpt b/ext/standard/tests/url/urlencode_variation_001.phpt index 0d0373458e..0289de6832 100644 --- a/ext/standard/tests/url/urlencode_variation_001.phpt +++ b/ext/standard/tests/url/urlencode_variation_001.phpt @@ -113,98 +113,6 @@ string(3) "0.5" Error: 8 - Array to string conversion, %s(73) Arg value Array -Error: 2 - urlencode() expects parameter 1 to be string, array given, %s(74) -NULL -Error: 8 - Array to string conversion, %s(73) - -Arg value Array -Error: 2 - urlencode() expects parameter 1 to be string, array given, %s(74) -NULL -Error: 8 - Array to string conversion, %s(73) - -Arg value Array -Error: 2 - urlencode() expects parameter 1 to be string, array given, %s(74) -NULL -Error: 8 - Array to string conversion, %s(73) - -Arg value Array -Error: 2 - urlencode() expects parameter 1 to be string, array given, %s(74) -NULL -Error: 8 - Array to string conversion, %s(73) - -Arg value Array -Error: 2 - urlencode() expects parameter 1 to be string, array given, %s(74) -NULL - -Arg value -string(0) "" - -Arg value -string(0) "" - -Arg value 1 -string(1) "1" - -Arg value -string(0) "" - -Arg value 1 -string(1) "1" - -Arg value -string(0) "" - -Arg value -string(0) "" - -Arg value -string(0) "" -Error: 4096 - Object of class stdClass could not be converted to string, %s(73) - -Arg value -Error: 2 - urlencode() expects parameter 1 to be string, object given, %s(74) -NULL - -Arg value -string(0) "" - -Arg value -string(0) "" -Done ---UEXPECTF-- -*** Testing urlencode() : usage variations *** -Error: 8 - Undefined variable: undefined_var, %s(64) -Error: 8 - Undefined variable: unset_var, %s(67) - -Arg value 0 -string(1) "0" - -Arg value 1 -string(1) "1" - -Arg value 12345 -string(5) "12345" - -Arg value -2345 -string(5) "-2345" - -Arg value 10.5 -string(4) "10.5" - -Arg value -10.5 -string(5) "-10.5" - -Arg value 101234567000 -string(12) "101234567000" - -Arg value 1.07654321E-9 -string(13) "1.07654321E-9" - -Arg value 0.5 -string(3) "0.5" -Error: 8 - Array to string conversion, %s(73) - -Arg value Array Error: 2 - urlencode() expects parameter 1 to be binary string, array given, %s(74) NULL Error: 8 - Array to string conversion, %s(73) @@ -264,4 +172,4 @@ string(0) "" Arg value string(0) "" -Done
\ No newline at end of file +Done diff --git a/ext/standard/tests/versioning/version_compare.phpt b/ext/standard/tests/versioning/version_compare.phpt index 145fb933ab..17574e9737 100644 --- a/ext/standard/tests/versioning/version_compare.phpt +++ b/ext/standard/tests/versioning/version_compare.phpt @@ -792,4 +792,4 @@ TESTING OPERATORS 1.0pl1 == 1.0pl1 : true 1.0pl1 ne 1.0pl1 : false 1.0pl1 <> 1.0pl1 : false - 1.0pl1 != 1.0pl1 : false
\ No newline at end of file + 1.0pl1 != 1.0pl1 : false |