PHP 4.0 Bug #7005: 'make test' fails several tests
| From: | long at kestrel dot cc dot ukans dot edu | Date: | Wed, 04 Oct 2000 06:42:28 +0000 |
| Subject: | PHP 4.0 Bug #7005: 'make test' fails several tests | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34188@lists.php.net to get a copy of this message | ||
From: long@kestrel.cc.ukans.edu
Operating system: Tru64 5.0
PHP version: 4.0.2
PHP Bug Type: Compile Failure
Bug description: 'make test' fails several tests
'env CC=cc ./configure' was used to configure, then a make was done.
'make test' produces:
[1mRunning tests in /home/long/src/php-4.0.2/ext/db/tests[m
======================================================
DBM File Creation Test ... passed
DBM Insert/Fetch Test ... passed
DBM Insert/Replace/Fetch Test ... passed
DBM Multiple Insert/Fetch Test ... passed
DBM FirstKey/NextKey Loop Test With 5 Items ... passed
DBM FirstKey/NextKey with 2 deletes ... passed
[1mRunning tests in /home/long/src/php-4.0.2/ext/interbase/tests[m
=============================================================
(all skipped)
[1mRunning tests in /home/long/src/php-4.0.2/ext/standard/tests/file[m
=================================================================
[1mFile type functions (001.phpt) ... failed[m
[1mRunning tests in /home/long/src/php-4.0.2/ext/standard/tests/general_functions[m
==============================================================================
sprintf() function ... passed
[1mRunning tests in /home/long/src/php-4.0.2/ext/standard/tests/math[m
=================================================================
Simple math tests ... passed
[1mRunning tests in /home/long/src/php-4.0.2/ext/standard/tests/reg[m
================================================================
RegReplace test 1 ... passed
RegReplace test 2 ... passed
[1mereg_replace single-quote test (003.phpt) ... failed[m
simple ereg test ... passed
Test Regular expression register support in ereg ... passed
Test ereg_replace of start-of-line ... passed
[1mTest empty result buffer in reg_replace (007.phpt) ... failed[m
Test back-references in regular expressions ... passed
Test split() ... passed
Long back references ... passed
\0 back reference ... passed
nonexisting back reference ... passed
escapes in replace string ... passed
backreferences not replaced recursively ... passed
replace empty matches ... passed
test backslash handling in regular expressions ... passed
[1mRunning tests in /home/long/src/php-4.0.2/pear/tests[m
====================================================
[1mDB_Error/DB_Warning test (DB_Error.phpt) ... failed[m
[1mDB::factory test (DB_factory.phpt) ... failed[m
[1mDB::parseDSN test (DB_parseDSN.phpt) ... failed[m
[1mRunning tests in /home/long/src/php-4.0.2/tests/basic[m
=====================================================
Trivial "Hello World" test ... passed
Simple POST Method test ... passed
GET and POST Method combined ... passed
Two variables in POST data ... passed
Three variables in POST data ... passed
Add 3 variables together and print result ... passed
Multiply 3 variables and print result ... passed
Divide 3 variables and print result ... passed
Subtract 3 variables and print result ... passed
Testing | and & operators ... passed
Testing $argc and $argv handling ... passed
[1mRunning tests in /home/long/src/php-4.0.2/tests/classes[m
=======================================================
[1mClasses general test (class_example.phpt) ... failed[m
Classes inheritance test ... passed
[1mRunning tests in /home/long/src/php-4.0.2/tests/func[m
====================================================
Strlen() function test ... passed
Static variables in functions ... passed
General function test ... passed
General function test ... passed
Testing register_shutdown_function() ... passed
[1mRunning tests in /home/long/src/php-4.0.2/tests/lang[m
====================================================
Simple If condition test ... passed
Simple While Loop Test ... passed
Simple Switch Test ... passed
Simple If/Else Test ... passed
Simple If/ElseIf/Else Test ... passed
Nested If/ElseIf/Else Test ... passed
Function call with global and static variables ... passed
Testing recursive function ... passed
Testing function parameter passing ... passed
Testing function parameter passing with a return value ... passed
Testing nested functions ... passed
Testing stack after early function return ... passed
Testing eval function ... passed
Testing eval function inside user-defined function ... passed
Testing include ... passed
Testing user-defined function in included file ... passed
Testing user-defined function falling out of an If into another ... passed
eval() test ... passed
eval() test ... passed
Switch test 1 ... passed
Switch test 2 ... passed
Switch test 3 ... passed
[1mRegression test (023.phpt) ... failed[m
[1mLooped regression test (may take a while) (024.phpt) ... failed[m
Mean recursion test ... passed
Testing string scanner confirmance ... passed
Testing do-while loop ... passed
[1mTesting calling user-level functions from C (028.phpt) ... failed[m
[1mRunning tests in /home/long/src/php-4.0.2/tests/strings[m
=======================================================
String functions ... passed
Formatted print functions ... passed
HTML entities ... passed
TEST RESULT SUMMARY
=============================
Number of tests: 83
Tests skipped: 6 (7.2%)
Tests failed: 10 ( 12%)
Tests passed: 67 ( 81%)
the contents of ext/standard/tests/file/001.out:
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 0654
test.file size is 0
test.file is writeable
test.file is readable
test.file is not executable
test.file is a regular file
test.link is a regular file
test.link is not a directory
file is not a directory
test.file is not a directory
test.file does not exist
test.file does not exist
the contents of ext/tests/reg/003.out:
'test
the contents of ext/tests/reg/007.out:
(blank)
the contents of pear/tests/DB_Error.out:
<br>
<b>Fatal error</b>: Failed opening required 'DB.php'
(include_path='.:/usr/local/lib/php') in
<b>/home/long/src/php-4.0.2/pear/tests/phpt.FGAabyHLa</b> on line
<b>6</b><br>
the contents of pear/tests/DB_factory.out:
<br>
<b>Fatal error</b>: Failed opening required 'DB.php'
(include_path='.:/usr/local/lib/php') in
<b>/home/long/src/php-4.0.2/pear/tests/phpt.LGAabyHLa</b> on line
<b>6</b><br>
the contents of pear/test/DB_parseDSN.out:
<br>
<b>Fatal error</b>: Failed opening required 'DB.php'
(include_path='.:/usr/local/lib/php') in
<b>/home/long/src/php-4.0.2/pear/tests/phpt.RGAabyHLa</b> on line
<b>6</b><br>
the contents of tests/classes/class_example.out:
<blank line>
User information
----------------
First name: Zeev
Family name: Suraski
Address: Ben Gourion 3, Kiryat Bialik, Israel
Phone: +972-4-8713139
User information
----------------
First name: Andi
Family name: Gutmans
Address: Haifa, Israel
Phone: +972-4-8231621
User information
----------------
First name: Andi
Family name: Gutmans
Address: Haifa, Israel
Phone: +972-4-8231621
User information
----------------
First name: Andi
Family name: Gutmans
Address: New address...
Phone: +972-4-8231621
<blank line>
<blank line>
the contents of tests/lang/023.out:
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
the contents of tests/lang/024.out:
(skipped, this was a large output file, email if interested in it)
the contents of tests/lang/028.out:
(skipped, this was a large output file, email if interested in it)