Bug #18297 Updated: Unable to link correctly a stable PHP kernel

From: Date: Tue, 16 Jul 2002 00:36:40 +0000
Subject: Bug #18297 Updated: Unable to link correctly a stable PHP kernel
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14257@lists.php.net to get a copy of this message
ID: 18297 Updated by: sniper@php.net Reported By: fturi@chez.com -Status: Open +Status: Closed Bug Type: Compile Failure Operating System: AIX 4.3.3 PHP Version: 4.2.1 New Comment: This report has got so long that it's getting really hard to find any important/usable data in it. The compile problems don't exist in the snapshots, so I'm closing this now. (the 'make install' problem does exist, but there are reports about that one already) Please submit a new bug report about this pow() crash, and provide a gdb backtrace of the crash. Instructions how to get one can be found here: http://bugs.php.net/bugs-generating-backtrace.php Please don't add anymore comments to this report. Thank you. (and don't forget to the example script which causes the crash!!) Previous Comments: ------------------------------------------------------------------------ [2002-07-15 11:17:00] fturi@chez.com The alpha release 4.3.0 is much more stable (no core dump so far). It's promissing :-). Due to LDAP conflicting library resolution problem I had to change the compilation and environment to: () GNU@sigp3:/u08/open_data/build>cat ~GNU/login_ucla.sh date #export LIBPATH=/usr/lib:/usr/local/lib:/opt/freeware/lib #export LIBRARY_PATH=$LIBPATH #export LDFLAGS="-L/usr/lib -L/usr/local/lib -L/opt/freeware/lib" export LIBPATH=/usr/lib:/opt/freeware/lib:/usr/local/lib export LIBRARY_PATH=$LIBPATH export LDFLAGS="-L/usr/lib -L/opt/freeware/lib -L/usr/local/lib" # export CFLAGS="-I/usr/local/include -I/opt/freeware/include" export CPPFLAGS=$CFLAGS export C_INCLUDE_PATH=/usr/local/include:/opt/freeware/include # export LANG=C export LC_CTYPE=en_US export CC=cc #export GCC_EXEC_PREFIX= export LOCPATH=/usr/lib/nls/loc export PATH=/usr/local/bin:/opt/freeware/bin:/usr/bin:$PATH export MANPATH=$MANPATH:/opt/freeware/man:/usr/local/man and using : configure --with-config-file-path=/usr/local/apache/conf \ --with-prefix=/usr/local \ --with-apxs=/usr/local/apache/bin/apxs --enable-static \ --with-ldap=/opt/freeware \ --with-oci8 \ --with-mhash=/usr/local/mhash \ --enable-debug ( I have openldap 2.0.23 under /usr/local/lib and openldap 2.0.21 under /opt/freeware/lib) Thanks a lot for the great job you are doing. Please find bellow the full trace of errors during test procedure. () GNU@sigp3:/u08/open_data/build/php4-200207150000>find . ! -name "config.log" -name "*.log" -exec ls -lrt {} \; -exec echo {} \> -rw-r----- 1 GNU ftbegcp 533 Jul 15 13:17 ./ext/ctype/tests/002.log ./ext/ctype/tests/002.log -rw-r----- 1 GNU ftbegcp 229 Jul 15 13:17 ./ext/mbstring/tests/009.log ./ext/mbstring/tests/009.log -rw-r----- 1 GNU ftbegcp 445 Jul 15 13:18 ./ext/mbstring/tests/019.log ./ext/mbstring/tests/019.log -rw-r----- 1 GNU ftbegcp 504 Jul 15 13:18 ./ext/standard/tests/math/floorceil.log ./ext/standard/tests/math/floorceil.log -rw-r----- 1 GNU ftbegcp 2603 Jul 15 13:18 ./ext/standard/tests/array/001.log ./ext/standard/tests/array/001.log -rw-r----- 1 GNU ftbegcp 16271 Jul 15 13:18 ./ext/standard/tests/array/002.log ./ext/standard/tests/array/002.log -rw-r----- 1 GNU ftbegcp 2004 Jul 15 13:18 ./ext/standard/tests/array/003.log ./ext/standard/tests/array/003.log -rw-r----- 1 GNU ftbegcp 1299 Jul 15 13:18 ./ext/standard/tests/array/004.log ./ext/standard/tests/array/004.log -rw-r----- 1 GNU ftbegcp 1173 Jul 15 13:19 ./ext/standard/tests/time/002.log ./ext/standard/tests/time/002.log -rw-r----- 1 GNU ftbegcp 545 Jul 15 13:19 ./ext/standard/tests/time/003.log ./ext/standard/tests/time/003.log -rw-r----- 1 GNU ftbegcp 699 Jul 15 13:19 ./pear/Console/tests/001-getopt.log ./pear/Console/tests/001-getopt.log -rw-r----- 1 GNU ftbegcp 2584 Jul 15 13:19 ./pear/tests/pear_config.log ./pear/tests/pear_config.log -rw-r----- 1 GNU ftbegcp 3771 Jul 15 13:19 ./pear/tests/pear_error.log ./pear/tests/pear_error.log -rw-r----- 1 GNU ftbegcp 895 Jul 15 13:19 ./pear/tests/pear_system.log ./pear/tests/pear_system.log -rw-r----- 1 GNU ftbegcp 159 Jul 15 13:19 ./tests/basic/011.log ./tests/basic/011.log -rw-r----- 1 GNU ftbegcp 63 Jul 15 13:19 ./tests/func/006.log ./tests/func/006.log -rw-r----- 1 GNU ftbegcp 9560 Jul 15 13:20 ./tests/lang/023.log ./tests/lang/023.log -rw-r----- 1 GNU ftbegcp 390359 Jul 15 13:20 ./tests/lang/024.log ./tests/lang/024.log -rw-r----- 1 GNU ftbegcp 195 Jul 15 13:20 ./tests/lang/029.log ./tests/lang/029.log -rw-r----- 1 GNU ftbegcp 853 Jul 15 13:20 ./tests/lang/031.log ./tests/lang/031.log () GNU@sigp3:/u08/open_data/build/php4-200207150000>4.log" -name "*.log" -exec ls -lrt {} \; -exec cat {} \; < -rw-r----- 1 GNU ftbegcp 533 Jul 15 13:17 ./ext/ctype/tests/002.log ---- EXPECTED OUTPUT LOCALE is 'C' ctype_lower 26 26 0 ctype_upper 26 26 0 ctype_alpha 52 52 0 ctype_digit 10 10 0 ctype_alnum 62 62 0 ctype_cntrl 33 33 0 ctype_graph 94 94 94 ctype_print 95 95 95 ctype_punct 32 32 0 ctype_space 6 6 0 ctype_xdigit 22 22 0 ---- ACTUAL OUTPUT LOCALE is 'C C C C C C' ctype_lower 26 26 0 ctype_upper 26 26 0 ctype_alpha 52 52 0 ctype_digit 10 10 0 ctype_alnum 62 62 0 ctype_cntrl 33 33 0 ctype_graph 94 94 94 ctype_print 95 95 95 ctype_punct 32 32 0 ctype_space 6 6 0 ctype_xdigit 22 22 0 ---- FAILED -rw-r----- 1 GNU ftbegcp 229 Jul 15 13:17 ./ext/mbstring/tests/009.log ---- EXPECTED OUTPUT == ASCII == 40 40 == EUC-JP == 43 43 == SJIS == 43 43 == JIS == 43 43 == UTF-8 == 43 43 == WRONG PARAMETERS == ERR: Notice ERR: Notice ERR: Warning ---- ACTUAL OUTPUT ERR: Notice ERR: Warning ---- FAILED -rw-r----- 1 GNU ftbegcp 445 Jul 15 13:18 ./ext/mbstring/tests/019.log ---- EXPECTED OUTPUT == ASCII == ERR: Warning 40 == EUC-JP == ERR: Warning 72 == SJIS == ERR: Warning 72 == JIS == ERR: Warning 121 == UTF-8 == ERR: Warning 174 == WRONG PARAMETERS == ERR: Notice 5 ERR: Notice 6 ERR: Warning ---- ACTUAL OUTPUT 40 == EUC-JP == ERR: Warning 72 == SJIS == ERR: Warning 72 == JIS == ERR: Warning 121 == UTF-8 == ERR: Warning 174 == WRONG PARAMETERS == ERR: Notice 5 ERR: Notice 6 ERR: Warning ---- FAILED -rw-r----- 1 GNU ftbegcp 504 Jul 15 13:18 ./ext/standard/tests/math/floorceil.log ---- EXPECTED OUTPUT float(0) float(-0) float(-1) float(-1) float(-1) float(-2) float(0) float(1) float(1) float(2) float(2) float(3) float(0) float(-1) float(-1) float(-2) float(-2) float(-3) float(0) float(0) float(1) float(1) float(1) float(2) ---- ACTUAL OUTPUT float(0) float(0) float(-1) float(-1) float(-1) float(-2) float(0) float(1) float(1) float(2) float(2) float(3) float(0) float(-1) float(-1) float(-2) float(-2) float(-3) float(0) float(0) float(1) float(1) float(1) float(2) ---- FAILED -rw-r----- 1 GNU ftbegcp 2603 Jul 15 13:18 ./ext/standard/tests/array/001.log ---- 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(-.333333333333) ["-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(-.333333333333) 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 -rw-r----- 1 GNU ftbegcp 16271 Jul 15 13:18 ./ext/standard/tests/array/002.log ---- 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(-.333333333333) } 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(-.333333333333) } 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(-.333333333333) } 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(-.333333333333) } -- Testing asort() -- No second argument: array(7) { [2147483647]=> float(-.333333333333) [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(-.333333333333) [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(-.333333333333) [-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(-.333333333333) ["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(-.333333333333) [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(-.333333333333) [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(-.333333333333) [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(-.333333333333) [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(-.333333333333) } 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(-.333333333333) } 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(-.333333333333) } 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(-.333333333333) [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(-.333333333333) } 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(-.333333333333) } 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(-.333333333333) } 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(-.333333333333) } -- Testing sort() -- No second argument: array(7) { [0]=> float(-.333333333333) [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(-.333333333333) [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(-.333333333333) [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(-.333333333333) [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 -rw-r----- 1 GNU ftbegcp 2004 Jul 15 13:18 ./ext/standard/tests/array/003.log ---- EXPECTED OUTPUT -- Testing uasort() -- array(7) { [-2147483648]=> float(-0.33333333333333) ["-2147483648"]=> array(2) { [0]=> int(0) [1]=> int(0) } ["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]=> int(0) [1]=> int(0) } [-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]=> int(0) [1]=> int(0) } [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(-.333333333333) ["-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(-.333333333333) [5]=> string(4) "Test" ["test"]=> int(27) } -- Testing usort() -- array(7) { [0]=> float(-.333333333333) [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 -rw-r----- 1 GNU ftbegcp 1299 Jul 15 13:18 ./ext/standard/tests/array/004.log ---- EXPECTED OUTPUT array(5) { [0]=> string(5) "Test1" ["teST2"]=> int(0) [5]=> string(5) "test2" ["abc"]=> string(6) "test10" [6]=> string(6) "test21" } array(5) { ["teST2"]=> int(0) [0]=> string(5) "Test1" [5]=> string(5) "test2" ["abc"]=> string(6) "test10" [6]=> string(6) "test21" } array(5) { ["teST2"]=> int(0) [0]=> string(5) "Test1" [5]=> string(5) "test2" ["abc"]=> string(6) "test10" [6]=> string(6) "test21" } ---- ACTUAL OUTPUT array(5) { [0]=> string(5) "Test1" ["teST2"]=> int(0) [5]=> string(5) "test2" ["abc"]=> string(6) "test10" [6]=> string(6) "test21" } array(5) { ["teST2"]=> int(0) [0]=> string(5) "Test1" [5]=> string(5) "test2" ["abc"]=> string(6) "test10" [6]=> string(6) "test21" } array(5) { ["teST2"]=> int(0) [0]=> string(5) "Test1" [5]=> string(5) "test2" ["abc"]=> string(6) "test10" [6]=> string(6) "test21" } /u08/open_data/build/php4-200207150000/ext/standard/array.c(354) : Freeing 0x2013DCC0 (6 bytes), script=/u08/open_data/build/php4-2 00207150000/ext/standard/tests/array/phpt.3d32cba0ab3a3 /u08/open_data/build/php4-200207150000/Zend/zend_variables.c(106) : Actual location (location was relayed) Last leak repeated 2 times ---- FAILED -rw-r----- 1 GNU ftbegcp 1173 Jul 15 13:19 ./ext/standard/tests/time/002.log ---- EXPECTED OUTPUT 1999-10-13 00:00:00 1999-10-13 00:00:00 2000-01-19 00:00:00 2000-01-19 00:00:00 2001-12-21 00:00:00 2001-12-21 00:00:00 2001-12-21 12:16:00 2001-12-21 12:16:00 1969-12-31 23:59:59 2001-10-22 21:19:58 2001-10-22 23:19:58 2001-10-22 23:32:58 2001-10-22 19:19:58 2001-10-22 19:06:58 1999-10-13 00:00:00 1999-10-13 00:00:00 2000-01-19 00:00:00 2000-01-19 00:00:00 2001-12-21 00:00:00 2001-12-21 00:00:00 2001-12-21 12:16:00 2001-12-21 12:16:00 1970-01-01 00:59:59 2001-10-22 21:19:58 2001-10-23 01:19:58 2001-10-23 01:32:58 2001-10-22 21:19:58 2001-10-22 21:06:58 ---- ACTUAL OUTPUT 1999-10-13 00:00:00 1999-10-13 00:00:00 2000-01-19 00:00:00 2000-01-19 00:00:00 2001-12-21 00:00:00 2001-12-21 00:00:00 2001-12-21 12:16:00 2001-12-21 12:16:00 1969-12-31 23:59:59 2001-10-22 21:19:58 2001-10-22 23:19:58 2001-10-22 23:32:58 2001-10-22 19:19:58 2001-10-22 19:06:58 1999-10-13 00:00:00 1999-10-13 00:00:00 2000-01-19 00:00:00 2000-01-19 00:00:00 2001-12-21 00:00:00 2001-12-21 00:00:00 2001-12-21 12:16:00 2001-12-21 12:16:00 1969-12-31 23:59:59 2001-10-22 21:19:58 2001-10-22 23:19:58 2001-10-22 23:32:58 2001-10-22 19:19:58 2001-10-22 19:06:58 ---- FAILED -rw-r----- 1 GNU ftbegcp 545 Jul 15 13:19 ./ext/standard/tests/time/003.log ---- EXPECTED OUTPUT 2000-02-29 2000-02-28 2000-02-29 2001-02-28 2001-03-01 1999-11-30 2000-05-29 12:00:00 2000-05-29 13:00:00 2000-05-29 12:00:00 2000-01-31 12:00:00 2000-01-31 12:00:00 2000-01-31 11:00:00 2000-04-29 12:00:00 2000-04-29 13:00:00 2000-04-29 12:00:00 ---- ACTUAL OUTPUT 2000-02-29 2000-02-28 2000-02-29 2001-02-28 2001-03-01 1999-11-30 2000-05-29 12:00:00 2000-05-29 12:00:00 2000-05-29 12:00:00 2000-01-31 12:00:00 2000-01-31 12:00:00 2000-01-31 12:00:00 2000-04-29 12:00:00 2000-04-29 12:00:00 2000-04-29 12:00:00 ---- FAILED -rw-r----- 1 GNU ftbegcp 699 Jul 15 13:19 ./pear/Console/tests/001-getopt.log ---- EXPECTED OUTPUT options: a=, b=, c= params: options: a=, b=, c= params: foo options: a=, b=, c=foo params: options: a=, b=, c= params: foo, bar, gazonk options: a=, b=, c=foo params: bar, gazonk options: a=, b=, c= params: Console_Getopt: option requires an argument -- c options: a=, b=c params: options: a=, b=, c= params: foo, -bar, gazonk ---- ACTUAL OUTPUT options: a=, b=, c= params: foo options: a=, b=, c=foo params: options: a=, b=, c= params: foo, bar, gazonk options: a=, b=, c=foo params: bar, gazonk options: a=, b=, c= params: Console_Getopt: option requires an argument -- coptions: a=, b=c params: options: a=, b=, c= params: foo, -bar, gazonk ---- FAILED -rw-r----- 1 GNU ftbegcp 2584 Jul 15 13:19 ./pear/tests/pear_config.log ---- EXPECTED OUTPUT #0 starting up ..system.conf: master_server="pear.php.net" ..user.conf: <empty> #1 testing: constructor files: system="system.conf" user="user.conf" #2 testing: singleton string(4) "blah" string(4) "blah" #3 testing: readConfigFile user: verbose="2" system: master_server="pear.php.net" user: <empty> system: master_server="pear.php.net" #4 testing: mergeConfigFile user: verbose="2" user: verbose="100" user: verbose="2" user: <empty> unknown config file type `xyzzy' #5 testing: config file version detection toonew.conf: unknown version `2.0' #6 testing: get/set/remove int(1) int(100) int(2) int(50) int(2) int(1) #7 testing: getType bool(false) string(7) "integer" string(6) "string" string(9) "directory" #8 testing: getDocs master_server: name of the main PEAR server #9 testing: getKeys bin_dir data_dir doc_dir ext_dir http_proxy master_server password php_dir preferred_state test_dir umask username verbose #10 testing: definedBy string(7) "default" string(4) "user" string(4) "user" string(6) "system" string(7) "default" #11 testing: isDefined bool(true) bool(true) bool(false) bool(false) #12 testing: getGroup bin_dir: File Locations data_dir: File Locations (Advanced) doc_dir: File Locations ext_dir: File Locations http_proxy: Internet Access master_server: Internet Access password: Maintainers php_dir: File Locations preferred_state: Advanced test_dir: File Locations (Advanced) umask: Advanced username: Maintainers verbose: Advanced #13 testing: getGroups Advanced, File Locations, File Locations (Advanced), Internet Access, Maintainers #14 testing: getGroupKeys Advanced: preferred_state, umask, verbose File Locations: bin_dir, doc_dir, ext_dir, php_dir File Locations (Advanced): data_dir, test_dir Internet Access: http_proxy, master_server Maintainers: password, username #15 testing: getPrompt bin_dir: PEAR executables directory data_dir: PEAR data directory doc_dir: PEAR documentation directory ext_dir: PHP extension directory http_proxy: HTTP Proxy Server Address master_server: PEAR server password: PEAR password (for package maintainers) php_dir: PEAR directory preferred_state: Preferred Package State test_dir: PEAR test directory umask: Unix file mask username: PEAR username (for package maintainers) verbose: Debug Log Level done ---- ACTUAL OUTPUT Fatal error: Call to undefined function: tmpdir() in /u08/open_data/build/php4-200207150000/pear/PEAR/Config.php on line 54 /u08/open_data/build/php4-200207150000/pear/PEAR/Config.php(54) : Fatal error - Call to undefined function: tmpdir() ---- FAILED -rw-r----- 1 GNU ftbegcp 3771 Jul 15 13:19 ./pear/tests/pear_error.log ---- EXPECTED OUTPUT specify error class: [foo_error: message="test error" code=0 mode=return level=notice prefix="Foo_Error prefix" info=""] default PEAR_Error: [pear_error: message="unknown error" code=0 mode=return level=notice prefix="" info=""] Testing it: bool(true) This is not an error: bool(false) Now trying a bunch of variations... different message: [pear_error: message="test error" code=0 mode=return level=notice prefix="" info=""] different message,code: [pear_error: message="test error" code=-42 mode=return level=notice prefix="" info=""] mode=print: test error[pear_error: message="test error" code=-42 mode=print level=notice prefix="" info=""] mode=callback(function): errorhandler function called, obj=[pear_error: message="test error" code=-42 mode=callback callback=errorha ndler prefix="" info=""] mode=callback(method): errorhandler method called, obj=[pear_error: message="test error" code=-42 mode=callback callback=errorclass: :errorhandler prefix="" info=""] mode=print&trigger: test error User Notice: test error in PEAR.php on line XXX [pear_error: message="test error" code=-42 mode=print|trigger level=notice prefix="" info=""] mode=trigger: User Notice: test error in PEAR.php on line XXX [pear_error: message="test error" code=-42 mode=trigger level=notice prefix="" info=""] mode=trigger,level=notice: User Notice: test error in PEAR.php on line XXX [pear_error: message="test error" code=-42 mode=trigger level=notice prefix="" info=""] mode=trigger,level=warning: User Warning: test error in PEAR.php on line XXX [pear_error: message="test error" code=-42 mode=trigger level=warning prefix="" info=""] mode=trigger,level=error: User Error: test error in PEAR.php on line XXX [pear_error: message="test error" code=-42 mode=trigger level=error prefix="" info=""] ---- ACTUAL OUTPUT specify error class: [foo_error: message="test error" code=0 mode=return level=notice prefix="Foo_Error prefix" info=""] default PEAR_Error: [pear_error: message="unknown error" code=0 mode=return level=notice prefix="" info=""] Testing it: bool(true) This is not an error: bool(false) Now trying a bunch of variations... different message: [pear_error: message="test error" code=0 mode=return level=notice prefix="" info=""] different message,code: [pear_error: message="test error" code=-42 mode=return level=notice prefix="" info=""] mode=print: test error[pear_error: message="test error" code=-42 mode=print level=notice prefix="" info=""] mode=callback(function): errorhandler function called, obj=[pear_error: message="test error" code=-42 mode=callback callback=errorha ndler prefix="" info=""] mode=callback(method): Notice: call_user_method(): This function is deprecated, use the call_user_func variety with the array(&$obj, "method") syntax inste ad in PEAR.php on line XXX errorhandler method called, obj=[pear_error: message="test error" code=-42 mode=callback callback=errorclass::errorhandler prefix="" info=""] mode=print&trigger: test error User Notice: test error in PEAR.php on line XXX [pear_error: message="test error" code=-42 mode=print|trigger level=notice prefix="" info=""] mode=trigger: User Notice: test error in PEAR.php on line XXX [pear_error: message="test error" code=-42 mode=trigger level=notice prefix="" info=""] mode=trigger,level=notice: User Notice: test error in PEAR.php on line XXX [pear_error: message="test error" code=-42 mode=trigger level=notice prefix="" info=""] mode=trigger,level=warning: User Warning: test error in PEAR.php on line XXX [pear_error: message="test error" code=-42 mode=trigger level=warning prefix="" info=""] mode=trigger,level=error: User Error: test error in PEAR.php on line XXX [pear_error: message="test error" code=-42 mode=trigger level=error prefix="" info=""] ---- FAILED -rw-r----- 1 GNU ftbegcp 895 Jul 15 13:19 ./pear/tests/pear_system.log ---- EXPECTED OUTPUT end ---- ACTUAL OUTPUT Warning: mkdir(): File exists in /u11/open_data/local/lib/php/System.php on line 217 /u11/open_data/local/lib/php/System.php(217) : Warning - mkdir(): File exists Warning: mkdir(): File exists in /u11/open_data/local/lib/php/System.php on line 217 /u11/open_data/local/lib/php/System.php(217) : Warning - mkdir(): File exists Warning: mkdir(): File exists in /u11/open_data/local/lib/php/System.php on line 217 /u11/open_data/local/lib/php/System.php(217) : Warning - mkdir(): File exists System::mkDir("dir4/dir3") did not failed System::mkDir('file4 dir5') did not failed Fatal error: Call to undefined function: mktemp() in /u08/open_data/build/php4-200207150000/pear/tests/phpt.3d32cbf3e13ea on line 4 3 /u08/open_data/build/php4-200207150000/pear/tests/phpt.3d32cbf3e13ea(43) : Fatal error - Call to undefined function: mktemp() ---- FAILED -rw-r----- 1 GNU ftbegcp 159 Jul 15 13:19 ./tests/basic/011.log ---- EXPECTED OUTPUT 0: ab 1: cd 2: ef 3: 123 4: test ---- ACTUAL OUTPUT 0: /u08/open_data/build/php4-200207150000/tests/basic/phpt.3d32cbf8e8769 ---- FAILED -rw-r----- 1 GNU ftbegcp 63 Jul 15 13:19 ./tests/func/006.log ---- EXPECTED OUTPUT 3B2A ---- ACTUAL OUTPUT 2B1A ---- FAILED -rw-r----- 1 GNU ftbegcp 9560 Jul 15 13:20 ./tests/lang/023.log ---- EXPECTED OUTPUT PHP Regression Test <html> <head> *** Testing assignments and variable aliasing: ***<br> This should read "blah": blah<br> This should read "this is nifty": this is nifty<br> *************************************************<br> *** Testing integer operators ***<br> Correct result - 8: 8<br> Correct result - 8: 8<br> Correct result - 2: 2<br> Correct result - -2: -2<br> Correct result - 15: 15<br> Correct result - 15: 15<br> Correct result - 2: 2<br> Correct result - 3: 3<br> *********************************<br> *** Testing real operators ***<br> Correct result - 8: 8<br> Correct result - 8: 8<br> Correct result - 2: 2<br> Correct result - -2: -2<br> Correct result - 15: 15<br> Correct result - 15: 15<br> Correct result - 2: 2<br> Correct result - 3: 3<br> *********************************<br> *** Testing if/elseif/else control ***<br> This works<br> this_still_works<br> should_print<br> *** Seriously nested if's test ***<br> ** spelling correction by kluzz ** Only two lines of text should follow:<br> this should be displayed. should be: $i=1, $j=0. is: $i=1, $j=0<br> this is supposed to be displayed. should be: $i=2, $j=4. is: $i=2, $j=4<br> 3 loop iterations should follow:<br> 2 4<br> 3 4<br> 4 4<br> **********************************<br> *** C-style else-if's ***<br> This should be displayed<br> *************************<br> *** WHILE tests ***<br> 0 is smaller than 20<br> 1 is smaller than 20<br> 2 is smaller than 20<br> 3 is smaller than 20<br> 4 is smaller than 20<br> 5 is smaller than 20<br> 6 is smaller than 20<br> 7 is smaller than 20<br> 8 is smaller than 20<br> 9 is smaller than 20<br> 10 is smaller than 20<br> 11 is smaller than 20<br> 12 is smaller than 20<br> 13 is smaller than 20<br> 14 is smaller than 20<br> 15 is smaller than 20<br> 16 is smaller than 20<br> 17 is smaller than 20<br> 18 is smaller than 20<br> 19 is smaller than 20<br> 20 equals 20<br> 21 is greater than 20<br> 22 is greater than 20<br> 23 is greater than 20<br> 24 is greater than 20<br> 25 is greater than 20<br> 26 is greater than 20<br> 27 is greater than 20<br> 28 is greater than 20<br> 29 is greater than 20<br> 30 is greater than 20<br> 31 is greater than 20<br> 32 is greater than 20<br> 33 is greater than 20<br> 34 is greater than 20<br> 35 is greater than 20<br> 36 is greater than 20<br> 37 is greater than 20<br> 38 is greater than 20<br> 39 is greater than 20<br> *******************<br> *** Nested WHILEs ***<br> Each array variable should be equal to the sum of its indices:<br> ${test00}[0] = 0<br> ${test00}[1] = 1<br> ${test00}[2] = 2<br> ${test01}[0] = 1<br> ${test01}[1] = 2<br> ${test01}[2] = 3<br> ${test02}[0] = 2<br> ${test02}[1] = 3<br> ${test02}[2] = 4<br> ${test10}[0] = 1<br> ${test10}[1] = 2<br> ${test10}[2] = 3<br> ${test11}[0] = 2<br> ${test11}[1] = 3<br> ${test11}[2] = 4<br> ${test12}[0] = 3<br> ${test12}[1] = 4<br> ${test12}[2] = 5<br> ${test20}[0] = 2<br> ${test20}[1] = 3<br> ${test20}[2] = 4<br> ${test21}[0] = 3<br> ${test21}[1] = 4<br> ${test21}[2] = 5<br> ${test22}[0] = 4<br> ${test22}[1] = 5<br> ${test22}[2] = 6<br> *********************<br> *** hash test... ***<br> commented out... **************************<br> *** Hash resizing test ***<br> ba<br> baa<br> baaa<br> baaaa<br> baaaaa<br> baaaaaa<br> baaaaaaa<br> baaaaaaaa<br> baaaaaaaaa<br> baaaaaaaaaa<br> ba<br> 10<br> baa<br> 9<br> baaa<br> 8<br> baaaa<br> 7<br> baaaaa<br> 6<br> baaaaaa<br> 5<br> baaaaaaa<br> 4<br> baaaaaaaa<br> 3<br> baaaaaaaaa<br> 2<br> baaaaaaaaaa<br> 1<br> **************************<br> *** break/continue test ***<br> $i should go from 0 to 2<br> $j should go from 3 to 4, and $q should go from 3 to 4<br> $j=3<br> $q=3<br> $q=4<br> $j=4<br> $q=3<br> $q=4<br> $j should go from 0 to 2<br> $j=0<br> $j=1<br> $j=2<br> $k should go from 0 to 2<br> $k=0<br> $k=1<br> $k=2<br> $i=0<br> $j should go from 3 to 4, and $q should go from 3 to 4<br> $j=3<br> $q=3<br> $q=4<br> $j=4<br> $q=3<br> $q=4<br> $j should go from 0 to 2<br> $j=0<br> $j=1<br> $j=2<br> $k should go from 0 to 2<br> $k=0<br> $k=1<br> $k=2<br> $i=1<br> $j should go from 3 to 4, and $q should go from 3 to 4<br> $j=3<br> $q=3<br> $q=4<br> $j=4<br> $q=3<br> $q=4<br> $j should go from 0 to 2<br> $j=0<br> $j=1<br> $j=2<br> $k should go from 0 to 2<br> $k=0<br> $k=1<br> $k=2<br> $i=2<br> ***********************<br> *** Nested file include test ***<br> <html> This is Finish.phtml. This file is supposed to be included from regression_test.phtml. This is normal HTML. and this is PHP code, 2+2=4 </html> ********************************<br> Tests completed.<br> Limor Ullmann is now Limor Baruch :I ---- ACTUAL OUTPUT <html> <head> *** Testing assignments and variable aliasing: ***<br> This should read "blah": blah<br> This should read "this is nifty": this is nifty<br> *************************************************<br> *** Testing integer operators ***<br> Correct result - 8: 8<br> Correct result - 8: 8<br> Correct result - 2: 2<br> Correct result - -2: -2<br> Correct result - 15: 15<br> Correct result - 15: 15<br> Correct result - 2: 2<br> Correct result - 3: 3<br> *********************************<br> *** Testing real operators ***<br> Correct result - 8: 8<br> Correct result - 8: 8<br> Correct result - 2: 2<br> Correct result - -2: -2<br> Correct result - 15: 15<br> Correct result - 15: 15<br> Correct result - 2: 2<br> Correct result - 3: 3<br> *********************************<br> *** Testing if/elseif/else control ***<br> This works<br> this_still_works<br> should_print<br> *** Seriously nested if's test ***<br> ** spelling correction by kluzz ** Only two lines of text should follow:<br> this should be displayed. should be: $i=1, $j=0. is: $i=1, $j=0<br> this is supposed to be displayed. should be: $i=2, $j=4. is: $i=2, $j=4<br> 3 loop iterations should follow:<br> 2 4<br> 3 4<br> 4 4<br> **********************************<br> *** C-style else-if's ***<br> This should be displayed<br> *************************<br> *** WHILE tests ***<br> 0 is smaller than 20<br> 1 is smaller than 20<br> 2 is smaller than 20<br> 3 is smaller than 20<br> 4 is smaller than 20<br> 5 is smaller than 20<br> 6 is smaller than 20<br> 7 is smaller than 20<br> 8 is smaller than 20<br> 9 is smaller than 20<br> 10 is smaller than 20<br> 11 is smaller than 20<br> 12 is smaller than 20<br> 13 is smaller than 20<br> 14 is smaller than 20<br> 15 is smaller than 20<br> 16 is smaller than 20<br> 17 is smaller than 20<br> 18 is smaller than 20<br> 19 is smaller than 20<br> 20 equals 20<br> 21 is greater than 20<br> 22 is greater than 20<br> 23 is greater than 20<br> 24 is greater than 20<br> 25 is greater than 20<br> 26 is greater than 20<br> 27 is greater than 20<br> 28 is greater than 20<br> 29 is greater than 20<br> 30 is greater than 20<br> 31 is greater than 20<br> 32 is greater than 20<br> 33 is greater than 20<br> 34 is greater than 20<br> 35 is greater than 20<br> 36 is greater than 20<br> 37 is greater than 20<br> 38 is greater than 20<br> 39 is greater than 20<br> *******************<br> *** Nested WHILEs ***<br> Each array variable should be equal to the sum of its indices:<br> ${test00}[0] = 0<br> ${test00}[1] = 1<br> ${test00}[2] = 2<br> ${test01}[0] = 1<br> ${test01}[1] = 2<br> ${test01}[2] = 3<br> ${test02}[0] = 2<br> ${test02}[1] = 3<br> ${test02}[2] = 4<br> ${test10}[0] = 1<br> ${test10}[1] = 2<br> ${test10}[2] = 3<br> ${test11}[0] = 2<br> ${test11}[1] = 3<br> ${test11}[2] = 4<br> ${test12}[0] = 3<br> ${test12}[1] = 4<br> ${test12}[2] = 5<br> ${test20}[0] = 2<br> ${test20}[1] = 3<br> ${test20}[2] = 4<br> ${test21}[0] = 3<br> ${test21}[1] = 4<br> ${test21}[2] = 5<br> ${test22}[0] = 4<br> ${test22}[1] = 5<br> ${test22}[2] = 6<br> *********************<br> *** hash test... ***<br> commented out... **************************<br> *** Hash resizing test ***<br> ba<br> baa<br> baaa<br> baaaa<br> baaaaa<br> baaaaaa<br> baaaaaaa<br> baaaaaaaa<br> baaaaaaaaa<br> baaaaaaaaaa<br> ba<br> 10<br> baa<br> 9<br> baaa<br> 8<br> baaaa<br> 7<br> baaaaa<br> 6<br> baaaaaa<br> 5<br> baaaaaaa<br> 4<br> baaaaaaaa<br> 3<br> baaaaaaaaa<br> 2<br> baaaaaaaaaa<br> 1<br> **************************<br> *** break/continue test ***<br> $i should go from 0 to 2<br> $j should go from 3 to 4, and $q should go from 3 to 4<br> $j=3<br> $q=3<br> $q=4<br> $j=4<br> $q=3<br> $q=4<br> $j should go from 0 to 2<br> $j=0<br> $j=1<br> $j=2<br> $k should go from 0 to 2<br> $k=0<br> $k=1<br> $k=2<br> $i=0<br> $j should go from 3 to 4, and $q should go from 3 to 4<br> $j=3<br> $q=3<br> $q=4<br> $j=4<br> $q=3<br> $q=4<br> $j should go from 0 to 2<br> $j=0<br> $j=1<br> $j=2<br> $k should go from 0 to 2<br> $k=0<br> $k=1<br> $k=2<br> $i=1<br> $j should go from 3 to 4, and $q should go from 3 to 4<br> $j=3<br> $q=3<br> $q=4<br> $j=4<br> $q=3<br> $q=4<br> $j should go from 0 to 2<br> $j=0<br> $j=1<br> $j=2<br> $k should go from 0 to 2<br> $k=0<br> $k=1<br> $k=2<br> $i=2<br> ***********************<br> *** Nested file include test ***<br> <html> This is Finish.phtml. This file is supposed to be included from regression_test.phtml. This is normal HTML. and this is PHP code, 2+2=4 </html> ********************************<br> Tests completed.<br> Limor Ullmann is now Limor Baruch :I ---- FAILED -rw-r----- 1 GNU ftbegcp 195 Jul 15 13:20 ./tests/lang/029.log ---- EXPECTED OUTPUT success ---- ACTUAL OUTPUT failure x=object(stdClass)(1) { ["root"]=> object(obj)(0) { } } y=object(stdClass)(1) { ["root"]=> &object(obj)(0) { } } ---- FAILED -rw-r----- 1 GNU ftbegcp 853 Jul 15 13:20 ./tests/lang/031.log ---- EXPECTED OUTPUT Correct - with inner loop reset. inloop 0 for key1 inloop 1 for key1 inloop 0 for key2 inloop 1 for key2 What happens without inner loop reset. inloop 0 for key1 inloop 1 for key1 What happens without inner loop reset but copy. inloop 0 for key1 inloop 1 for key1 What happens with inner loop reset over copy. inloop 0 for key1 inloop 1 for key1 inloop 0 for key2 inloop 1 for key2 ---- ACTUAL OUTPUT Correct - with inner loop reset. inloop 0 for key1 inloop 1 for key1 inloop 0 for key2 inloop 1 for key2 What happens without inner loop reset. inloop 0 for key1 inloop 1 for key1 What happens without inner loop reset but copy. inloop 0 for key1 inloop 1 for key1 inloop 0 for key2 inloop 1 for key2 What happens with inner loop reset over copy. inloop 0 for key1 inloop 1 for key1 inloop 0 for key2 inloop 1 for key2 ---- FAILED ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/18297 -- Edit this bug report at http://bugs.php.net/?id=18297&edit=1

« previous php.bugs (#14257) next »