Test results for 5.0.3 [failed]

From: Date: Fri, 21 Jan 2005 22:12:57 +0000
Subject: Test results for 5.0.3 [failed]
Groups: php.qa 
Request: Send a blank email to php-qa+get-23130@lists.php.net to get a copy of this message
===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- Test for buffering in core functions with implicit flush off [tests/func/008.phpt] Convert warnings to exceptions [tests/lang/038.phpt] Bug #22836 (returning references to NULL) [Zend/tests/bug22836.phpt] Bug #28444 (Cannot access undefined property for object with overloaded property access) [Zend/tests/bug28444.phpt] Test 3: Exception Test [ext/dom/tests/dom003.phpt] Bug #16069 [ext/iconv/tests/bug16069.phpt] iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt] mysql connect [ext/mysql/tests/001.phpt] Bug #29992 (foreach by reference corrupts the array) [ext/standard/tests/array/bug29992.phpt] Bug #24142 (round() problems) [ext/standard/tests/math/bug24142.phpt] Bug #25694 (round() and number_format() inconsistency) [ext/standard/tests/math/bug25694.phpt] Bug #20382 (strtotime ("Monday", $date) produces wrong result on DST changeover) [ext/standard/tests/time/bug20382.phpt] Bug #26614 (CDATA sections skipped on line count) [ext/xml/tests/bug26614.phpt] ===================================================================== ===================================================================== TEST RESULT SUMMARY --------------------------------------------------------------------- Exts skipped : 69 Exts tested : 14 --------------------------------------------------------------------- Number of tests : 1291 607 Tests skipped : 684 (53.0%) -------- Tests warned : 0 (0.0%) (0.0%) Tests failed : 13 (1.0%) (2.1%) Tests passed : 594 (46.0%) (97.9%) --------------------------------------------------------------------- Time taken : 60 seconds ===================================================================== ===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- Test for buffering in core functions with implicit flush off [tests/func/008.phpt] Convert warnings to exceptions [tests/lang/038.phpt] Bug #22836 (returning references to NULL) [Zend/tests/bug22836.phpt] Bug #28444 (Cannot access undefined property for object with overloaded property access) [Zend/tests/bug28444.phpt] Test 3: Exception Test [ext/dom/tests/dom003.phpt] Bug #16069 [ext/iconv/tests/bug16069.phpt] iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt] mysql connect [ext/mysql/tests/001.phpt] Bug #29992 (foreach by reference corrupts the array) [ext/standard/tests/array/bug29992.phpt] Bug #24142 (round() problems) [ext/standard/tests/math/bug24142.phpt] Bug #25694 (round() and number_format() inconsistency) [ext/standard/tests/math/bug25694.phpt] Bug #20382 (strtotime ("Monday", $date) produces wrong result on DST changeover) [ext/standard/tests/time/bug20382.phpt] Bug #26614 (CDATA sections skipped on line count) [ext/xml/tests/bug26614.phpt] ===================================================================== ================================================================================ /root/php-5.0.3/tests/func/008.phpt ================================================================================ ---- EXPECTED OUTPUT 'foo1' 'foo2' ---- ACTUAL OUTPUT ---- FAILED ================================================================================ 001- 'foo1' 003- 'foo2' ================================================================================ ================================================================================ /root/php-5.0.3/tests/lang/038.phpt ================================================================================ ---- EXPECTED OUTPUT string(15) "Error2Exception" string(5) "fopen" ===DONE=== ---- ACTUAL OUTPUT string(15) "Error2Exception" string(15) "Error2Exception" ===DONE=== ---- FAILED ================================================================================ 002+ string(15) "Error2Exception" 002- string(5) "fopen" ================================================================================ ================================================================================ /root/php-5.0.3/Zend/tests/bug22836.phpt ================================================================================ ---- EXPECTED OUTPUT string(3) "foo" 'foo' Notice: Undefined variable: a in %s on line %d Strict Standards: Only variable references should be returned by reference in %s on line %d string(3) "foo" 'foo' Notice: Undefined variable: a in %s on line %d Strict Standards: Only variable references should be returned by reference in %s on line %d string(3) "foo" 'foo' Notice: Undefined variable: a in %s on line %d Strict Standards: Only variable references should be returned by reference in %s on line %d string(3) "foo" 'foo' Notice: Undefined variable: a in %s on line %d Strict Standards: Only variable references should be returned by reference in %s on line %d string(3) "foo" 'foo' Notice: Undefined variable: a in %s on line %d Strict Standards: Only variable references should be returned by reference in %s on line %d string(3) "foo" 'foo' Notice: Undefined variable: a in %s on line %d Strict Standards: Only variable references should be returned by reference in %s on line %d string(3) "foo" 'foo' Notice: Undefined variable: a in %s on line %d Strict Standards: Only variable references should be returned by reference in %s on line %d string(3) "foo" 'foo' Notice: Undefined variable: a in %s on line %d Strict Standards: Only variable references should be returned by reference in %s on line %d string(3) "foo" 'foo' Notice: Undefined variable: a in %s on line %d Strict Standards: Only variable references should be returned by reference in %s on line %d ---- ACTUAL OUTPUT string(3) "foo" 'foo' Notice: Undefined variable: a in /root/php-5.0.3/Zend/tests/bug22836.php on line 7 Strict Standards: Only variable references should be returned by reference in /root/php-5.0.3/Zend/tests/bug22836.php on line 7 string(3) "foo" 'foo' Notice: Undefined variable: a in /root/php-5.0.3/Zend/tests/bug22836.php on line 7 Strict Standards: Only variable references should be returned by reference in /root/php-5.0.3/Zend/tests/bug22836.php on line 7 NULL 'foo' Notice: Undefined variable: a in /root/php-5.0.3/Zend/tests/bug22836.php on line 7 NULL 'foo' Notice: Undefined variable: a in /root/php-5.0.3/Zend/tests/bug22836.php on line 7 NULL 'foo' Notice: Undefined variable: a in /root/php-5.0.3/Zend/tests/bug22836.php on line 7 NULL 'foo' Notice: Undefined variable: a in /root/php-5.0.3/Zend/tests/bug22836.php on line 7 NULL 'foo' Notice: Undefined variable: a in /root/php-5.0.3/Zend/tests/bug22836.php on line 7 NULL 'foo' Notice: Undefined variable: a in /root/php-5.0.3/Zend/tests/bug22836.php on line 7 ---- FAILED ================================================================================ 013+ NULL 013- string(3) "foo" 017+ NULL 018+ 'foo' 018- Strict Standards: Only variable references should be returned by reference in %s on line %d 019- string(3) "foo" 020+ Notice: Undefined variable: a in /root/php-5.0.3/Zend/tests/bug22836.php on line 7 021+ NULL 022+ 'foo' 023+ 024+ Notice: Undefined variable: a in /root/php-5.0.3/Zend/tests/bug22836.php on line 7 025+ NULL 026+ 'foo' 027+ 028+ Notice: Undefined variable: a in /root/php-5.0.3/Zend/tests/bug22836.php on line 7 029+ NULL 030+ 'foo' 031+ 032+ Notice: Undefined variable: a in /root/php-5.0.3/Zend/tests/bug22836.php on line 7 033+ NULL 023- 024- Strict Standards: Only variable references should be returned by reference in %s on line %d 025- string(3) "foo" 026- 'foo' 027- 028- Notice: Undefined variable: a in %s on line %d 029- 030- Strict Standards: Only variable references should be returned by reference in %s on line %d 031- string(3) "foo" 032- 'foo' 033- 034- Notice: Undefined variable: a in %s on line %d 035- 036- Strict Standards: Only variable references should be returned by reference in %s on line %d 037- string(3) "foo" 038- 'foo' 039- 040- Notice: Undefined variable: a in %s on line %d 041- 042- Strict Standards: Only variable references should be returned by reference in %s on line %d 043- string(3) "foo" 044- 'foo' 045- 046- Notice: Undefined variable: a in %s on line %d 047- 048- Strict Standards: Only variable references should be returned by reference in %s on line %d 049- string(3) "foo" 050- 'foo' 051- 052- Notice: Undefined variable: a in %s on line %d 053- 054- Strict Standards: Only variable references should be returned by reference in %s on line %d ================================================================================ ================================================================================ /root/php-5.0.3/Zend/tests/bug28444.phpt ================================================================================ ---- EXPECTED OUTPUT object(Object)#%d (1) { ["x"]=> int(2) } int(2) int(3) Overloaded::__set(y,3) int(3) Overloaded::__get(y) int(3) Overloaded::__set(z,Object id #3) object(Object)#%d (1) { ["x"]=> int(4) } Overloaded::__get(z) int(4) Overloaded::__get(z) int(5) Overloaded::__get(z) int(6) ===DONE=== ---- ACTUAL OUTPUT object(Object)#2 (1) { ["x"]=> int(2) } int(2) int(3) Overloaded::__set(y,3) int(3) Overloaded::__get(y) int(3) Overloaded::__set(z,Object id #3) object(Object)#3 (1) { ["x"]=> int(4) } Overloaded::__get(z) int(4) Overloaded::__get(z) int(5) Fatal error: Cannot access undefined property for object with overloaded property access in /root/php-5.0.3/Zend/tests/bug28444.php on line 45 ---- FAILED ================================================================================ 020+ 021+ Fatal error: Cannot access undefined property for object with overloaded property access in /root/php-5.0.3/Zend/tests/bug28444.php on line 45 020- Overloaded::__get(z) 021- int(6) 022- ===DONE=== ================================================================================ ================================================================================ /root/php-5.0.3/ext/dom/tests/dom003.phpt ================================================================================ ---- EXPECTED OUTPUT --- Catch exception with try/catch object(DOMException)#%d (6) { ["message:protected"]=> string(23) "Hierarchy Request Error" ["string:private"]=> string(0) "" ["file:protected"]=> string(%d) "%s/ext/dom/tests/dom003.php" ["line:protected"]=> int(8) ["trace:private"]=> array(0) { } ["code"]=> int(3) } --- Don't catch exception with try/catch Fatal error: Uncaught exception 'DOMException' with message 'Hierarchy Request Error' in %sdom003.php:%d Stack trace: #0 {main} thrown in %sdom003.php on line %d ---- ACTUAL OUTPUT --- Catch exception with try/catch object(DOMException)#3 (6) { ["message:protected"]=> string(23) "Hierarchy Request Error" ["string:private"]=> string(0) "" ["file:protected"]=> string(40) "/root/php-5.0.3/ext/dom/tests/dom003.php" ["line:protected"]=> int(8) ["trace:private"]=> array(1) { [0]=> array(6) { ["file"]=> string(40) "/root/php-5.0.3/ext/dom/tests/dom003.php" ["line"]=> int(8) ["function"]=> string(11) "appendChild" ["class"]=> string(10) "DOMElement" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> object(DOMElement)#2 (0) { } } } } ["code"]=> int(3) } --- Don't catch exception with try/catch Fatal error: Uncaught exception 'DOMException' with message 'Hierarchy Request Error' in /root/php-5.0.3/ext/dom/tests/dom003.php:13 Stack trace: #0 /root/php-5.0.3/ext/dom/tests/dom003.php(13): DOMElement->appendChild(Object(DOMElement)) #1 {main} thrown in /root/php-5.0.3/ext/dom/tests/dom003.php on line 13 ---- FAILED ================================================================================ 012+ array(1) { 013+ [0]=> 014+ array(6) { 015+ ["file"]=> 016+ string(40) "/root/php-5.0.3/ext/dom/tests/dom003.php" 017+ ["line"]=> 018+ int(8) 019+ ["function"]=> 020+ string(11) "appendChild" 021+ ["class"]=> 022+ string(10) "DOMElement" 012- array(0) { 013- } 014- ["code"]=> 015- int(3) 016- } 017- --- Don't catch exception with try/catch 018- 019- Fatal error: Uncaught exception 'DOMException' with message 'Hierarchy Request Error' in %sdom003.php:%d 020- Stack trace: 021- #0 {main} 022- thrown in %sdom003.php on line %d 023+ ["type"]=> 024+ string(2) "->" 025+ ["args"]=> 026+ array(1) { 027+ [0]=> 028+ object(DOMElement)#2 (0) { 029+ } 030+ } 031+ } 032+ } 033+ ["code"]=> 034+ int(3) 035+ } 036+ --- Don't catch exception with try/catch 037+ 038+ Fatal error: Uncaught exception 'DOMException' with message 'Hierarchy Request Error' in /root/php-5.0.3/ext/dom/tests/dom003.php:13 039+ Stack trace: 040+ #0 /root/php-5.0.3/ext/dom/tests/dom003.php(13): DOMElement->appendChild(Object(DOMElement)) 041+ #1 {main} 042+ thrown in /root/php-5.0.3/ext/dom/tests/dom003.php on line 13 ================================================================================ ================================================================================ /root/php-5.0.3/ext/iconv/tests/bug16069.phpt ================================================================================ ---- EXPECTED OUTPUT ¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë(¡ë§¥¡ë) ---- ACTUAL OUTPUT ¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë(¡ë§¥¡ë) ---- FAILED ================================================================================ 001+ ¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë(¡ë§¥¡ë) 001- ¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë¥ß¥ê¥Ð¡¼¥ë(¡ë§¥¡ë) ================================================================================ ================================================================================ /root/php-5.0.3/ext/iconv/tests/iconv_stream_filter.phpt ================================================================================ ---- EXPECTED OUTPUT string(20) "1b244224332473244b24" string(10) "41244f1b28" string(2) "42" string(20) "a4b3a4f3a4cba4c1a4cf" string(10) "69636f6e76" string(2) "0a" Warning: fread(): iconv stream filter ("ISO-2022-JP"=>"EUC-JP"): invalid multibyte sequence in %s on line %d string(0) "" string(0) "" string(0) "" ---- ACTUAL OUTPUT string(20) "1b244224332473244b24" string(10) "41244f1b28" string(2) "42" string(20) "a4b3a4f3a4cba4c1a4cf" string(10) "69636f6e76" string(2) "0a" string(20) "1b244f24332466245824" string(10) "4e24421b28" string(2) "4f" ---- FAILED ================================================================================ 007+ string(20) "1b244f24332466245824" 008+ string(10) "4e24421b28" 009+ string(2) "4f" 007- 008- Warning: fread(): iconv stream filter ("ISO-2022-JP"=>"EUC-JP"): invalid multibyte sequence in %s on line %d 009- string(0) "" 010- string(0) "" 011- string(0) "" ================================================================================ ================================================================================ /root/php-5.0.3/ext/mysql/tests/001.phpt ================================================================================ ---- EXPECTED OUTPUT string(3) "111" ---- ACTUAL OUTPUT Warning: mysql_connect(): #HY000Host 'localhost.localdomain' is not allowed to connect to this MySQL server in /root/php-5.0.3/ext/mysql/tests/001.php on line 7 Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /root/php-5.0.3/ext/mysql/tests/001.php on line 9 string(3) "011" ---- FAILED ================================================================================ 001+ Warning: mysql_connect(): #HY000Host 'localhost.localdomain' is not allowed to connect to this MySQL server in /root/php-5.0.3/ext/mysql/tests/001.php on line 7 001- string(3) "111" 002+ 003+ Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /root/php-5.0.3/ext/mysql/tests/001.php on line 9 004+ string(3) "011" ================================================================================ ================================================================================ /root/php-5.0.3/ext/standard/tests/array/bug29992.phpt ================================================================================ ---- EXPECTED OUTPUT Array ( [0] => 1 [1] => 2 [2] => 3 ) int(1) int(2) int(3) int(1) int(2) int(3) int(1) int(2) int(3) int(1) int(2) int(3) Array ( [0] => 1 [1] => 2 [2] => 3 ) ===DONE=== ---- ACTUAL OUTPUT Array ( [0] => 1 [1] => 2 [2] => 3 ) int(1) int(2) int(3) int(1) int(2) int(3) int(1) int(2) int(3) int(1) int(2) int(2) Array ( [0] => 1 [1] => 2 [2] => 2 ) ===DONE=== ---- FAILED ================================================================================ 018+ int(2) 018- int(3) 023+ [2] => 2 023- [2] => 3 ================================================================================ ================================================================================ /root/php-5.0.3/ext/standard/tests/math/bug24142.phpt ================================================================================ ---- EXPECTED OUTPUT round(0.005, 2) -> 0.01 round(0.015, 2) -> 0.02 round(0.025, 2) -> 0.03 round(0.035, 2) -> 0.04 round(0.045, 2) -> 0.05 round(0.055, 2) -> 0.06 round(0.065, 2) -> 0.07 round(0.075, 2) -> 0.08 round(0.085, 2) -> 0.09 ---- ACTUAL OUTPUT round(0.005, 2) -> 0.01 round(0.015, 2) -> 0.01 round(0.025, 2) -> 0.03 round(0.035, 2) -> 0.04 round(0.045, 2) -> 0.05 round(0.055, 2) -> 0.06 round(0.065, 2) -> 0.07 round(0.075, 2) -> 0.07 round(0.085, 2) -> 0.08 ---- FAILED ================================================================================ 002+ round(0.015, 2) -> 0.01 002- round(0.015, 2) -> 0.02 008+ round(0.075, 2) -> 0.07 009+ round(0.085, 2) -> 0.08 008- round(0.075, 2) -> 0.08 009- round(0.085, 2) -> 0.09 ================================================================================ ================================================================================ /root/php-5.0.3/ext/standard/tests/math/bug25694.phpt ================================================================================ ---- EXPECTED OUTPUT round 0.045 = 0.05 number format 0.045 = 0.05 round 0.055 = 0.06 number format 0.055 = 0.06 round 5.045 = 5.05 number format 5.045 = 5.05 round 5.055 = 5.06 number format 5.055 = 5.06 round 3.025 = 3.03 number format 3.025 = 3.03 round 4.025 = 4.03 number format 4.025 = 4.03 ---- ACTUAL OUTPUT round 0.045 = 0.04 number format 0.045 = 0.04 round 0.055 = 0.06 number format 0.055 = 0.06 round 5.045 = 5.04 number format 5.045 = 5.04 round 5.055 = 5.05 number format 5.055 = 5.05 round 3.025 = 3.02 number format 3.025 = 3.02 round 4.025 = 4.03 number format 4.025 = 4.03 ---- FAILED ================================================================================ 001+ round 0.045 = 0.04 002+ number format 0.045 = 0.04 001- round 0.045 = 0.05 002- number format 0.045 = 0.05 007+ round 5.045 = 5.04 008+ number format 5.045 = 5.04 009+ 010+ round 5.055 = 5.05 011+ number format 5.055 = 5.05 012+ 013+ round 3.025 = 3.02 014+ number format 3.025 = 3.02 007- round 5.045 = 5.05 008- number format 5.045 = 5.05 010- round 5.055 = 5.06 011- number format 5.055 = 5.06 012- 013- round 3.025 = 3.03 014- number format 3.025 = 3.03 015- ================================================================================ ================================================================================ /root/php-5.0.3/ext/standard/tests/time/bug20382.phpt ================================================================================ ---- EXPECTED OUTPUT tStamp=Wednesday 2004-10-27 17:17:17 CEST result=Monday 2004-11-01 00:00:00 CET wanted=Monday 2004-11-01 00:00:00 CET ---- ACTUAL OUTPUT tStamp=Wednesday 2004-10-27 17:17:17 CEST result=Sunday 2004-10-31 23:00:00 CET wanted=Monday 2004-11-01 00:00:00 CET ---- FAILED ================================================================================ 002+ result=Sunday 2004-10-31 23:00:00 CET 002- result=Monday 2004-11-01 00:00:00 CET ================================================================================ ================================================================================ /root/php-5.0.3/ext/xml/tests/bug26614.phpt ================================================================================ ---- EXPECTED OUTPUT CDATA <DATA> at line 2, col 0 (byte 45) </DATA> at line 9, col 0 (byte 90) Comment <DATA> at line 2, col 0 (byte 45) </DATA> at line 9, col 0 (byte 90) Text <DATA> at line 2, col 0 (byte 45) </DATA> at line 9, col 0 (byte 90) ---- ACTUAL OUTPUT CDATA <DATA> at line 2, col 6 (byte 9) </DATA> at line 9, col 7 (byte 56) Comment <DATA> at line 2, col 6 (byte 9) </DATA> at line 9, col 7 (byte 56) Text <DATA> at line 2, col 6 (byte 9) </DATA> at line 9, col 10 (byte 56) ---- FAILED ================================================================================ 002+ <DATA> at line 2, col 6 (byte 9) 003+ </DATA> at line 9, col 7 (byte 56) 002- <DATA> at line 2, col 0 (byte 45) 003- </DATA> at line 9, col 0 (byte 90) 005+ <DATA> at line 2, col 6 (byte 9) 006+ </DATA> at line 9, col 7 (byte 56) 005- <DATA> at line 2, col 0 (byte 45) 006- </DATA> at line 9, col 0 (byte 90) 008+ <DATA> at line 2, col 6 (byte 9) 009+ </DATA> at line 9, col 10 (byte 56) 008- <DATA> at line 2, col 0 (byte 45) 009- </DATA> at line 9, col 0 (byte 90) ================================================================================ ================================================================================ BUILD ENVIRONMENT ================================================================================ OS: Linux - Linux backup.ccr.msft 2.6.9-1.667 #1 Tue Nov 2 14:41:25 EST 2004 i686 Automake: automake (GNU automake) 1.9.2 Written by Tom Tromey <tromey@redhat.com>. Copyright 2004 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.59 Written by David J. MacKenzie and Akim Demaille. Copyright (C) 2003 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. Bundled Libtool: ltmain.sh (GNU libtool) 1.4.3 (1.922.2.110 2002/10/23 01:39:54) System Libtool: ltmain.sh (GNU libtool) 1.5.6 (1.1220.2.95 2004/04/11 05:50:42) Copyright (C) 2003 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. Compiler: Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux Thread model: posix gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3) Bison: bison (GNU Bison) 1.875c Written by Robert Corbett and Richard Stallman. Copyright (C) 2003 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. Libraries: libcrypt.so.1 => /lib/libcrypt.so.1 (0x00bd5000) libmysqlclient.so.14 => /usr/local/mysql/lib/mysql/libmysqlclient.so.14 (0xf6fa4000) libm.so.6 => /lib/tls/libm.so.6 (0x00b7a000) libz.so.1 => /usr/lib/libz.so.1 (0x00b9f000) libresolv.so.2 => /lib/libresolv.so.2 (0x00c05000) libdl.so.2 => /lib/libdl.so.2 (0x00b74000) libnsl.so.1 => /lib/libnsl.so.1 (0x00c20000) libxml2.so.2 => /usr/lib/libxml2.so.2 (0x001f2000) libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00bc1000) libc.so.6 => /lib/tls/libc.so.6 (0x00a4b000) /lib/ld-linux.so.2 (0x00a32000) User's E-mail: cliff at childcareresources dot org ================================================================================ PHPINFO ================================================================================ phpinfo() PHP Version => 5.0.3 System => Linux backup.ccr.msft 2.6.9-1.667 #1 Tue Nov 2 14:41:25 EST 2004 i686 Build Date => Jan 21 2005 15:07:21 Configure Command => './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/mysql' Server API => Command Line Interface Virtual Directory Support => disabled Configuration File (php.ini) Path => /usr/local/lib PHP API => 20031224 PHP Extension => 20041030 Zend Extension => 220040412 Debug Build => no Thread Safety => disabled IPv6 Support => enabled Registered PHP Streams => php, file, http, ftp Registered Stream Socket Transports => tcp, udp, unix, udg This program makes use of the Zend Scripting Language Engine: Zend Engine v2.0.3, Copyright (c) 1998-2004 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_globals_jit => On => On 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_classes => no value => no value 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 => no value => no value 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-20041030 => /usr/local/lib/php/extensions/no-debug-non-zts-20041030 file_uploads => On => On highlight.bg => #FFFFFF => #FFFFFF highlight.comment => #FF8000 => #FF8000 highlight.default => #0000BB => #0000BB highlight.html => #000000 => #000000 highlight.keyword => #007700 => #007700 highlight.string => #DD0000 => #DD0000 html_errors => Off => On ignore_repeated_errors => Off => Off ignore_repeated_source => Off => Off ignore_user_abort => Off => Off implicit_flush => On => Off include_path => .:/usr/local/lib/php => .:/usr/local/lib/php log_errors => Off => Off log_errors_max_len => 1024 => 1024 magic_quotes_gpc => On => On magic_quotes_runtime => Off => Off magic_quotes_sybase => Off => Off mail.force_extra_parameters => no value => no value max_execution_time => 0 => 30 max_input_time => -1 => -1 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 register_long_arrays => On => On report_memleaks => On => On report_zend_debug => Off => Off safe_mode => Off => Off safe_mode_exec_dir => /usr/local/php/bin => /usr/local/php/bin 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 serialize_precision => 100 => 100 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 => EGPCS => EGPCS xmlrpc_error_number => 0 => 0 xmlrpc_errors => Off => Off y2k_compliance => On => On zend.ze1_compatibility_mode => Off => Off ctype ctype functions => enabled dom DOM/XML => enabled DOM/XML API Version => 20031129 libxml Version => 2.6.14 HTML Support => enabled XPath Support => enabled XPointer Support => enabled Schema Support => enabled RelaxNG Support => enabled iconv iconv support => enabled iconv implementation => glibc iconv library version => 2.3.3 Directive => Local Value => Master Value iconv.input_encoding => ISO-8859-1 => ISO-8859-1 iconv.internal_encoding => ISO-8859-1 => ISO-8859-1 iconv.output_encoding => ISO-8859-1 => ISO-8859-1 libxml libXML support => active libXML Version => 2.6.14 libXML streams => enabled mysql MySQL Support => enabled Active Persistent Links => 0 Active Links => 0 Client API version => 4.1.9 MYSQL_MODULE_TYPE => external MYSQL_SOCKET => /tmp/mysql.sock MYSQL_INCLUDE => -I/usr/local/mysql/include/mysql MYSQL_LIBS => -L/usr/local/mysql/lib/mysql -lmysqlclient Directive => Local Value => Master Value mysql.allow_persistent => On => On mysql.connect_timeout => 60 => 60 mysql.default_host => no value => no value mysql.default_password => no value => no value mysql.default_port => no value => no value mysql.default_socket => no value => no value mysql.default_user => no value => no value mysql.max_links => Unlimited => Unlimited mysql.max_persistent => Unlimited => Unlimited mysql.trace_mode => Off => Off pcre PCRE (Perl Compatible Regular Expressions) Support => enabled PCRE Library Version => 4.5 01-December-2003 posix Revision => $Revision: 1.60 $ session Session Support => enabled Registered save handlers => files user sqlite Registered serializer handlers => php php_binary 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_divisor => 100 => 100 session.gc_maxlifetime => 1440 => 1440 session.gc_probability => 1 => 1 session.hash_bits_per_character => 4 => 4 session.hash_function => 0 => 0 session.name => PHPSESSID => PHPSESSID session.referer_check => no value => no value session.save_handler => files => files session.save_path => no value => no value session.serialize_handler => php => php session.use_cookies => On => On session.use_only_cookies => Off => Off session.use_trans_sid => 0 => 0 SimpleXML Simplexml support => enabled Revision => $Revision: 1.

« previous php.qa (#23130) next »