Test results
| From: | noreply@php.net | Date: | Sun, 27 Oct 2002 23:39:29 +0000 |
| Subject: | Test results | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-6413@lists.php.net to get a copy of this message | ||
Automake:
automake (GNU automake) 1.6.1
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.52
Written by David J. MacKenzie.
Copyright 1992, 1993, 1994, 1996, 1999, 2000, 2001
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:
Bison:
GNU Bison version 1.28
Compiler:
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1161, based on gcc version 3.1 20020420 (prerelease)
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Test array_merge and array_walk [/privateext/standard/tests/array/001.phpt]
Test arsort, asort, krsort, ksort, rsort, and sort [/privateext/standard/tests/array/002.phpt]
Test usort, uksort and uasort [/privateext/standard/tests/array/003.phpt]
File type functions [/privateext/standard/tests/file/001.phpt]
Testing randomization of shuffle() and str_shuffle(). [/privateext/standard/tests/strings/004.phpt]
Locale settings affecting float parsing [/privatetests/lang/034.phpt]
=====================================================================
================================================================================
/private/var/root/php-4.3.0pre2/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"
020+ string(6) "monkey"
074+ string(6) "monkey"
================================================================================
================================================================================
/private/var/root/php-4.3.0pre2/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
================================================================================
014- string(4) "test"
014+ string(6) "monkey"
036- string(4) "test"
036+ string(6) "monkey"
064- string(4) "test"
064+ string(6) "monkey"
071- string(4) "test"
071+ string(6) "monkey"
103- string(4) "test"
103+ string(6) "monkey"
125- string(4) "test"
125+ string(6) "monkey"
141- string(4) "test"
141+ string(6) "monkey"
178- string(4) "test"
178+ string(6) "monkey"
185- string(4) "test"
195+ string(6) "monkey"
207- string(4) "test"
224+ string(6) "monkey"
229- string(4) "test"
239+ string(6) "monkey"
255- string(4) "test"
268+ string(6) "monkey"
282+ string(6) "monkey"
292- string(4) "test"
297+ string(6) "monkey"
314- string(4) "test"
326+ string(6) "monkey"
336- string(4) "test"
341+ string(6) "monkey"
354- string(4) "test"
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"
================================================================================
================================================================================
/private/var/root/php-4.3.0pre2/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
================================================================================
021- string(4) "test"
021+ string(6) "monkey"
034+ string(6) "monkey"
040- string(4) "test"
067- string(4) "test"
067+ string(6) "monkey"
================================================================================
================================================================================
/private/var/root/php-4.3.0pre2/ext/standard/tests/file/001.phpt
================================================================================
---- EXPECTED OUTPUT
test.file does not exist
test.file exists
test.link exists
test.file is not a symlink
test.link is a symlink
test.file exists
test.link lstat and stat differ at element 1
test.link lstat and stat differ at element 2
test.link lstat and stat differ at element 7
test.link lstat and stat differ at element 8
test.link lstat and stat differ at element 9
test.link lstat and stat differ at element 10
test.file is file
test.link is link
test.file permissions are 0744
test.file size is 0
test.file is writeable
test.file is readable
test.file is executable
test.file is a regular file
test.link is a regular file
test.link is not a directory
../file is a directory
test.file is not a directory
test.file does not exist
test.file does not exist
---- ACTUAL OUTPUT
test.file does not exist
test.file exists
test.link exists
test.file is not a symlink
test.link is a symlink
test.file exists
test.link lstat and stat differ at element 1
test.link lstat and stat differ at element 2
test.link lstat and stat differ at element 4
test.link lstat and stat differ at element 7
test.link lstat and stat differ at element 8
test.link lstat and stat differ at element 9
test.file is file
test.link is link
test.file permissions are 0744
test.file size is 0
test.file is writeable
test.file is readable
test.file is executable
test.file is a regular file
test.link is a regular file
test.link is not a directory
../file is a directory
test.file is not a directory
test.file does not exist
test.file does not exist
---- FAILED
================================================================================
009+ test.link lstat and stat differ at element 4
012- test.link lstat and stat differ at element 10
================================================================================
================================================================================
/private/var/root/php-4.3.0pre2/ext/standard/tests/strings/004.phpt
================================================================================
---- EXPECTED OUTPUT
shuffle
1234: 3%d: 0.04%d
1243: 3%d: 0.04%d
1324: 3%d: 0.04%d
1342: 3%d: 0.04%d
1423: 3%d: 0.04%d
1432: 3%d: 0.04%d
2134: 3%d: 0.04%d
2143: 3%d: 0.04%d
2314: 3%d: 0.04%d
2341: 3%d: 0.04%d
2413: 3%d: 0.04%d
2431: 3%d: 0.04%d
3124: 3%d: 0.04%d
3142: 3%d: 0.04%d
3214: 3%d: 0.04%d
3241: 3%d: 0.04%d
3412: 3%d: 0.04%d
3421: 3%d: 0.04%d
4123: 3%d: 0.04%d
4132: 3%d: 0.04%d
4213: 3%d: 0.04%d
4231: 3%d: 0.04%d
4312: 3%d: 0.04%d
4321: 3%d: 0.04%d
str_shuffle
1234: 3%d: 0.04%d
1243: 3%d: 0.04%d
1324: 3%d: 0.04%d
1342: 3%d: 0.04%d
1423: 3%d: 0.04%d
1432: 3%d: 0.04%d
2134: 3%d: 0.04%d
2143: 3%d: 0.04%d
2314: 3%d: 0.04%d
2341: 3%d: 0.04%d
2413: 3%d: 0.04%d
2431: 3%d: 0.04%d
3124: 3%d: 0.04%d
3142: 3%d: 0.04%d
3214: 3%d: 0.04%d
3241: 3%d: 0.04%d
3412: 3%d: 0.04%d
3421: 3%d: 0.04%d
4123: 3%d: 0.04%d
4132: 3%d: 0.04%d
4213: 3%d: 0.04%d
4231: 3%d: 0.04%d
4312: 3%d: 0.04%d
4321: 3%d: 0.04%d
---- ACTUAL OUTPUT
shuffle
1234: 3711: 0.041
1243: 3736: 0.042
1324: 3804: 0.042
1342: 3754: 0.042
1423: 3712: 0.041
1432: 3833: 0.043
2134: 3512: 0.039
2143: 3792: 0.042
2314: 3754: 0.042
2341: 3682: 0.041
2413: 3792: 0.042
2431: 3705: 0.041
3124: 3737: 0.042
3142: 3857: 0.043
3214: 3752: 0.042
3241: 3768: 0.042
3412: 3767: 0.042
3421: 3772: 0.042
4123: 3770: 0.042
4132: 3812: 0.042
4213: 3787: 0.042
4231: 3709: 0.041
4312: 3789: 0.042
4321: 3693: 0.041
str_shuffle
1234: 3696: 0.041
1243: 3780: 0.042
1324: 3871: 0.043
1342: 3825: 0.043
1423: 3790: 0.042
1432: 3821: 0.042
2134: 3706: 0.041
2143: 3768: 0.042
2314: 3770: 0.042
2341: 3790: 0.042
2413: 3710: 0.041
2431: 3586: 0.040
3124: 3741: 0.042
3142: 3711: 0.041
3214: 3716: 0.041
3241: 3792: 0.042
3412: 3758: 0.042
3421: 3673: 0.041
4123: 3760: 0.042
4132: 3811: 0.042
4213: 3765: 0.042
4231: 3687: 0.041
4312: 3702: 0.041
4321: 3771: 0.042
---- FAILED
================================================================================
002- 1234: 3%d: 0.04%d
002+ 1234: 3711: 0.041
003- 1243: 3%d: 0.04%d
003+ 1243: 3736: 0.042
004- 1324: 3%d: 0.04%d
004+ 1324: 3804: 0.042
005- 1342: 3%d: 0.04%d
005+ 1342: 3754: 0.042
006- 1423: 3%d: 0.04%d
006+ 1423: 3712: 0.041
007- 1432: 3%d: 0.04%d
007+ 1432: 3833: 0.043
008- 2134: 3%d: 0.04%d
008+ 2134: 3512: 0.039
009- 2143: 3%d: 0.04%d
009+ 2143: 3792: 0.042
010- 2314: 3%d: 0.04%d
010+ 2314: 3754: 0.042
011- 2341: 3%d: 0.04%d
011+ 2341: 3682: 0.041
012- 2413: 3%d: 0.04%d
012+ 2413: 3792: 0.042
013- 2431: 3%d: 0.04%d
013+ 2431: 3705: 0.041
014- 3124: 3%d: 0.04%d
014+ 3124: 3737: 0.042
015- 3142: 3%d: 0.04%d
015+ 3142: 3857: 0.043
016- 3214: 3%d: 0.04%d
016+ 3214: 3752: 0.042
017- 3241: 3%d: 0.04%d
017+ 3241: 3768: 0.042
018- 3412: 3%d: 0.04%d
018+ 3412: 3767: 0.042
019- 3421: 3%d: 0.04%d
019+ 3421: 3772: 0.042
020- 4123: 3%d: 0.04%d
020+ 4123: 3770: 0.042
021- 4132: 3%d: 0.04%d
021+ 4132: 3812: 0.042
022- 4213: 3%d: 0.04%d
022+ 4213: 3787: 0.042
023- 4231: 3%d: 0.04%d
023+ 4231: 3709: 0.041
024- 4312: 3%d: 0.04%d
024+ 4312: 3789: 0.042
025- 4321: 3%d: 0.04%d
025+ 4321: 3693: 0.041
027- 1234: 3%d: 0.04%d
027+ 1234: 3696: 0.041
028- 1243: 3%d: 0.04%d
028+ 1243: 3780: 0.042
029- 1324: 3%d: 0.04%d
029+ 1324: 3871: 0.043
030- 1342: 3%d: 0.04%d
030+ 1342: 3825: 0.043
031- 1423: 3%d: 0.04%d
031+ 1423: 3790: 0.042
032- 1432: 3%d: 0.04%d
032+ 1432: 3821: 0.042
033- 2134: 3%d: 0.04%d
033+ 2134: 3706: 0.041
034- 2143: 3%d: 0.04%d
034+ 2143: 3768: 0.042
035- 2314: 3%d: 0.04%d
035+ 2314: 3770: 0.042
036- 2341: 3%d: 0.04%d
036+ 2341: 3790: 0.042
037- 2413: 3%d: 0.04%d
037+ 2413: 3710: 0.041
038- 2431: 3%d: 0.04%d
038+ 2431: 3586: 0.040
039- 3124: 3%d: 0.04%d
039+ 3124: 3741: 0.042
040- 3142: 3%d: 0.04%d
040+ 3142: 3711: 0.041
041- 3214: 3%d: 0.04%d
041+ 3214: 3716: 0.041
042- 3241: 3%d: 0.04%d
042+ 3241: 3792: 0.042
043- 3412: 3%d: 0.04%d
043+ 3412: 3758: 0.042
044- 3421: 3%d: 0.04%d
044+ 3421: 3673: 0.041
045- 4123: 3%d: 0.04%d
045+ 4123: 3760: 0.042
046- 4132: 3%d: 0.04%d
046+ 4132: 3811: 0.042
047- 4213: 3%d: 0.04%d
047+ 4213: 3765: 0.042
048- 4231: 3%d: 0.04%d
048+ 4231: 3687: 0.041
049- 4312: 3%d: 0.04%d
049+ 4312: 3702: 0.041
050- 4321: 3%d: 0.04%d
050+ 4321: 3771: 0.042
================================================================================
================================================================================
/private/var/root/php-4.3.0pre2/tests/lang/034.phpt
================================================================================
---- EXPECTED OUTPUT
3,14
---- ACTUAL OUTPUT
3.14
---- FAILED
================================================================================
001- 3,14
001+ 3.14
================================================================================
================================================================================
PHPINFO
================================================================================
phpinfo()
PHP Version => 4.3.0-pre2
System => Darwin q2132w3e44rf.local. 6.1 Darwin Kernel Version 6.1: Fri Sep 6 23:24:34 PDT 2002;
root:xnu/xnu-344.2.obj~2/RELEASE_PPC Power Macintosh
Build Date => Oct 27 2002 19:17:38
Configure Command => './configure' '--with-apxs' '--without-mysql'
'--without-pear'
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 => no
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 => & => &
arg_separator.output => & => &
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/no-debug-non-zts-20020429 =>
/usr/local/lib/php/extensions/no-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 => .: => .:
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 => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -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
xml
XML Support => active
XML Namespace Support => active
EXPAT Version => 1.95.2
tokenizer
Tokenizer Support => enabled
standard
Regex Library => Bundled library enabled
Dynamic Library Support => enabled
Path to sendmail => /usr/sbin/sendmail -t -i
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
session
Session Support => enabled
Registered save handlers => files user
Directive => Local Value => Master Value
session.auto_start => Off => Off
session.bug_compat_42 => On => On
session.bug_compat_warn => On => On
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => no value => no value
session.entropy_length => 0 => 0
session.gc_dividend => 100 => 100
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => /tmp => /tmp
session.serialize_handler => php => php
session.use_cookies => On => On
session.use_only_cookies => Off => Off
session.use_trans_sid => Off => Off
posix
Revision => $Revision: 1.51 $
pcre
PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 3.92 11-Sep-2002
overload
User-Space Object Overloading Support => enabled
mbstring
Multibyte Support => enabled
Japanese support => enabled
Multibyte (japanese) regex support => enabled
Directive => Local Value => Master Value
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off
mbstring.func_overload => 0 => 0
mbstring.http_input => no value => no value
mbstring.http_output => no value => no value
mbstring.internal_encoding => no value => no value
mbstring.language => no value => no value
mbstring.substitute_character => no value => no value
ctype
ctype functions => enabled
Additional Modules
Module Name
Environment
Variable => Value
PWD => /var/root/php-4.3.0pre2
MAKEFLAGS => VENDOR => apple
MFLAGS => REDIRECT_STATUS => 1
TEST_PHP_EXECUTABLE => /var/root/php-4.3.0pre2/sapi/cli/php
CC => gcc
USER => root
MACHTYPE => powerpc
SCRIPT_FILENAME => /private/var/root/php-4.3.0pre2/t