Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.6.0a3

Bug #15409 Broken unit tests
Submitted: 2008-12-27 05:03 UTC
From: doconnor Assigned: arpad
Status: Closed Package: PHP_Compat (version CVS)
PHP Version: 5.2.6 OS:
Roadmaps: 1.6.0a3    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 17 - 8 = ?

 
 [2008-12-27 05:03 UTC] doconnor (Daniel O'Connor)
Description: ------------ There's a number of tests appearing as broken in the overnight results. One is a parse error (trivial), another assumes a location of a php.ini file and should skip if the !file_exists(). The others, I don't know about. See http://www.lauken.com/doconnor/results.txt Test script: --------------- Run unit tests Expected result: ---------------- Tests pass or skip meaningfully Actual result: -------------- 119) /home/clockwerx/pear/PHP_Compat/tests/environment/magic_quotes_gpc_on.phpt --- Expected +++ Actual @@ -1,14 +0,0 @@ -Array -( - [a\'b] => a\'b - [aa\'b] => Array - ( - [a\'b] => a\'b - [a\'bb] => Array - ( - [a\'b] => a\'b - ) - - ) - -) \ No newline at end of file /home/clockwerx/pear/AllTests.php:136 /home/clockwerx/pear/AllTests.php:525 120) /home/clockwerx/pear/PHP_Compat/tests/environment/magic_quotes_sybase_off.phpt --- Expected +++ Actual @@ -1,14 +0,0 @@ -Array -( - [a'b] => a'b - [aa'b] => Array - ( - [a'b] => a'b - [a'bb] => Array - ( - [a'b] => a'b - ) - - ) - -) \ No newline at end of file /home/clockwerx/pear/AllTests.php:136 /home/clockwerx/pear/AllTests.php:525 121) /home/clockwerx/pear/PHP_Compat/tests/environment/magic_quotes_gpc_off.phpt --- Expected +++ Actual @@ -1,14 +0,0 @@ -Array -( - [a'b] => a'b - [aa'b] => Array - ( - [a'b] => a'b - [a'bb] => Array - ( - [a'b] => a'b - ) - - ) - -) \ No newline at end of file /home/clockwerx/pear/AllTests.php:136 /home/clockwerx/pear/AllTests.php:525 122) /home/clockwerx/pear/PHP_Compat/tests/environment/register_globals_off.phpt expected string <bool(false)> difference <???????????> got string <> /home/clockwerx/pear/AllTests.php:136 /home/clockwerx/pear/AllTests.php:525 123) /home/clockwerx/pear/PHP_Compat/tests/function/idate.phpt --- Expected +++ Actual @@ -1,53 +1,53 @@ testing: string(1) "B" - result: > 0 + result: (Warning) > 0 testing: string(1) "d" - result: > 0 + result: (Warning) > 0 testing: string(1) "h" - result: > 0 + result: (Warning) > 0 testing: string(1) "H" - result: > 0 + result: (Warning) > 0 testing: string(1) "i" - result: > 0 + result: (Warning) > 0 testing: string(1) "I" - result: > 0 + result: (Warning) > 0 testing: string(1) "L" - result: int(0) + result: (Warning) > 0 testing: string(1) "m" - result: > 0 + result: (Warning) > 0 testing: string(1) "s" - result: > 0 + result: (Warning) > 0 testing: string(1) "t" - result: > 0 + result: (Warning) > 0 testing: string(1) "U" - result: > 0 + result: (Warning) > 0 testing: string(1) "w" - result: > 0 + result: (Warning) > 0 testing: string(1) "W" - result: > 0 + result: (Warning) > 0 testing: string(1) "y" - result: > 0 + result: (Warning) > 0 testing: string(1) "Y" - result: > 0 + result: (Warning) > 0 testing: string(1) "z" - result: > 0 + result: (Warning) > 0 testing: string(1) "Z" - result: > 0 + result: (Warning) > 0 testing: string(3) "foo" result: (Warning) bool(false) @@ -56,7 +56,7 @@ result: (Warning) bool(false) testing: string(1) "!" - result: int(0) + result: (Warning) (Warning) bool(false) testing: string(1) "\" - result: int(0) \ No newline at end of file + result: (Warning) (Warning) bool(false) \ No newline at end of file /home/clockwerx/pear/AllTests.php:136 /home/clockwerx/pear/AllTests.php:525 124) /home/clockwerx/pear/PHP_Compat/tests/function/ini_get_all.phpt --- Expected +++ Actual @@ -1,2 +1,6 @@ +Warning: parse_ini_file(/etc/php5/cli): failed to open stream: No such file or directory in /home/clockwerx/pear/PHP_Compat/Compat/Function/ini_get_all.php on line 71 true -true \ No newline at end of file + +Warning: parse_ini_file(/etc/php5/cli): failed to open stream: No such file or directory in /home/clockwerx/pear/PHP_Compat/Compat/Function/ini_get_all.php on line 55 + +Warning: ini_get_all() Unable to find extension 'standard' in /home/clockwerx/pear/PHP_Compat/Compat/Function/ini_get_all.php on line 67 \ No newline at end of file /home/clockwerx/pear/AllTests.php:136 /home/clockwerx/pear/AllTests.php:525 125) /home/clockwerx/pear/PHP_Compat/tests/function/debug_print_backtrace.phpt --- Expected +++ Actual @@ -6,17 +6,17 @@ Variable: host Value: host -#0 debug(host, host) called at [(null):0] +#0 debug(host, host) #1 call_user_func_array(debug, Array ([0] => host,[1] => host)) called at :45] *** Variable: myClass Value: myClass Object ( ) -#0 debug(myClass, myClass Object ()) called at [(null):0] +#0 debug(myClass, myClass Object ()) #1 call_user_func_array(debug, Array ([0] => myClass,[1] => myClass Object ())) called at :47] *** Variable: fp -Value: Resource id #6#0 debug(fp, Resource id #6) called at [(null):0] +Value: Resource id #6#0 debug(fp, Resource id #6) #1 call_user_func_array(debug, Array ([0] => fp,[1] => Resource id #6)) called at :49] *** \ No newline at end of file /home/clockwerx/pear/AllTests.php:136 /home/clockwerx/pear/AllTests.php:525 126) /home/clockwerx/pear/PHP_Compat/tests/constant/date.phpt expected string <true> difference <xxxx??????????????????????????????????????????????????????????????????????????????????????????????????????????> got string <Parse error: syntax error, unexpected ')' in /home/clockwerx/pear/PHP_Compat/tests/constant/date.php on line 5> /home/clockwerx/pear/AllTests.php:136 /home/clockwerx/pear/AllTests.php:525

Comments

 [2009-01-24 00:06 UTC] doconnor (Daniel O'Connor)
I've fixed the last one, the parse error, in CVS.
 [2009-01-24 00:50 UTC] doconnor (Daniel O'Connor)
ini_get_all.php patch is an improvement, but still fails. It produces: true Warning: ini_get_all() Unable to find extension 'standard' in /usr/share/php/PHP/Compat/Function/ini_get_all.php on line 79 instead of true true as the test expects.
 [2009-01-24 00:57 UTC] doconnor (Daniel O'Connor)
idate.php, I'm getting errors around: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Australia/Adelaide' for 'CST/10.0/DST' instead. It would be good to change the expected test results from (Warning) to the actual expected warning string.
 [2009-01-24 01:13 UTC] doconnor (Daniel O'Connor)
idate.phpt patch completely controls the test environment, and hard sets expectations. IE, it tests against results for 2009-01-24 +0:00 (UTC).
 [2009-01-25 02:40 UTC] arpad (Arpad Ray)
Fixed a bunch today, just ini_get_all() failing for me now.
 [2009-01-26 13:40 UTC] doconnor (Daniel O'Connor)
I still have the following failures: 53) /home/clockwerx/pear/PHP_Compat/tests/environment/magic_quotes_sybase_on.phpt --- Expected +++ Actual @@ -1,14 +0,0 @@ -Array -( - [a''b] => a''b - [aa''b] => Array - ( - [a''b] => a''b - [a''bb] => Array - ( - [a''b] => a''b - ) - - ) - -) \ No newline at end of file /home/clockwerx/pear/AllTests.php:137 /home/clockwerx/pear/AllTests.php:526 54) /home/clockwerx/pear/PHP_Compat/tests/environment/magic_quotes_sybase_off.phpt --- Expected +++ Actual @@ -1,14 +0,0 @@ -Array -( - [a'b] => a'b - [aa'b] => Array - ( - [a'b] => a'b - [a'bb] => Array - ( - [a'b] => a'b - ) - - ) - -) \ No newline at end of file /home/clockwerx/pear/AllTests.php:137 /home/clockwerx/pear/AllTests.php:526 55) /home/clockwerx/pear/PHP_Compat/tests/environment/magic_quotes_gpc_off.phpt --- Expected +++ Actual @@ -1,14 +0,0 @@ -Array -( - [a'b] => a'b - [aa'b] => Array - ( - [a'b] => a'b - [a'bb] => Array - ( - [a'b] => a'b - ) - - ) - -) \ No newline at end of file /home/clockwerx/pear/AllTests.php:137 /home/clockwerx/pear/AllTests.php:526 56) /home/clockwerx/pear/PHP_Compat/tests/environment/register_globals_off.phpt expected string <bool(false)> difference <???????????> got string <> /home/clockwerx/pear/AllTests.php:137 /home/clockwerx/pear/AllTests.php:526 57) /home/clockwerx/pear/PHP_Compat/tests/function/htmlspecialchars.phpt --- Expected +++ Actual @@ -5,8 +5,8 @@ foobar <bar baz="foo" baz='foo'> foobar <bar baz="foo" baz='foo'> foobar <bar baz="foo" baz='foo'> -foobar & Š &#dodgy;<bar baz="foo"> +foobar & &#x8a; &#dodgy;<bar baz="foo"> foobar& <bar baz="foo"> foobar <bar baz="foo" baz='foo'> -foobar & Š &#dodgy;<bar baz="foo"> +foobar & &#x8a; &#dodgy;<bar baz="foo"> foobar& <bar baz="foo"> \ No newline at end of file /home/clockwerx/pear/AllTests.php:137 /home/clockwerx/pear/AllTests.php:526 58) /home/clockwerx/pear/PHP_Compat/tests/function/ini_get_all.phpt --- Expected +++ Actual @@ -1,2 +1,3 @@ true -true \ No newline at end of file + +Warning: ini_get_all() Unable to find extension 'standard' in /home/clockwerx/pear/PHP_Compat/Compat/Function/ini_get_all.php on line 79 \ No newline at end of file /home/clockwerx/pear/AllTests.php:137 /home/clockwerx/pear/AllTests.php:526
 [2009-05-01 21:56 UTC] hm2k (James Wade)
-Status: Assigned +Status: Feedback
Thank you for taking the time to report a problem with the package. This problem may have been already fixed by a previous change that is in the CVS of the package. Please log into CVS with: cvs -d :pserver:cvsread@cvs.php.net:/repository login and check out the CVS repository of this package and upgrade cvs -d :pserver:cvsread@cvs.php.net:/repository co pear/PHP_Compat pear upgrade pear/PHP_Compat/package2.xml or pear upgrade pear/PHP_Compat/package.xml If you are able to reproduce the bug with the latest CVS, please change the status back to "Open". Again, thank you for your continued support of PEAR. I'm running the latest CVS package-test.php, it reports: "No errors found" Please can you update your file here: http://www.lauken.com/doconnor/results.txt And confirm that these issues no longer exist? Thanks.
 [2009-11-09 23:45 UTC] aidan (Aidan Lister)
-Status: Feedback +Status: Closed