Test results

From: Date: Thu, 07 Nov 2002 01:32:46 +0000
Subject: Test results
Groups: php.qa 
Request: Send a blank email to php-qa+get-6635@lists.php.net to get a copy of this message
OS: SunOS Automake: automake (GNU automake) 1.6.2 Written by Tom Tromey <tromey@redhat.com>. Copyright 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Autoconf: autoconf (GNU Autoconf) 2.53 Written by David J. MacKenzie and Akim Demaille. Copyright 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Libtool: ltmain.sh (GNU libtool) 1.4 (1.920 2001/04/24 23:26:18) Compiler: Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2/specs Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls Thread model: posix gcc version 3.2 Bison: bison (GNU Bison) 1.75 Written by Robert Corbett and Richard Stallman. Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- Test array_merge and array_walk [ext/standard/tests/array/001.phpt] Test arsort, asort, krsort, ksort, rsort, and sort [ext/standard/tests/array/002.phpt] Test usort, uksort and uasort [ext/standard/tests/array/003.phpt] GetImageSize() [ext/standard/tests/image/getimagesize.phpt] ===================================================================== ================================================================================ /usr/home/paj/php4/ext/standard/tests/array/001.phpt ================================================================================ ---- EXPECTED OUTPUT array(10) { [0]=> string(3) "PHP" [1]=> string(27) "PHP: Hypertext Preprocessor" [2]=> string(4) "Test" ["test"]=> int(27) [3]=> string(4) "test" ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [4]=> float(-0.33333333333333) [5]=> array(1) { [0]=> array(1) { [0]=> array(1) { [0]=> int(0) } } } [6]=> array(1) { [0]=> array(1) { [0]=> array(1) { [0]=> int(0) } } } [7]=> array(1) { [0]=> array(1) { [0]=> array(1) { [0]=> int(0) } } } } -- Testing array_walk() -- int(0) string(3) "PHP" int(1) string(27) "PHP: Hypertext Preprocessor" int(2) string(4) "Test" string(4) "test" int(27) int(3) string(4) "test" string(11) "-2147483648" array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } int(4) float(-0.33333333333333) int(5) array(1) { [0]=> array(1) { [0]=> array(1) { [0]=> int(0) } } } int(6) array(1) { [0]=> array(1) { [0]=> array(1) { [0]=> int(0) } } } int(7) array(1) { [0]=> array(1) { [0]=> array(1) { [0]=> int(0) } } } ---- ACTUAL OUTPUT array(10) { [0]=> string(3) "PHP" [1]=> string(27) "PHP: Hypertext Preprocessor" [2]=> string(4) "Test" ["test"]=> int(27) [3]=> float(-0.33333333333333) ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [4]=> string(6) "monkey" [5]=> array(1) { [0]=> array(1) { [0]=> array(1) { [0]=> int(0) } } } [6]=> array(1) { [0]=> array(1) { [0]=> array(1) { [0]=> int(0) } } } [7]=> array(1) { [0]=> array(1) { [0]=> array(1) { [0]=> int(0) } } } } -- Testing array_walk() -- int(0) string(3) "PHP" int(1) string(27) "PHP: Hypertext Preprocessor" int(2) string(4) "Test" string(4) "test" int(27) int(3) float(-0.33333333333333) string(11) "-2147483648" array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } int(4) string(6) "monkey" int(5) array(1) { [0]=> array(1) { [0]=> array(1) { [0]=> int(0) } } } int(6) array(1) { [0]=> array(1) { [0]=> array(1) { [0]=> int(0) } } } int(7) array(1) { [0]=> array(1) { [0]=> array(1) { [0]=> int(0) } } } ---- FAILED ================================================================================ 011- string(4) "test" 011+ float(-0.33333333333333) 020- float(-0.33333333333333) 020+ string(6) "monkey" 065- string(4) "test" 065+ float(-0.33333333333333) 074- float(-0.33333333333333) 074+ string(6) "monkey" ================================================================================ ================================================================================ /usr/home/paj/php4/ext/standard/tests/array/002.phpt ================================================================================ ---- EXPECTED OUTPUT -- Testing arsort() -- No second argument: array(7) { ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } ["test"]=> int(27) [2147483647]=> string(4) "test" [5]=> string(4) "Test" [17]=> string(27) "PHP: Hypertext Preprocessor" [0]=> string(3) "PHP" [-2147483648]=> float(-0.33333333333333) } Using SORT_REGULAR: array(7) { ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } ["test"]=> int(27) [2147483647]=> string(4) "test" [5]=> string(4) "Test" [17]=> string(27) "PHP: Hypertext Preprocessor" [0]=> string(3) "PHP" [-2147483648]=> float(-0.33333333333333) } Using SORT_NUMERIC: array(7) { ["test"]=> int(27) ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [0]=> string(3) "PHP" [17]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" [2147483647]=> string(4) "test" [-2147483648]=> float(-0.33333333333333) } Using SORT_STRING array(7) { [2147483647]=> string(4) "test" [5]=> string(4) "Test" [17]=> string(27) "PHP: Hypertext Preprocessor" [0]=> string(3) "PHP" ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } ["test"]=> int(27) [-2147483648]=> float(-0.33333333333333) } -- Testing asort() -- No second argument: array(7) { [-2147483648]=> float(-0.33333333333333) [0]=> string(3) "PHP" [17]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" [2147483647]=> string(4) "test" ["test"]=> int(27) ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } } Using SORT_REGULAR: array(7) { [-2147483648]=> float(-0.33333333333333) [0]=> string(3) "PHP" [17]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" [2147483647]=> string(4) "test" ["test"]=> int(27) ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } } Using SORT_NUMERIC: array(7) { [-2147483648]=> float(-0.33333333333333) [2147483647]=> string(4) "test" [5]=> string(4) "Test" [17]=> string(27) "PHP: Hypertext Preprocessor" [0]=> string(3) "PHP" ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } ["test"]=> int(27) } Using SORT_STRING array(7) { [-2147483648]=> float(-0.33333333333333) ["test"]=> int(27) ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [0]=> string(3) "PHP" [17]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" [2147483647]=> string(4) "test" } -- Testing krsort() -- No second argument: array(7) { [2147483647]=> string(4) "test" [17]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" ["test"]=> int(27) [0]=> string(3) "PHP" [-2147483648]=> float(-0.33333333333333) ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } } Using SORT_REGULAR: array(7) { [2147483647]=> string(4) "test" [17]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" [0]=> string(3) "PHP" ["test"]=> int(27) ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [-2147483648]=> float(-0.33333333333333) } Using SORT_NUMERIC: array(7) { [2147483647]=> string(4) "test" [17]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" ["test"]=> int(27) [0]=> string(3) "PHP" [-2147483648]=> float(-0.33333333333333) ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } } Using SORT_STRING array(7) { ["test"]=> int(27) [5]=> string(4) "Test" [2147483647]=> string(4) "test" [17]=> string(27) "PHP: Hypertext Preprocessor" [0]=> string(3) "PHP" ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [-2147483648]=> float(-0.33333333333333) } -- Testing ksort() -- No second argument: array(7) { ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [-2147483648]=> float(-0.33333333333333) [0]=> string(3) "PHP" ["test"]=> int(27) [5]=> string(4) "Test" [17]=> string(27) "PHP: Hypertext Preprocessor" [2147483647]=> string(4) "test" } Using SORT_REGULAR: array(7) { [-2147483648]=> float(-0.33333333333333) ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } ["test"]=> int(27) [0]=> string(3) "PHP" [5]=> string(4) "Test" [17]=> string(27) "PHP: Hypertext Preprocessor" [2147483647]=> string(4) "test" } Using SORT_NUMERIC: array(7) { ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [-2147483648]=> float(-0.33333333333333) [0]=> string(3) "PHP" ["test"]=> int(27) [5]=> string(4) "Test" [17]=> string(27) "PHP: Hypertext Preprocessor" [2147483647]=> string(4) "test" } Using SORT_STRING array(7) { [-2147483648]=> float(-0.33333333333333) ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [0]=> string(3) "PHP" [17]=> string(27) "PHP: Hypertext Preprocessor" [2147483647]=> string(4) "test" [5]=> string(4) "Test" ["test"]=> int(27) } -- Testing rsort() -- No second argument: array(7) { [0]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [1]=> int(27) [2]=> string(4) "test" [3]=> string(4) "Test" [4]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(3) "PHP" [6]=> float(-0.33333333333333) } Using SORT_REGULAR: array(7) { [0]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [1]=> int(27) [2]=> string(4) "test" [3]=> string(4) "Test" [4]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(3) "PHP" [6]=> float(-0.33333333333333) } Using SORT_NUMERIC: array(7) { [0]=> int(27) [1]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [2]=> string(3) "PHP" [3]=> string(27) "PHP: Hypertext Preprocessor" [4]=> string(4) "Test" [5]=> string(4) "test" [6]=> float(-0.33333333333333) } Using SORT_STRING array(7) { [0]=> string(4) "test" [1]=> string(4) "Test" [2]=> string(27) "PHP: Hypertext Preprocessor" [3]=> string(3) "PHP" [4]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [5]=> int(27) [6]=> float(-0.33333333333333) } -- Testing sort() -- No second argument: array(7) { [0]=> float(-0.33333333333333) [1]=> string(3) "PHP" [2]=> string(27) "PHP: Hypertext Preprocessor" [3]=> string(4) "Test" [4]=> string(4) "test" [5]=> int(27) [6]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } } Using SORT_REGULAR: array(7) { [0]=> float(-0.33333333333333) [1]=> string(3) "PHP" [2]=> string(27) "PHP: Hypertext Preprocessor" [3]=> string(4) "Test" [4]=> string(4) "test" [5]=> int(27) [6]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } } Using SORT_NUMERIC: array(7) { [0]=> float(-0.33333333333333) [1]=> string(4) "test" [2]=> string(4) "Test" [3]=> string(27) "PHP: Hypertext Preprocessor" [4]=> string(3) "PHP" [5]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [6]=> int(27) } Using SORT_STRING array(7) { [0]=> float(-0.33333333333333) [1]=> int(27) [2]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [3]=> string(3) "PHP" [4]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" [6]=> string(4) "test" } ---- ACTUAL OUTPUT -- Testing arsort() -- No second argument: array(7) { ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } ["test"]=> int(27) [-2147483648]=> string(6) "monkey" [5]=> string(4) "Test" [17]=> string(27) "PHP: Hypertext Preprocessor" [0]=> string(3) "PHP" [2147483647]=> float(-0.33333333333333) } Using SORT_REGULAR: array(7) { ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } ["test"]=> int(27) [-2147483648]=> string(6) "monkey" [5]=> string(4) "Test" [17]=> string(27) "PHP: Hypertext Preprocessor" [0]=> string(3) "PHP" [2147483647]=> float(-0.33333333333333) } Using SORT_NUMERIC: array(7) { ["test"]=> int(27) ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [0]=> string(3) "PHP" [17]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" [-2147483648]=> string(6) "monkey" [2147483647]=> float(-0.33333333333333) } Using SORT_STRING array(7) { [-2147483648]=> string(6) "monkey" [5]=> string(4) "Test" [17]=> string(27) "PHP: Hypertext Preprocessor" [0]=> string(3) "PHP" ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } ["test"]=> int(27) [2147483647]=> float(-0.33333333333333) } -- Testing asort() -- No second argument: array(7) { [2147483647]=> float(-0.33333333333333) [0]=> string(3) "PHP" [17]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" [-2147483648]=> string(6) "monkey" ["test"]=> int(27) ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } } Using SORT_REGULAR: array(7) { [2147483647]=> float(-0.33333333333333) [0]=> string(3) "PHP" [17]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" [-2147483648]=> string(6) "monkey" ["test"]=> int(27) ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } } Using SORT_NUMERIC: array(7) { [2147483647]=> float(-0.33333333333333) [-2147483648]=> string(6) "monkey" [5]=> string(4) "Test" [17]=> string(27) "PHP: Hypertext Preprocessor" [0]=> string(3) "PHP" ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } ["test"]=> int(27) } Using SORT_STRING array(7) { [2147483647]=> float(-0.33333333333333) ["test"]=> int(27) ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [0]=> string(3) "PHP" [17]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" [-2147483648]=> string(6) "monkey" } -- Testing krsort() -- No second argument: array(7) { [2147483647]=> float(-0.33333333333333) [17]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" ["test"]=> int(27) [0]=> string(3) "PHP" [-2147483648]=> string(6) "monkey" ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } } Using SORT_REGULAR: array(7) { [2147483647]=> float(-0.33333333333333) [17]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" [0]=> string(3) "PHP" ["test"]=> int(27) ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [-2147483648]=> string(6) "monkey" } Using SORT_NUMERIC: array(7) { [2147483647]=> float(-0.33333333333333) [17]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" ["test"]=> int(27) [0]=> string(3) "PHP" [-2147483648]=> string(6) "monkey" ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } } Using SORT_STRING array(7) { ["test"]=> int(27) [5]=> string(4) "Test" [2147483647]=> float(-0.33333333333333) [17]=> string(27) "PHP: Hypertext Preprocessor" [0]=> string(3) "PHP" ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [-2147483648]=> string(6) "monkey" } -- Testing ksort() -- No second argument: array(7) { ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [-2147483648]=> string(6) "monkey" [0]=> string(3) "PHP" ["test"]=> int(27) [5]=> string(4) "Test" [17]=> string(27) "PHP: Hypertext Preprocessor" [2147483647]=> float(-0.33333333333333) } Using SORT_REGULAR: array(7) { [-2147483648]=> string(6) "monkey" ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } ["test"]=> int(27) [0]=> string(3) "PHP" [5]=> string(4) "Test" [17]=> string(27) "PHP: Hypertext Preprocessor" [2147483647]=> float(-0.33333333333333) } Using SORT_NUMERIC: array(7) { ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [-2147483648]=> string(6) "monkey" [0]=> string(3) "PHP" ["test"]=> int(27) [5]=> string(4) "Test" [17]=> string(27) "PHP: Hypertext Preprocessor" [2147483647]=> float(-0.33333333333333) } Using SORT_STRING array(7) { [-2147483648]=> string(6) "monkey" ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [0]=> string(3) "PHP" [17]=> string(27) "PHP: Hypertext Preprocessor" [2147483647]=> float(-0.33333333333333) [5]=> string(4) "Test" ["test"]=> int(27) } -- Testing rsort() -- No second argument: array(7) { [0]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [1]=> int(27) [2]=> string(6) "monkey" [3]=> string(4) "Test" [4]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(3) "PHP" [6]=> float(-0.33333333333333) } Using SORT_REGULAR: array(7) { [0]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [1]=> int(27) [2]=> string(6) "monkey" [3]=> string(4) "Test" [4]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(3) "PHP" [6]=> float(-0.33333333333333) } Using SORT_NUMERIC: array(7) { [0]=> int(27) [1]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [2]=> string(3) "PHP" [3]=> string(27) "PHP: Hypertext Preprocessor" [4]=> string(4) "Test" [5]=> string(6) "monkey" [6]=> float(-0.33333333333333) } Using SORT_STRING array(7) { [0]=> string(6) "monkey" [1]=> string(4) "Test" [2]=> string(27) "PHP: Hypertext Preprocessor" [3]=> string(3) "PHP" [4]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [5]=> int(27) [6]=> float(-0.33333333333333) } -- Testing sort() -- No second argument: array(7) { [0]=> float(-0.33333333333333) [1]=> string(3) "PHP" [2]=> string(27) "PHP: Hypertext Preprocessor" [3]=> string(4) "Test" [4]=> string(6) "monkey" [5]=> int(27) [6]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } } Using SORT_REGULAR: array(7) { [0]=> float(-0.33333333333333) [1]=> string(3) "PHP" [2]=> string(27) "PHP: Hypertext Preprocessor" [3]=> string(4) "Test" [4]=> string(6) "monkey" [5]=> int(27) [6]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } } Using SORT_NUMERIC: array(7) { [0]=> float(-0.33333333333333) [1]=> string(6) "monkey" [2]=> string(4) "Test" [3]=> string(27) "PHP: Hypertext Preprocessor" [4]=> string(3) "PHP" [5]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [6]=> int(27) } Using SORT_STRING array(7) { [0]=> float(-0.33333333333333) [1]=> int(27) [2]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [3]=> string(3) "PHP" [4]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" [6]=> string(6) "monkey" } ---- FAILED ================================================================================ 013- [2147483647]=> 013+ [-2147483648]=> 014- string(4) "test" 014+ string(6) "monkey" 021- [-2147483648]=> 021+ [2147483647]=> 035- [2147483647]=> 035+ [-2147483648]=> 036- string(4) "test" 036+ string(6) "monkey" 043- [-2147483648]=> 043+ [2147483647]=> 063- [2147483647]=> 063+ [-2147483648]=> 064- string(4) "test" 064+ string(6) "monkey" 065- [-2147483648]=> 065+ [2147483647]=> 070- [2147483647]=> 070+ [-2147483648]=> 071- string(4) "test" 071+ string(6) "monkey" 087- [-2147483648]=> 087+ [2147483647]=> 094- [-2147483648]=> 094+ [2147483647]=> 102- [2147483647]=> 102+ [-2147483648]=> 103- string(4) "test" 103+ string(6) "monkey" 116- [-2147483648]=> 116+ [2147483647]=> 124- [2147483647]=> 124+ [-2147483648]=> 125- string(4) "test" 125+ string(6) "monkey" 138- [-2147483648]=> 138+ [2147483647]=> 140- [2147483647]=> 140+ [-2147483648]=> 141- string(4) "test" 141+ string(6) "monkey" 160- [-2147483648]=> 160+ [2147483647]=> 177- [2147483647]=> 177+ [-2147483648]=> 178- string(4) "test" 178+ string(6) "monkey" 185- string(4) "test" 185+ float(-0.33333333333333) 195- float(-0.33333333333333) 195+ string(6) "monkey" 207- string(4) "test" 207+ float(-0.33333333333333) 224- float(-0.33333333333333) 224+ string(6) "monkey" 229- string(4) "test" 229+ float(-0.33333333333333) 239- float(-0.33333333333333) 239+ string(6) "monkey" 255- string(4) "test" 255+ float(-0.33333333333333) 268- float(-0.33333333333333) 268+ string(6) "monkey" 282- float(-0.33333333333333) 282+ string(6) "monkey" 292- string(4) "test" 292+ float(-0.33333333333333) 297- float(-0.33333333333333) 297+ string(6) "monkey" 314- string(4) "test" 314+ float(-0.33333333333333) 326- float(-0.33333333333333) 326+ string(6) "monkey" 336- string(4) "test" 336+ float(-0.33333333333333) 341- float(-0.33333333333333) 341+ string(6) "monkey" 354- string(4) "test" 354+ float(-0.33333333333333) 374- string(4) "test" 374+ string(6) "monkey" 396- string(4) "test" 396+ string(6) "monkey" 424- string(4) "test" 424+ string(6) "monkey" 431- string(4) "test" 431+ string(6) "monkey" 463- string(4) "test" 463+ string(6) "monkey" 485- string(4) "test" 485+ string(6) "monkey" 501- string(4) "test" 501+ string(6) "monkey" 538- string(4) "test" 538+ string(6) "monkey" ================================================================================ ================================================================================ /usr/home/paj/php4/ext/standard/tests/array/003.phpt ================================================================================ ---- EXPECTED OUTPUT -- Testing uasort() -- array(7) { [-2147483648]=> float(-0.33333333333333) ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } ["test"]=> int(27) [0]=> string(3) "PHP" [17]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" [2147483647]=> string(4) "test" } -- Testing uksort() -- array(7) { ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [-2147483648]=> float(-0.33333333333333) [0]=> string(3) "PHP" [17]=> string(27) "PHP: Hypertext Preprocessor" [2147483647]=> string(4) "test" [5]=> string(4) "Test" ["test"]=> int(27) } -- Testing usort() -- array(7) { [0]=> float(-0.33333333333333) [1]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [2]=> int(27) [3]=> string(3) "PHP" [4]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" [6]=> string(4) "test" } ---- ACTUAL OUTPUT -- Testing uasort() -- array(7) { [2147483647]=> float(-0.33333333333333) ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } ["test"]=> int(27) [0]=> string(3) "PHP" [17]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" [-2147483648]=> string(6) "monkey" } -- Testing uksort() -- array(7) { ["-2147483648"]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [-2147483648]=> string(6) "monkey" [0]=> string(3) "PHP" [17]=> string(27) "PHP: Hypertext Preprocessor" [2147483647]=> float(-0.33333333333333) [5]=> string(4) "Test" ["test"]=> int(27) } -- Testing usort() -- array(7) { [0]=> float(-0.33333333333333) [1]=> array(2) { [0]=> string(6) "banana" [1]=> string(6) "orange" } [2]=> int(27) [3]=> string(3) "PHP" [4]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" [6]=> string(6) "monkey" } ---- FAILED ================================================================================ 003- [-2147483648]=> 003+ [2147483647]=> 020- [2147483647]=> 020+ [-2147483648]=> 021- string(4) "test" 021+ string(6) "monkey" 034- float(-0.33333333333333) 034+ string(6) "monkey" 040- string(4) "test" 040+ float(-0.33333333333333) 067- string(4) "test" 067+ string(6) "monkey" ================================================================================ ================================================================================ /usr/home/paj/php4/ext/standard/tests/image/getimagesize.phpt ================================================================================ ---- EXPECTED OUTPUT array(9) { ["test1pix.bmp"]=> array(5) { [0]=> int(1) [1]=> int(1) [2]=> int(6) [3]=> string(20) "width="1" height="1"" ["mime"]=> string(9) "image/bmp" } ["test1pix.jpc"]=> array(6) { [0]=> int(1) [1]=> int(1) [2]=> int(9) [3]=> string(20) "width="1" height="1"" ["bits"]=> int(3) ["mime"]=> string(10) "image/jpeg" } ["test1pix.jpg"]=> array(7) { [0]=> int(1) [1]=> int(1) [2]=> int(2) [3]=> string(20) "width="1" height="1"" ["bits"]=> int(8) ["channels"]=> int(3) ["mime"]=> string(10) "image/jpeg" } ["test2pix.gif"]=> array(7) { [0]=> int(2) [1]=> int(1) [2]=> int(1) [3]=> string(20) "width="2" height="1"" ["bits"]=> int(1) ["channels"]=> int(3) ["mime"]=> string(9) "image/gif" } ["test4pix.gif"]=> array(7) { [0]=> int(4) [1]=> int(1) [2]=> int(1) [3]=> string(20) "width="4" height="1"" ["bits"]=> int(2) ["channels"]=> int(3) ["mime"]=> string(9) "image/gif" } ["test4pix.iff"]=> array(6) { [0]=> int(4) [1]=> int(1) [2]=> int(14) [3]=> string(20) "width="4" height="1"" ["bits"]=> int(4) ["mime"]=> string(9) "image/iff" } ["test4pix.png"]=> array(5) { [0]=> int(4) [1]=> int(1) [2]=> int(3) [3]=> string(20) "width="4" height="1"" ["mime"]=> string(9) "image/png" } ["test4pix.psd"]=> array(5) { [0]=> int(4) [1]=> int(1) [2]=> int(5) [3]=> string(20) "width="4" height="1"" ["mime"]=> string(9) "image/psd" } ["test4pix.tif"]=> array(5) { [0]=> int(4) [1]=> int(1) [2]=> int(7) [3]=> string(20) "width="4" height="1"" ["mime"]=> string(10) "image/tiff" } } ---- ACTUAL OUTPUT array(9) { ["test1pix.bmp"]=> array(5) { [0]=> int(16777216) [1]=> int(16777216) [2]=> int(6) [3]=> string(34) "width="16777216" height="16777216"" ["mime"]=> string(9) "image/bmp" } ["test1pix.jpc"]=> array(6) { [0]=> int(1) [1]=> int(1) [2]=> int(9) [3]=> string(20) "width="1" height="1"" ["bits"]=> int(3) ["mime"]=> string(10) "image/jpeg" } ["test1pix.jpg"]=> array(7) { [0]=> int(1) [1]=> int(1) [2]=> int(2) [3]=> string(20) "width="1" height="1"" ["bits"]=> int(8) ["channels"]=> int(3) ["mime"]=> string(10) "image/jpeg" } ["test2pix.gif"]=> array(7) { [0]=> int(2) [1]=> int(1) [2]=> int(1) [3]=> string(20) "width="2" height="1"" ["bits"]=> int(1) ["channels"]=> int(3) ["mime"]=> string(9) "image/gif" } ["test4pix.gif"]=> array(7) { [0]=> int(4) [1]=> int(1) [2]=> int(1) [3]=> string(20) "width="4" height="1"" ["bits"]=> int(2) ["channels"]=> int(3) ["mime"]=> string(9) "image/gif" } ["test4pix.iff"]=> array(6) { [0]=> int(4) [1]=> int(1) [2]=> int(14) [3]=> string(20) "width="4" height="1"" ["bits"]=> int(4) ["mime"]=> string(9) "image/iff" } ["test4pix.png"]=> array(5) { [0]=> int(4) [1]=> int(1) [2]=> int(3) [3]=> string(20) "width="4" height="1"" ["mime"]=> string(9) "image/png" } ["test4pix.psd"]=> array(5) { [0]=> int(4) [1]=> int(1) [2]=> int(5) [3]=> string(20) "width="4" height="1"" ["mime"]=> string(9) "image/psd" } ["test4pix.tif"]=> array(5) { [0]=> int(4) [1]=> int(1) [2]=> int(7) [3]=> string(20) "width="4" height="1"" ["mime"]=> string(10) "image/tiff" } } ---- FAILED ================================================================================ 005- int(1) 005+ int(16777216) 007- int(1) 007+ int(16777216) 011- string(20) "width="1" height="1"" 011+ string(34) "width="16777216" height="16777216"" ================================================================================ ================================================================================ PHPINFO ================================================================================ phpinfo() PHP Version => 4.3.0-dev System => SunOS loudy 5.9 Generic sun4u Build Date => Nov 7 2002 02:27:19 Configure Command => './configure' '--disable-all' '--disable-cgi' '--enable-debug' '--with-pcre-regex' Server API => Command Line Interface Virtual Directory Support => disabled Configuration File (php.ini) Path => /usr/local/lib PHP API => 20020307 PHP Extension => 20020429 Zend Extension => 20021010 Debug Build => yes Thread Safety => disabled Registered PHP Streams => php, http, ftp This program makes use of the Zend Scripting Language Engine: Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies _______________________________________________________________________ Configuration PHP Core Directive => Local Value => Master Value allow_call_time_pass_reference => On => On allow_url_fopen => On => On always_populate_raw_post_data => Off => Off arg_separator.input => &amp; => &amp; arg_separator.output => &amp; => &amp; asp_tags => Off => Off auto_append_file => no value => no value auto_prepend_file => no value => no value browscap => no value => no value default_charset => no value => no value default_mimetype => text/html => text/html define_syslog_variables => Off => Off disable_functions => no value => no value display_errors => On => On display_startup_errors => Off => Off doc_root => no value => no value docref_ext => no value => no value docref_root => http://www.php.net/ => http://www.php.net/ enable_dl => On => On error_append_string => no value => no value error_log => no value => no value error_prepend_string => no value => no value error_reporting => no value => no value expose_php => On => On extension_dir => /usr/local/lib/php/extensions/debug-non-zts-20020429 => /usr/local/lib/php/extensions/debug-non-zts-20020429 file_uploads => On => On gpc_order => GPC => GPC highlight.bg => #FFFFFF => #FFFFFF highlight.comment => #FF8000 => #FF8000 highlight.default => #0000BB => #0000BB highlight.html => #000000 => #000000 highlight.keyword => #007700 => #007700 highlight.string => #DD0000 => #DD0000 html_errors => Off => On ignore_repeated_errors => Off => Off ignore_repeated_source => Off => Off ignore_user_abort => Off => Off implicit_flush => On => Off include_path => .:/usr/local/lib/php => .:/usr/local/lib/php log_errors => Off => Off log_errors_max_len => 1024 => 1024 magic_quotes_gpc => On => On magic_quotes_runtime => Off => Off magic_quotes_sybase => Off => Off max_execution_time => 0 => 30 max_input_time => 0 => 0 open_basedir => no value => no value output_buffering => 0 => 0 output_handler => no value => no value post_max_size => 8M => 8M precision => 14 => 14 register_argc_argv => On => On register_globals => Off => Off report_memleaks => On => On safe_mode => Off => Off safe_mode_exec_dir => 1 => 1 safe_mode_gid => Off => Off safe_mode_include_dir => no value => no value sendmail_from => no value => no value sendmail_path => -t -i => -t -i short_open_tag => On => On SMTP => localhost => localhost smtp_port => 25 => 25 sql.safe_mode => Off => Off track_errors => Off => Off unserialize_callback_func => no value => no value upload_max_filesize => 2M => 2M upload_tmp_dir => no value => no value user_dir => no value => no value variables_order => no value => no value xmlrpc_error_number => 0 => 0 xmlrpc_errors => Off => Off y2k_compliance => On => On standard Regex Library => Bundled library enabled Dynamic Library Support => enabled Directive => Local Value => Master Value assert.active => 1 => 1 assert.bail => 0 => 0 assert.callback => no value => no value assert.quiet_eval => 0 => 0 assert.warning => 1 => 1 auto_detect_line_endings => 0 => 0 default_socket_timeout => 60 => 60 safe_mode_allowed_env_vars => PHP_ => PHP_ safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH url_rewriter.tags => a=href,area=href,frame=src,form=,fieldset= => a=href,area=href,frame=src,form=,fieldset= user_agent => no value => no value pcre PCRE (Perl Compatible Regular Expressions) Support => enabled PCRE Library Version => 3.92 11-Sep-2002 Additional Modules Module Name Environment Variable => Value CC => gcc CONTENT_LENGTH => CONTENT_TYPE => HOME => /usr/home/paj HOSTNAME => loudy HOSTTYPE => sparc LD_LIBRARY_PATH => /usr/local/lib/sparcv9:/usr/local/lib LOGNAME => paj MACHTYPE => sparc-sun-solaris2.9 MAKEFLAGS => MAKELEVEL => 1 MFLAGS => OSTYPE => solaris2.9 PATH => /usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/gnome/bin:/usr/ucb/bin:/usr/ccs/bin:/usr/home/paj PATH_TRANSLATED => /usr/home/paj/php4/tests/strings/004.php PWD => /usr/home/paj/php4 QUERY_STRING => REDIRECT_STATUS => 1 REQUEST_METHOD => GET SCRIPT_FILENAME => /usr/home/paj/php4/tests/strings/004.php SHELL => /bin/bash SHLVL => 2 SSH_TTY => /dev/pts/2 TERM => xterm TEST_PHP_EXECUTABLE => /usr/home/paj/php4/sapi/cli/php TEST_PHP_SRCDIR => /usr/home/paj/php4 TZ => Europe/Paris USER => paj _ => /usr/home/paj/php4/sapi/cli/php PHP Variables Variable => Value _SERVER["CC"] => gcc _SERVER["CONTENT_LENGTH"] => _SERVER["CONTENT_TYPE"] => _SERVER["HOME"] => /usr/home/paj _SERVER["HOSTNAME"] => loudy _SERVER["HOSTTYPE"] => sparc _SERVER["LD_LIBRARY_PATH"] => /usr/local/lib/sparcv9:/usr/local/lib _SERVER["LOGNAME"] => paj _SERVER["MACHTYPE"] => sparc-sun-solaris2.9 _SERVER["MAKEFLAGS"] => _SERVER["MAKELEVEL"] => 1 _SERVER["MFLAGS"] => _SERVER["OSTYPE"] => solaris2.9 _SERVER["PATH"] => /usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/gnome/bin:/usr/ucb/bin:/usr/ccs/bin:/usr/home/paj _SERVER["PATH_TRANSLATED"] => _SERVER["PWD"] => /usr/home/paj/php4 _SERVER["QUERY_STRING"] => _SERVER["REDIRECT_STATUS"] => 1 _SERVER["REQUEST_METHOD"] => GET _SERVER["SCRIPT_FILENAME"] => _SERVER["SHELL"] => /bin/bash _SERVER["SHLVL"] => 2 _SERVER["SSH_TTY"] => /dev/pts/2 _SERVER["TERM"] => xterm _SERVER["TEST_PHP_EXECUTABLE"] => /usr/home/paj/php4/sapi/cli/php _SERVER["TEST_PHP_SRCDIR"] => /usr/home/paj/php4 _SERVER["TZ"] => Europe/Paris _SERVER["USER"] => paj _SERVER["_"] => /usr/home/paj/php4/sapi/cli/php _SERVER["PHP_SELF"] => _SERVER["SCRIPT_NAME"] => _SERVER["DOCUMENT_ROOT"] => _SERVER["argv"] => Array ( ) _SERVER["argc"] => 0 _ENV["CC"] => gcc _ENV["CONTENT_LENGTH"] => _ENV["CONTENT_TYPE"] => _ENV["HOME"] => /usr/home/paj _ENV["HOSTNAME"] => loudy _ENV["HOSTTYPE"] => sparc _ENV["LD_LIBRARY_PATH"] => /usr/local/lib/sparcv9:/usr/local/lib _ENV["LOGNAME"] => paj _ENV["MACHTYPE"] => sparc-sun-solaris2.9 _ENV["MAKEFLAGS"] => _ENV["MAKELEVEL"] => 1 _ENV["MFLAGS"] => _ENV["OSTYPE"] => solaris2.9 _ENV["PATH"] => /usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/gnome/bin:/usr/ucb/bin:/usr/ccs/bin:/usr/home/paj _ENV["PATH_TRANSLATED"] => /usr/home/paj/php4/tests/strings/004.php _ENV["PWD"] => /usr/home/paj/php4 _ENV["QUERY_STRING"] => _ENV["REDIRECT_STATUS"] => 1 _ENV["REQUEST_METHOD"] => GET _ENV["SCRIPT_FILENAME"] => /usr/home/paj/php4/tests/strings/004.php _ENV["SHELL"] => /bin/bash _ENV["SHLVL"] => 2 _ENV["SSH_TTY"] => /dev/pts/2 _ENV["TERM"] => xterm _ENV["TEST_PHP_EXECUTABLE"] => /usr/home/paj/php4/sapi/cli/php _ENV["TEST_PHP_SRCDIR"] => /usr/home/paj/php4 _ENV["TZ"] => Europe/Paris _ENV["USER"] => paj _ENV["_"] => /usr/home/paj/php4/sapi/cli/php PHP License This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.

« previous php.qa (#6635) next »