helly Sat Nov 16 12:30:10 2002 EDT Modified files: (Branch: PHP_4_3) /php4/ext/standard/tests/array 001.phpt 002.phpt 003.phpt 004.phpt 005.phpt 006.phpt 007.phpt 008.phpt array_change_key_case.phpt array_chunk.phpt array_count_values.phpt array_search.phpt count_recursive.phpt data.inc var_export.phpt Log: MFH
Index: php4/ext/standard/tests/array/001.phpt diff -u php4/ext/standard/tests/array/001.phpt:1.5 php4/ext/standard/tests/array/001.phpt:1.5.2.1 --- php4/ext/standard/tests/array/001.phpt:1.5 Thu Nov 7 12:49:11 2002 +++ php4/ext/standard/tests/array/001.phpt Sat Nov 16 12:30:10 2002 @@ -57,7 +57,7 @@ int(27) [3]=> string(4) "test" - ["-2147483647"]=> + ["-1000"]=> array(2) { [0]=> string(6) "banana" @@ -113,7 +113,7 @@ int(27) int(3) string(4) "test" -string(11) "-2147483647" +string(5) "-1000" array(2) { [0]=> string(6) "banana" Index: php4/ext/standard/tests/array/002.phpt diff -u php4/ext/standard/tests/array/002.phpt:1.3 php4/ext/standard/tests/array/002.phpt:1.3.2.1 --- php4/ext/standard/tests/array/002.phpt:1.3 Thu Nov 7 12:49:11 2002 +++ php4/ext/standard/tests/array/002.phpt Sat Nov 16 12:30:10 2002 @@ -1,7 +1,5 @@ --TEST-- Test arsort, asort, krsort, ksort, rsort, and sort ---POST-- ---GET-- --INI-- precision=14 --FILE-- @@ -24,16 +22,43 @@ var_dump ($data); } +echo "Unsorted data:\n"; +var_dump ($data); foreach (array ('arsort', 'asort', 'krsort', 'ksort', 'rsort', 'sort') as $test_function) { test_sort ($test_function, $data); } ?> --EXPECT-- --- Testing arsort() -- +Unsorted data: +array(8) { + [0]=> + string(3) "PHP" + [17]=> + string(27) "PHP: Hypertext Preprocessor" + [5]=> + string(4) "Test" + ["test"]=> + int(27) + [1000]=> + string(4) "test" + ["-1000"]=> + array(2) { + [0]=> + string(6) "banana" + [1]=> + string(6) "orange" + } + [1001]=> + string(6) "monkey" + [16777216]=> + float(-0.33333333333333) +} + + -- Testing arsort() -- No second argument: array(8) { - ["-2147483647"]=> + ["-1000"]=> array(2) { [0]=> string(6) "banana" @@ -42,9 +67,9 @@ } ["test"]=> int(27) - [2147483647]=> + [1000]=> string(4) "test" - [-2147483648]=> + [1001]=> string(6) "monkey" [5]=> string(4) "Test" @@ -57,7 +82,7 @@ } Using SORT_REGULAR: array(8) { - ["-2147483647"]=> + ["-1000"]=> array(2) { [0]=> string(6) "banana" @@ -66,9 +91,9 @@ } ["test"]=> int(27) - [2147483647]=> + [1000]=> string(4) "test" - [-2147483648]=> + [1001]=> string(6) "monkey" [5]=> string(4) "Test" @@ -83,7 +108,7 @@ array(8) { ["test"]=> int(27) - ["-2147483647"]=> + ["-1000"]=> array(2) { [0]=> string(6) "banana" @@ -94,20 +119,20 @@ string(3) "PHP" [17]=> string(27) "PHP: Hypertext Preprocessor" - [-2147483648]=> + [1001]=> string(6) "monkey" [5]=> string(4) "Test" - [2147483647]=> + [1000]=> string(4) "test" [16777216]=> float(-0.33333333333333) } Using SORT_STRING array(8) { - [2147483647]=> + [1000]=> string(4) "test" - [-2147483648]=> + [1001]=> string(6) "monkey" [5]=> string(4) "Test" @@ -115,7 +140,7 @@ string(27) "PHP: Hypertext Preprocessor" [0]=> string(3) "PHP" - ["-2147483647"]=> + ["-1000"]=> array(2) { [0]=> string(6) "banana" @@ -139,13 +164,13 @@ string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" - [-2147483648]=> + [1001]=> string(6) "monkey" - [2147483647]=> + [1000]=> string(4) "test" ["test"]=> int(27) - ["-2147483647"]=> + ["-1000"]=> array(2) { [0]=> string(6) "banana" @@ -163,13 +188,13 @@ string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" - [-2147483648]=> + [1001]=> string(6) "monkey" - [2147483647]=> + [1000]=> string(4) "test" ["test"]=> int(27) - ["-2147483647"]=> + ["-1000"]=> array(2) { [0]=> string(6) "banana" @@ -181,9 +206,9 @@ array(8) { [16777216]=> float(-0.33333333333333) - [-2147483648]=> + [1001]=> string(6) "monkey" - [2147483647]=> + [1000]=> string(4) "test" [5]=> string(4) "Test" @@ -191,7 +216,7 @@ string(27) "PHP: Hypertext Preprocessor" [0]=> string(3) "PHP" - ["-2147483647"]=> + ["-1000"]=> array(2) { [0]=> string(6) "banana" @@ -207,7 +232,7 @@ float(-0.33333333333333) ["test"]=> int(27) - ["-2147483647"]=> + ["-1000"]=> array(2) { [0]=> string(6) "banana" @@ -220,19 +245,21 @@ string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" - [-2147483648]=> + [1001]=> string(6) "monkey" - [2147483647]=> + [1000]=> string(4) "test" } -- Testing krsort() -- No second argument: array(8) { - [2147483647]=> - string(4) "test" [16777216]=> float(-0.33333333333333) + [1001]=> + string(6) "monkey" + [1000]=> + string(4) "test" [17]=> string(27) "PHP: Hypertext Preprocessor" [5]=> @@ -241,46 +268,46 @@ int(27) [0]=> string(3) "PHP" - ["-2147483647"]=> + ["-1000"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } - [-2147483648]=> - string(6) "monkey" } Using SORT_REGULAR: array(8) { - [2147483647]=> - string(4) "test" [16777216]=> float(-0.33333333333333) + [1001]=> + string(6) "monkey" + [1000]=> + string(4) "test" [17]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" - ["test"]=> - int(27) [0]=> string(3) "PHP" - ["-2147483647"]=> + ["test"]=> + int(27) + ["-1000"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } - [-2147483648]=> - string(6) "monkey" } Using SORT_NUMERIC: array(8) { - [2147483647]=> - string(4) "test" [16777216]=> float(-0.33333333333333) + [1001]=> + string(6) "monkey" + [1000]=> + string(4) "test" [17]=> string(27) "PHP: Hypertext Preprocessor" [5]=> @@ -289,15 +316,13 @@ int(27) [0]=> string(3) "PHP" - ["-2147483647"]=> + ["-1000"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } - [-2147483648]=> - string(6) "monkey" } Using SORT_STRING array(8) { @@ -305,17 +330,17 @@ int(27) [5]=> string(4) "Test" - [2147483647]=> - string(4) "test" [17]=> string(27) "PHP: Hypertext Preprocessor" [16777216]=> float(-0.33333333333333) + [1001]=> + string(6) "monkey" + [1000]=> + string(4) "test" [0]=> string(3) "PHP" - [-2147483648]=> - string(6) "monkey" - ["-2147483647"]=> + ["-1000"]=> array(2) { [0]=> string(6) "banana" @@ -327,9 +352,7 @@ -- Testing ksort() -- No second argument: array(8) { - [-2147483648]=> - string(6) "monkey" - ["-2147483647"]=> + ["-1000"]=> array(2) { [0]=> string(6) "banana" @@ -344,16 +367,16 @@ string(4) "Test" [17]=> string(27) "PHP: Hypertext Preprocessor" + [1000]=> + string(4) "test" + [1001]=> + string(6) "monkey" [16777216]=> float(-0.33333333333333) - [2147483647]=> - string(4) "test" } Using SORT_REGULAR: array(8) { - [-2147483648]=> - string(6) "monkey" - ["-2147483647"]=> + ["-1000"]=> array(2) { [0]=> string(6) "banana" @@ -368,16 +391,16 @@ string(4) "Test" [17]=> string(27) "PHP: Hypertext Preprocessor" + [1000]=> + string(4) "test" + [1001]=> + string(6) "monkey" [16777216]=> float(-0.33333333333333) - [2147483647]=> - string(4) "test" } Using SORT_NUMERIC: array(8) { - [-2147483648]=> - string(6) "monkey" - ["-2147483647"]=> + ["-1000"]=> array(2) { [0]=> string(6) "banana" @@ -392,30 +415,32 @@ string(4) "Test" [17]=> string(27) "PHP: Hypertext Preprocessor" + [1000]=> + string(4) "test" + [1001]=> + string(6) "monkey" [16777216]=> float(-0.33333333333333) - [2147483647]=> - string(4) "test" } Using SORT_STRING array(8) { - ["-2147483647"]=> + ["-1000"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } - [-2147483648]=> - string(6) "monkey" [0]=> string(3) "PHP" + [1000]=> + string(4) "test" + [1001]=> + string(6) "monkey" [16777216]=> float(-0.33333333333333) [17]=> string(27) "PHP: Hypertext Preprocessor" - [2147483647]=> - string(4) "test" [5]=> string(4) "Test" ["test"]=> Index: php4/ext/standard/tests/array/003.phpt diff -u php4/ext/standard/tests/array/003.phpt:1.4 php4/ext/standard/tests/array/003.phpt:1.4.2.1 --- php4/ext/standard/tests/array/003.phpt:1.4 Thu Nov 7 12:49:11 2002 +++ php4/ext/standard/tests/array/003.phpt Sat Nov 16 12:30:10 2002 @@ -1,7 +1,5 @@ --TEST-- Test usort, uksort and uasort ---POST-- ---GET-- --INI-- precision=14 --FILE-- @@ -34,7 +32,7 @@ array(8) { [16777216]=> float(-0.33333333333333) - ["-2147483647"]=> + ["-1000"]=> array(2) { [0]=> string(6) "banana" @@ -49,31 +47,31 @@ string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" - [-2147483648]=> + [1001]=> string(6) "monkey" - [2147483647]=> + [1000]=> string(4) "test" } -- Testing uksort() -- array(8) { - ["-2147483647"]=> + ["-1000"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } - [-2147483648]=> - string(6) "monkey" [0]=> string(3) "PHP" + [1000]=> + string(4) "test" + [1001]=> + string(6) "monkey" [16777216]=> float(-0.33333333333333) [17]=> string(27) "PHP: Hypertext Preprocessor" - [2147483647]=> - string(4) "test" [5]=> string(4) "Test" ["test"]=> Index: php4/ext/standard/tests/array/004.phpt diff -u php4/ext/standard/tests/array/004.phpt:1.2 php4/ext/standard/tests/array/004.phpt:1.2.4.1 --- php4/ext/standard/tests/array/004.phpt:1.2 Tue Aug 20 23:13:33 2002 +++ php4/ext/standard/tests/array/004.phpt Sat Nov 16 12:30:10 2002 @@ -1,7 +1,5 @@ --TEST-- Test natsort and natcasesort ---POST-- ---GET-- --INI-- precision=14 --FILE-- Index: php4/ext/standard/tests/array/005.phpt diff -u php4/ext/standard/tests/array/005.phpt:1.1 php4/ext/standard/tests/array/005.phpt:1.1.4.1 --- php4/ext/standard/tests/array/005.phpt:1.1 Thu Aug 1 08:33:02 2002 +++ php4/ext/standard/tests/array/005.phpt Sat Nov 16 12:30:10 2002 @@ -1,7 +1,5 @@ --TEST-- Test array_shift behaviour ---POST-- ---GET-- --FILE-- <?php Index: php4/ext/standard/tests/array/006.phpt diff -u php4/ext/standard/tests/array/006.phpt:1.2 php4/ext/standard/tests/array/006.phpt:1.2.4.1 --- php4/ext/standard/tests/array/006.phpt:1.2 Thu Aug 1 12:39:14 2002 +++ php4/ext/standard/tests/array/006.phpt Sat Nov 16 12:30:10 2002 @@ -1,7 +1,5 @@ --TEST-- Test array_pop behaviour ---POST-- ---GET-- --FILE-- <?php Index: php4/ext/standard/tests/array/007.phpt diff -u php4/ext/standard/tests/array/007.phpt:1.1 php4/ext/standard/tests/array/007.phpt:1.1.2.1 --- php4/ext/standard/tests/array/007.phpt:1.1 Wed Sep 11 14:16:11 2002 +++ php4/ext/standard/tests/array/007.phpt Sat Nov 16 12:30:10 2002 @@ -1,7 +1,5 @@ --TEST-- Test array_diff and array_diff_assoc behaviour ---POST-- ---GET-- --FILE-- <?php $a = array(1,"big"=>2,3,6,3,5,3,3,3,3,3,3,3,3,3,3); Index: php4/ext/standard/tests/array/008.phpt diff -u php4/ext/standard/tests/array/008.phpt:1.1 php4/ext/standard/tests/array/008.phpt:1.1.2.1 --- php4/ext/standard/tests/array/008.phpt:1.1 Sat Sep 21 10:50:55 2002 +++ php4/ext/standard/tests/array/008.phpt Sat Nov 16 12:30:10 2002 @@ -1,7 +1,5 @@ --TEST-- Test array_intersect and array_intersect_assoc behaviour ---POST-- ---GET-- --FILE-- <?php //-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=- TEST 1 -=-=-=-=- Index: php4/ext/standard/tests/array/array_change_key_case.phpt diff -u php4/ext/standard/tests/array/array_change_key_case.phpt:1.1 php4/ext/standard/tests/array/array_change_key_case.phpt:1.1.2.1 --- php4/ext/standard/tests/array/array_change_key_case.phpt:1.1 Sun Oct 6 14:42:03 2002 +++ php4/ext/standard/tests/array/array_change_key_case.phpt Sat Nov 16 12:30:10 +2002 @@ -1,7 +1,5 @@ --TEST-- array_change_key_case() ---POST-- ---GET-- --FILE-- <?php $arrays = array ( Index: php4/ext/standard/tests/array/array_chunk.phpt diff -u php4/ext/standard/tests/array/array_chunk.phpt:1.1 php4/ext/standard/tests/array/array_chunk.phpt:1.1.2.1 --- php4/ext/standard/tests/array/array_chunk.phpt:1.1 Sun Oct 6 14:42:03 2002 +++ php4/ext/standard/tests/array/array_chunk.phpt Sat Nov 16 12:30:10 2002 @@ -1,7 +1,5 @@ --TEST-- array_chunk() ---POST-- ---GET-- --FILE-- <?php $arrays = array ( Index: php4/ext/standard/tests/array/array_count_values.phpt diff -u php4/ext/standard/tests/array/array_count_values.phpt:1.1 php4/ext/standard/tests/array/array_count_values.phpt:1.1.2.1 --- php4/ext/standard/tests/array/array_count_values.phpt:1.1 Sun Oct 6 14:42:03 2002 +++ php4/ext/standard/tests/array/array_count_values.phpt Sat Nov 16 12:30:10 +2002 @@ -1,7 +1,5 @@ --TEST-- array_count_values() ---POST-- ---GET-- --FILE-- <?php $arrays = array ( Index: php4/ext/standard/tests/array/array_search.phpt diff -u php4/ext/standard/tests/array/array_search.phpt:1.2 php4/ext/standard/tests/array/array_search.phpt:1.2.8.1 --- php4/ext/standard/tests/array/array_search.phpt:1.2 Tue Mar 5 04:00:56 2002 +++ php4/ext/standard/tests/array/array_search.phpt Sat Nov 16 12:30:10 2002 @@ -1,7 +1,5 @@ --TEST-- search_array and in_array (including bug 13567) ---POST-- ---GET-- --FILE-- <?php Index: php4/ext/standard/tests/array/count_recursive.phpt diff -u php4/ext/standard/tests/array/count_recursive.phpt:1.3 php4/ext/standard/tests/array/count_recursive.phpt:1.3.4.1 --- php4/ext/standard/tests/array/count_recursive.phpt:1.3 Thu Mar 21 09:18:26 2002 +++ php4/ext/standard/tests/array/count_recursive.phpt Sat Nov 16 12:30:10 2002 @@ -1,7 +1,5 @@ --TEST-- count ---POST-- ---GET-- --FILE-- <?php print "Testing NULL...\n"; Index: php4/ext/standard/tests/array/data.inc diff -u php4/ext/standard/tests/array/data.inc:1.2 php4/ext/standard/tests/array/data.inc:1.2.2.1 --- php4/ext/standard/tests/array/data.inc:1.2 Thu Nov 7 12:49:11 2002 +++ php4/ext/standard/tests/array/data.inc Sat Nov 16 12:30:10 2002 @@ -5,8 +5,8 @@ 17=>'PHP: Hypertext Preprocessor', 5=>'Test', 'test'=>27, - 2147483647=>'test', - "-2147483647"=>array('banana', 'orange'), + 1000=>'test', + "-1000"=>array('banana', 'orange'), 'monkey', $tmp=>-1/3 ); Index: php4/ext/standard/tests/array/var_export.phpt diff -u php4/ext/standard/tests/array/var_export.phpt:1.1 php4/ext/standard/tests/array/var_export.phpt:1.1.2.1 --- php4/ext/standard/tests/array/var_export.phpt:1.1 Fri Oct 11 09:49:20 2002 +++ php4/ext/standard/tests/array/var_export.phpt Sat Nov 16 12:30:10 2002 @@ -1,8 +1,5 @@ --TEST-- var_export() and objects with numeric indexes properties ---POST-- ---GET-- ---INI-- --FILE-- <?php $a = (object) array (1, 3, "foo" => "bar");
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php