Test results [failed]
| From: | noreply@php.net | Date: | Mon, 13 Jan 2003 05:14:24 +0000 |
| Subject: | Test results [failed] | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-8002@lists.php.net to get a copy of this message | ||
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
session object serialization [ext/session/tests/001.phpt]
session object deserialization [ext/session/tests/003.phpt]
session_set_save_handler test [ext/session/tests/004.phpt]
custom save handler, multiple session_start()s, complex data structure test.
[ext/session/tests/005.phpt]
correct instantiation of references between variables in sessions [ext/session/tests/006.phpt]
bug compatibility: unset($c) with enabled register_globals [ext/session/tests/007.phpt]
bug compatibility: global is used albeit register_globals=0 [ext/session/tests/008-php4.2.3.phpt]
unset($_SESSION["name"]); should work with register_globals=off
[ext/session/tests/009.phpt]
session_decode(); should not segfault [ext/session/tests/011.phpt]
registering $_SESSION should not segfault [ext/session/tests/012.phpt]
redefining SID should not cause warnings [ext/session/tests/013.phpt]
a script should not be able to modify session.use_trans_sid [ext/session/tests/014.phpt]
use_trans_sid should not affect SID [ext/session/tests/015.phpt]
rewriter correctly handles attribute names which contain dashes [ext/session/tests/018.phpt]
serializing references test case using globals [ext/session/tests/019.phpt]
rewriter uses arg_seperator.output for modifying URLs [ext/session/tests/020.phpt]
rewriter handles form and fieldset tags correctly [ext/session/tests/021.phpt]
overflow check for _php_math_basetozval [ext/standard/tests/math/hexdec.phpt]
serialize()/unserialize()/var_dump() [ext/standard/tests/serialize/001.phpt]
=====================================================================
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped : 74
Exts tested : 14
---------------------------------------------------------------------
Number of tests : 443
Tests skipped : 221 (49.9%)
Tests failed : 19 ( 4.3%)
Tests passed : 203 (45.8%)
---------------------------------------------------------------------
Time taken : 27 seconds
=====================================================================
================================================================================
/tmp/php-4.3.0/ext/session/tests/001.phpt
================================================================================
---- EXPECTED OUTPUT
baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";s:4:"done";}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";s:4:"done";}}
---- ACTUAL OUTPUT
---- FAILED
================================================================================
001-
baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";s:4:"done";}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";s:4:"done";}}
001+
================================================================================
================================================================================
/tmp/php-4.3.0/ext/session/tests/003.phpt
================================================================================
---- EXPECTED OUTPUT
object(foo)(2) {
["bar"]=>
string(2) "ok"
["yes"]=>
int(2)
}
array(1) {
[3]=>
&object(foo)(2) {
["bar"]=>
string(2) "ok"
["yes"]=>
int(2)
}
}
---- ACTUAL OUTPUT
---- FAILED
================================================================================
001- object(foo)(2) {
001+
002- ["bar"]=>
003- string(2) "ok"
004- ["yes"]=>
005- int(2)
006- }
007- array(1) {
008- [3]=>
009- &object(foo)(2) {
010- ["bar"]=>
011- string(2) "ok"
012- ["yes"]=>
013- int(2)
014- }
015- }
================================================================================
================================================================================
/tmp/php-4.3.0/ext/session/tests/004.phpt
================================================================================
---- EXPECTED OUTPUT
OPEN: PHPSESSID
READ: abtest
object(foo)(2) {
["bar"]=>
string(2) "ok"
["yes"]=>
int(2)
}
array(1) {
[3]=>
&object(foo)(2) {
["bar"]=>
string(2) "ok"
["yes"]=>
int(2)
}
}
WRITE: abtest,
baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}}
OPEN: PHPSESSID
READ: abtest
object(foo)(2) {
["bar"]=>
string(2) "ok"
["yes"]=>
int(2)
}
array(1) {
[3]=>
object(foo)(2) {
["bar"]=>
string(2) "ok"
["yes"]=>
int(2)
}
}
DESTROY: abtest
---- ACTUAL OUTPUT
Fatal error: Call to a member function on a non-object in /tmp/php-4.3.0/ext/session/tests/004.php
on line 48
---- FAILED
================================================================================
001- OPEN: PHPSESSID
001+ Fatal error: Call to a member function on a non-object in
/tmp/php-4.3.0/ext/session/tests/004.php on line 48
002- READ: abtest
003- object(foo)(2) {
004- ["bar"]=>
005- string(2) "ok"
006- ["yes"]=>
007- int(2)
008- }
009- array(1) {
010- [3]=>
011- &object(foo)(2) {
012- ["bar"]=>
013- string(2) "ok"
014- ["yes"]=>
015- int(2)
016- }
017- }
018- WRITE: abtest,
baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}}
019- OPEN: PHPSESSID
020- READ: abtest
021- object(foo)(2) {
022- ["bar"]=>
023- string(2) "ok"
024- ["yes"]=>
025- int(2)
026- }
027- array(1) {
028- [3]=>
029- object(foo)(2) {
030- ["bar"]=>
031- string(2) "ok"
032- ["yes"]=>
033- int(2)
034- }
035- }
036- DESTROY: abtest
================================================================================
================================================================================
/tmp/php-4.3.0/ext/session/tests/005.phpt
================================================================================
---- EXPECTED OUTPUT
OPEN: PHPSESSID
READ: abtest
object(foo)(2) {
["bar"]=>
string(2) "ok"
["yes"]=>
int(2)
}
array(1) {
[3]=>
&object(foo)(2) {
["bar"]=>
string(2) "ok"
["yes"]=>
int(2)
}
}
WRITE: abtest,
baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}}
CLOSE
OPEN: PHPSESSID
READ: abtest
object(foo)(2) {
["bar"]=>
string(2) "ok"
["yes"]=>
int(3)
}
array(1) {
[3]=>
&object(foo)(2) {
["bar"]=>
string(2) "ok"
["yes"]=>
int(3)
}
}
int(123)
WRITE: abtest,
baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:3;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:3;}}c|i:123;
CLOSE
OPEN: PHPSESSID
READ: abtest
object(foo)(2) {
["bar"]=>
string(2) "ok"
["yes"]=>
int(3)
}
array(1) {
[3]=>
object(foo)(2) {
["bar"]=>
string(2) "ok"
["yes"]=>
int(3)
}
}
int(123)
DESTROY: abtest
CLOSE
---- ACTUAL OUTPUT
Fatal error: Call to a member function on a non-object in /tmp/php-4.3.0/ext/session/tests/005.php
on line 50
---- FAILED
================================================================================
001- OPEN: PHPSESSID
001+ Fatal error: Call to a member function on a non-object in
/tmp/php-4.3.0/ext/session/tests/005.php on line 50
002- READ: abtest
003- object(foo)(2) {
004- ["bar"]=>
005- string(2) "ok"
006- ["yes"]=>
007- int(2)
008- }
009- array(1) {
010- [3]=>
011- &object(foo)(2) {
012- ["bar"]=>
013- string(2) "ok"
014- ["yes"]=>
015- int(2)
016- }
017- }
018- WRITE: abtest,
baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}}
019- CLOSE
020- OPEN: PHPSESSID
021- READ: abtest
022- object(foo)(2) {
023- ["bar"]=>
024- string(2) "ok"
025- ["yes"]=>
026- int(3)
027- }
028- array(1) {
029- [3]=>
030- &object(foo)(2) {
031- ["bar"]=>
032- string(2) "ok"
033- ["yes"]=>
034- int(3)
035- }
036- }
037- int(123)
038- WRITE: abtest,
baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:3;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:3;}}c|i:123;
039- CLOSE
040- OPEN: PHPSESSID
041- READ: abtest
042- object(foo)(2) {
043- ["bar"]=>
044- string(2) "ok"
045- ["yes"]=>
046- int(3)
047- }
048- array(1) {
049- [3]=>
050- object(foo)(2) {
051- ["bar"]=>
052- string(2) "ok"
053- ["yes"]=>
054- int(3)
055- }
056- }
057- int(123)
058- DESTROY: abtest
059- CLOSE
================================================================================
================================================================================
/tmp/php-4.3.0/ext/session/tests/006.phpt
================================================================================
---- EXPECTED OUTPUT
original values:
object(a)(1) {
["test"]=>
string(5) "hallo"
}
object(b)(1) {
["a"]=>
&object(a)(1) {
["test"]=>
string(5) "hallo"
}
}
values after session:
object(a)(1) {
["test"]=>
string(5) "hallo"
}
object(b)(1) {
["a"]=>
&object(a)(1) {
["test"]=>
string(5) "hallo"
}
}
---- ACTUAL OUTPUT
original values:
object(a)(1) {
["test"]=>
string(5) "hallo"
}
object(b)(1) {
["a"]=>
&object(a)(1) {
["test"]=>
string(5) "hallo"
}
}
---- FAILED
================================================================================
013- values after session:
014- object(a)(1) {
015- ["test"]=>
016- string(5) "hallo"
017- }
018- object(b)(1) {
019- ["a"]=>
020- &object(a)(1) {
021- ["test"]=>
022- string(5) "hallo"
023- }
024- }
================================================================================
================================================================================
/tmp/php-4.3.0/ext/session/tests/007.phpt
================================================================================
---- EXPECTED OUTPUT
float(3.14)
array(1) {
["c"]=>
&float(3.14)
}
float(3.14)
array(1) {
["c"]=>
&float(3.14)
}
---- ACTUAL OUTPUT
Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/007.php on line 8
---- FAILED
================================================================================
001- float(3.14)
001+ Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/007.php on line 8
002- array(1) {
003- ["c"]=>
004- &float(3.14)
005- }
006- float(3.14)
007- array(1) {
008- ["c"]=>
009- &float(3.14)
010- }
================================================================================
================================================================================
/tmp/php-4.3.0/ext/session/tests/008-php4.2.3.phpt
================================================================================
---- EXPECTED OUTPUT
NULL
Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be
advised that the session extension does not consider global variables as a source of data, unless
register_globals is enabled. You can disable this functionality and this warning by setting
session.bug_compat_42 or session.bug_compat_warn to off, respectively.
array(1) {
["c"]=>
float(3.14)
}
NULL
array(1) {
["c"]=>
float(3.14)
}
---- ACTUAL OUTPUT
Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/008-php4.2.3.php on line 6
---- FAILED
================================================================================
001- NULL
001+ Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/008-php4.2.3.php on line 6
002- Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be
advised that the session extension does not consider global variables as a source of data, unless
register_globals is enabled. You can disable this functionality and this warning by setting
session.bug_compat_42 or session.bug_compat_warn to off, respectively.
003- array(1) {
004- ["c"]=>
005- float(3.14)
006- }
007- NULL
008- array(1) {
009- ["c"]=>
010- float(3.14)
011- }
================================================================================
================================================================================
/tmp/php-4.3.0/ext/session/tests/009.phpt
================================================================================
---- EXPECTED OUTPUT
array(0) {
}
array(1) {
["name"]=>
string(3) "foo"
}
array(1) {
["name"]=>
string(3) "foo"
}
array(0) {
}
array(0) {
}
---- ACTUAL OUTPUT
Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/009.php on line 8
Notice: Undefined variable: HTTP_SESSION_VARS in /tmp/php-4.3.0/ext/session/tests/009.php on line
13
NULL
array(1) {
["name"]=>
string(3) "foo"
}
array(1) {
["name"]=>
string(3) "foo"
}
array(0) {
}
array(0) {
}
Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/009.php on line 29
---- FAILED
================================================================================
001- array(0) {
001+ Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/009.php on line 8
002- }
002+
003- array(1) {
003+ Notice: Undefined variable: HTTP_SESSION_VARS in /tmp/php-4.3.0/ext/session/tests/009.php on
line 13
004- ["name"]=>
004+ NULL
005- string(3) "foo"
005+ array(1) {
006- }
006+ ["name"]=>
007- array(1) {
007+ string(3) "foo"
008- ["name"]=>
008+ }
009- string(3) "foo"
009+ array(1) {
010- }
010+ ["name"]=>
011- array(0) {
011+ string(3) "foo"
015+ array(0) {
016+ }
017+
018+ Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/009.php on line 29
================================================================================
================================================================================
/tmp/php-4.3.0/ext/session/tests/011.phpt
================================================================================
---- EXPECTED OUTPUT
I live
---- ACTUAL OUTPUT
---- FAILED
================================================================================
001- I live
001+
================================================================================
================================================================================
/tmp/php-4.3.0/ext/session/tests/012.phpt
================================================================================
---- EXPECTED OUTPUT
I live
---- ACTUAL OUTPUT
---- FAILED
================================================================================
001- I live
001+
================================================================================
================================================================================
/tmp/php-4.3.0/ext/session/tests/013.phpt
================================================================================
---- EXPECTED OUTPUT
I live
---- ACTUAL OUTPUT
Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/013.php on line 6
Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/013.php on line 9
I live
---- FAILED
================================================================================
001- I live
001+ Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/013.php on line 6
002+
003+ Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/013.php on line 9
004+ I live
================================================================================
================================================================================
/tmp/php-4.3.0/ext/session/tests/014.phpt
================================================================================
---- EXPECTED OUTPUT
<a href="/link?PHPSESSID=abtest">
<a href="/link?PHPSESSID=abtest">
<a href="/link?PHPSESSID=abtest">
---- ACTUAL OUTPUT
<a href="/link">
<a href="/link">
<a href="/link">
Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/014.php on line 18
---- FAILED
================================================================================
001- <a href="/link?PHPSESSID=abtest">
001+ <a href="/link">
002- <a href="/link?PHPSESSID=abtest">
002+ <a href="/link">
003- <a href="/link?PHPSESSID=abtest">
003+ <a href="/link">
004+
005+ Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/014.php on line 18
================================================================================
================================================================================
/tmp/php-4.3.0/ext/session/tests/015.phpt
================================================================================
---- EXPECTED OUTPUT
<a href="/link?PHPSESSID=abtest&PHPSESSID=abtest">
---- ACTUAL OUTPUT
<a href="/link?
Notice: Use of undefined constant SID - assumed 'SID' in
/tmp/php-4.3.0/ext/session/tests/015.php on line 7
SID">
Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/015.php on line 9
---- FAILED
================================================================================
001- <a href="/link?PHPSESSID=abtest&PHPSESSID=abtest">
001+ <a href="/link?
002+ Notice: Use of undefined constant SID - assumed 'SID' in
/tmp/php-4.3.0/ext/session/tests/015.php on line 7
003+ SID">
004+
005+ Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/015.php on line 9
================================================================================
================================================================================
/tmp/php-4.3.0/ext/session/tests/018.phpt
================================================================================
---- EXPECTED OUTPUT
<form accept-charset="ISO-8859-15, ISO-8859-1" action=url.php><input
type="hidden" name="PHPSESSID" value="abtest" />
---- ACTUAL OUTPUT
<form accept-charset="ISO-8859-15, ISO-8859-1" action=url.php>
Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/018.php on line 10
---- FAILED
================================================================================
001- <form accept-charset="ISO-8859-15, ISO-8859-1" action=url.php><input
type="hidden" name="PHPSESSID" value="abtest" />
001+ <form accept-charset="ISO-8859-15, ISO-8859-1" action=url.php>
002+
003+ Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/018.php on line 10
================================================================================
================================================================================
/tmp/php-4.3.0/ext/session/tests/019.phpt
================================================================================
---- EXPECTED OUTPUT
array(2) {
["o1"]=>
&object(tfoo)(1) {
["c"]=>
int(42)
}
["o2"]=>
&object(tfoo)(1) {
["c"]=>
int(42)
}
}
array(2) {
["o1"]=>
&object(tfoo)(1) {
["c"]=>
int(44)
}
["o2"]=>
&object(tfoo)(1) {
["c"]=>
int(44)
}
}
---- ACTUAL OUTPUT
---- FAILED
================================================================================
001- array(2) {
001+
002- ["o1"]=>
003- &object(tfoo)(1) {
004- ["c"]=>
005- int(42)
006- }
007- ["o2"]=>
008- &object(tfoo)(1) {
009- ["c"]=>
010- int(42)
011- }
012- }
013- array(2) {
014- ["o1"]=>
015- &object(tfoo)(1) {
016- ["c"]=>
017- int(44)
018- }
019- ["o2"]=>
020- &object(tfoo)(1) {
021- ["c"]=>
022- int(44)
023- }
024- }
================================================================================
================================================================================
/tmp/php-4.3.0/ext/session/tests/020.phpt
================================================================================
---- EXPECTED OUTPUT
<a href="link.php?a=b&PHPSESSID=abtest">
---- ACTUAL OUTPUT
<a href="link.php?a=b">
Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/020.php on line 10
---- FAILED
================================================================================
001- <a href="link.php?a=b&PHPSESSID=abtest">
001+ <a href="link.php?a=b">
002+
003+ Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/020.php on line 10
================================================================================
================================================================================
/tmp/php-4.3.0/ext/session/tests/021.phpt
================================================================================
---- EXPECTED OUTPUT
<form><input type="hidden" name="PHPSESSID" value="abtest"
/>
<fieldset><input type="hidden" name="PHPSESSID"
value="abtest" />
<form><input type="hidden" name="PHPSESSID" value="abtest"
/>
<fieldset>
<form><input type="hidden" name="PHPSESSID" value="abtest"
/>
<fieldset>
<form>
<fieldset><input type="hidden" name="PHPSESSID"
value="abtest" />
---- ACTUAL OUTPUT
<form>
<fieldset>
Notice: ob_flush() [/phpmanual/ref.outcontrol.html]: failed to flush buffer. No buffer to flush. in
/tmp/php-4.3.0/ext/session/tests/021.php on line 12
<form>
<fieldset>
Notice: ob_flush() [/phpmanual/ref.outcontrol.html]: failed to flush buffer. No buffer to flush. in
/tmp/php-4.3.0/ext/session/tests/021.php on line 21
<form>
<fieldset>
Notice: ob_flush() [/phpmanual/ref.outcontrol.html]: failed to flush buffer. No buffer to flush. in
/tmp/php-4.3.0/ext/session/tests/021.php on line 30
<form>
<fieldset>
Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/021.php on line 39
---- FAILED
================================================================================
001- <form><input type="hidden" name="PHPSESSID"
value="abtest" />
001+ <form>
002- <fieldset><input type="hidden" name="PHPSESSID"
value="abtest" />
002+ <fieldset>
003- <form><input type="hidden" name="PHPSESSID"
value="abtest" />
003+
004- <fieldset>
004+ Notice: ob_flush() [/phpmanual/ref.outcontrol.html]: failed to flush buffer. No buffer to
flush. in /tmp/php-4.3.0/ext/session/tests/021.php on line 12
005- <form><input type="hidden" name="PHPSESSID"
value="abtest" />
005+ <form>
007- <form>
007+
008- <fieldset><input type="hidden" name="PHPSESSID"
value="abtest" />
008+ Notice: ob_flush() [/phpmanual/ref.outcontrol.html]: failed to flush buffer. No buffer to
flush. in /tmp/php-4.3.0/ext/session/tests/021.php on line 21
009+ <form>
010+ <fieldset>
011+
012+ Notice: ob_flush() [/phpmanual/ref.outcontrol.html]: failed to flush buffer. No buffer to
flush. in /tmp/php-4.3.0/ext/session/tests/021.php on line 30
013+ <form>
014+ <fieldset>
015+
016+ Warning: session_destroy() [/phpmanual/function.session-destroy.html]: Trying to destroy
uninitialized session in /tmp/php-4.3.0/ext/session/tests/021.php on line 39
================================================================================
================================================================================
/tmp/php-4.3.0/ext/standard/tests/math/hexdec.phpt
================================================================================
---- EXPECTED OUTPUT
int(74565)
int(74565)
int(74565)
int(74565)
int(74565)
float(78187069441)
float(6442450943)
---- ACTUAL OUTPUT
int(74565)
int(74565)
int(74565)
int(74565)
int(74565)
float(78187069000)
float(6442450900)
---- FAILED
================================================================================
006- float(78187069441)
006+ float(78187069000)
007- float(6442450943)
007+ float(6442450900)
================================================================================
================================================================================
/tmp/php-4.3.0/ext/standard/tests/serialize/001.phpt
================================================================================
---- EXPECTED OUTPUT
N;
b:1;
b:0;
i:1;
i:0;
i:-1;
i:2147483647;
i:-2147483647;
d:1.123456789;
d:1;
d:0;
d:-1;
d:-1.123456789;
s:5:"hallo";
a:6:{i:0;i:1;i:1;d:1.1;i:2;s:5:"hallo";i:3;N;i:4;b:1;i:5;a:0:{}}
O:1:"t":1:{s:1:"a";s:5:"hallo";}
object(t)(1) {
["a"]=>
string(5) "hallo"
}
__sleep called
O:1:"s":2:{s:1:"a";s:5:"hallo";s:1:"c";s:5:"world";}
__wakeup called
object(s)(2) {
["a"]=>
string(5) "hallo"
["c"]=>
string(5) "world"
}
array(2) {
["a"]=>
&string(4) "test"
["b"]=>
&string(4) "test"
}
a:2:{s:1:"a";s:4:"test";s:1:"b";R:2;}
array(2) {
["a"]=>
&string(4) "test"
["b"]=>
&string(4) "test"
}
---- ACTUAL OUTPUT
N;
b:1;
b:0;
i:1;
i:0;
i:-1;
i:2147483647;
i:-2147483647;
d:1.1234568;
d:1;
d:0;
d:-1;
d:-1.1234568;
s:5:"hallo";
a:6:{i:0;i:1;i:1;d:1.1;i:2;s:5:"hallo";i:3;N;i:4;b:1;i:5;a:0:{}}
O:1:"t":1:{s:1:"a";s:5:"hallo";}
object(t)(1) {
["a"]=>
string(5) "hallo"
}
__sleep called
O:1:"s":2:{s:1:"a";s:5:"hallo";s:1:"c";s:5:"world";}
__wakeup called
object(s)(2) {
["a"]=>
string(5) "hallo"
["c"]=>
string(5) "world"
}
array(2) {
["a"]=>
&string(4) "test"
["b"]=>
&string(4) "test"
}
a:2:{s:1:"a";s:4:"test";s:1:"b";R:2;}
array(2) {
["a"]=>
&string(4) "test"
["b"]=>
&string(4) "test"
}
---- FAILED
================================================================================
009- d:1.123456789;
009+ d:1.1234568;
013- d:-1.123456789;
013+ d:-1.1234568;
================================================================================
================================================================================
BUILD ENVIRONMENT
================================================================================
OS:
Linux
Automake:
automake (GNU automake) 1.4-p4
Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Tom Tromey <tromey@cygnus.com>
Autoconf:
Autoconf version 2.13
Libtool:
ltmain.sh (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52)
Compiler:
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)
Bison:
bison (GNU Bison) 1.35
Copyright 1984, 1986, 1989, 1992, 2000, 2001, 2002
Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
User's E-mail: leon at lost[C[Cco dot nz
================================================================================
PHPINFO
================================================================================
phpinfo()
PHP Version => 4.3.0
System => Linux mongo 2.4.20 #1 Fri Dec 13 12:41:15 NZDT 2002 i686
Build Date => Jan 13 2003 18:05:22
Configure Command => './configure' '--with-apxs' '--with-pgsql'
'--with-zlib' '--with-xml' '--enable-wddx' '--with-pspell'
'--with-config-file-path=/etc/php' '--with-gd'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php/php.ini
PHP API => 20020918
PHP Extension => 20020429
Zend Extension => 20021010
Debug Build => no
Thread Safety => disabled
Registered PHP Streams => php, http, ftp, compress.zlib
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies
_______________________________________________________________________
Configuration
PHP Core
Directive => Local Value => Master Value
allow_call_time_pass_reference => On => On
allow_url_fopen => Off => Off
always_populate_raw_post_data => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
asp_tags => Off => Off
auto_append_file => no value => no value
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => no value => no value
default_mimetype => text/html => text/html
define_syslog_variables => Off => Off
disable_functions => no value => no value
display_errors => On => On
display_startup_errors => Off => Off
doc_root => no value => no value
docref_ext => no value => no value
docref_root => http://www.php.net/ => http://www.php.net/
enable_dl => On => On
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => 2039 => 2039
expose_php => On => On
extension_dir => ./ => ./
file_uploads => On => On
gpc_order => GPC => GPC
highlight.bg => #FFFFFF => #FFFFFF
highlight.comment => #FF9900 => #FF9900
highlight.default => #0000CC => #0000CC
highlight.html => #000000 => #000000
highlight.keyword => #006600 => #006600
highlight.string => #CC0000 => #CC0000
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
max_execution_time => 0 => 30
max_input_time => -1 => -1
open_basedir => no value => no value
output_buffering => no value => no value
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 8 => 8
register_argc_argv => On => On
register_globals => Off => Off
report_memleaks => On => On
safe_mode => Off => Off
safe_mode_exec_dir => no value => no value
safe_mode_gid => Off => Off
safe_mode_include_dir => no value => no value
sendmail_from => me@localhost.com => me@localhost.com
sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i
short_open_tag => Off => Off
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 => Off => Off
ctype
ctype functions => enabled
gd
GD Support => enabled
GD Version => bundled (2.0 compatible)
GIF Read Support => enabled
PNG Support => enabled
WBMP Support => enabled
mysql
MySQL Support => enabled
Active Persistent Links => 0
Active Links => 0
Client API version => 3.23.49
MYSQL_MODULE_TYPE => builtin
MYSQL_SOCKET => /tmp/mysql.sock
MYSQL_INCLUDE => MYSQL_LIBS =>
Directive => Local Value => Master Value
mysql.allow_persistent => On => On
mysql.connect_timeout => -1 => -1
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
overload
User-Space Object Overloading Support => enabled
pcre
PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 3.92 11-Sep-2002
pgsql
PostgreSQL Support => enabled
PostgreSQL(libpq) Version => 7.2.1
Multibyte character support => enabled
SSL support => enabled
Active Persistent Links => 0
Active Links => 0
Directive => Local Value => Master Value
pgsql.allow_persistent => On => On
pgsql.auto_reset_persistent => Off => Off
pgsql.ignore_notice => Off => Off
pgsql.log_notice => Off => Off
pgsql.max_links => Unlimited => Unlimited
pgsql.max_persistent => Unlimited => Unlimited
posix
Revision => $Revision: 1.51 $
pspell
PSpell Support => enabled
session
Session Support => enabled
Registered save handlers => files user
Directive => Local Value => Master Value
session.auto_start => Off => Off
session.bug_compat_42 => On => On
session.bug_compat_warn => On => On
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => no value => no value
session.entropy_length => 0 => 0
session.gc_dividend => 100 => 100
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => mm => mm
session.save_path => /tmp => /tmp
session.serialize_handler => php => php
session.use_cookies => On => On
session.use_only_cookies => Off => Off
session.use_trans_sid => Off => Off
standard
Regex Library => Bundled library enabled
Dynamic Library Support => enabled
Path to sendmail => /usr/sbin/sendmail -t -i
Directive => Local Value => Master Value
assert.active => 1 => 1
assert.bail => 0 => 0
assert.callback => no value => no value
assert.quiet_eval => 0 => 0
assert.warning => 1 => 1
auto_detect_line_endings => 0 => 0
default_socket_timeout => 60 => 60
safe_mode_allowed_env_vars => PHP_ => PHP_
safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH
url_rewriter.tags => a=href,area=href,frame=src,input=src,form=fakeentry =>
a=href,area=href,frame=src,input=src,form=fakeentry
user_agent => no value => no value
tokenizer
Tokenizer Support => enabled
wddx
WDDX Support => enabled
WDDX Session Serializer => enabled
xml
XML Support => active
XML Namespace Support => active
EXPAT Version => 1.95.2
zlib
ZLib Support => enabled
Compiled Version => 1.1.4
Linked Version => 1.1.4
Directive => Local Value => Master Value
zlib.output_compression => Off => Off
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value
Additional Modules
Module Name
Environment
Variable => Value
PWD => /tmp/php-4.3.0
MAKEFLAGS => MFLAGS => REDIRECT_STATUS => TEST_PHP_EXECUTABLE =>
/tmp/php-4.3.0/sapi/cli/php
CC => gcc
USER => root
SCRIPT_FILENAME => MAIL => /var/mail/leonov
PATH_TRANSLATED => QUERY_STRING => CONTENT_LENGTH => MAKELEVEL => 1
SSH_CLIENT => 203.173.241.230 18004 22
SHLVL => 4
LOGNAME => leonov
_ => /tmp/php-4.3.0/sapi/cli/php
REQUEST_METHOD => SHELL => /bin/sh
TEST_PHP_SRCDIR => /tmp/php-4.3.0
TERM => cygwin
HOME => /root
PATH => /sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin
SSH_TTY => /dev/pts/0
CONTENT_TYPE =>
PHP Variables
Variable => Value
_SERVER["PWD"] => /tmp/php-4.3.0
_SERVER["MAKEFLAGS"] =>
_SERVER["MFLAGS"] =>
_SERVER["REDIRECT_STATUS"] =>
_SERVER["TEST_PHP_EXECUTABLE"] => /tmp/php-4.3.0/sapi/cli/php
_SERVER["CC"] => gcc
_SERVER["USER"] => root
_SERVER["SCRIPT_FILENAME"] =>
_SERVER["MAIL"] => /var/mail/leonov
_SERVER["PATH_TRANSLATED"] =>
_SERVER["QUERY_STRING"] =>
_SERVER["CONTENT_LENGTH"] =>
_SERVER["MAKELEVEL"] => 1
_SERVER["SSH_CLIENT"] => 203.173.241.230 18004 22
_SERVER["SHLVL"] => 4
_SERVER["LOGNAME"] => leonov
_SERVER["_"] => /tmp/php-4.3.0/sapi/cli/php
_SERVER["REQUEST_METHOD"] =>
_SERVER["SHELL"] => /bin/sh
_SERVER["TEST_PHP_SRCDIR"] => /tmp/php-4.3.0
_SERVER["TERM"] => cygwin
_SERVER["HOME"] => /root
_SERVER["PATH"] =>
/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin
_SERVER["SSH_TTY"] => /dev/pts/0
_SERVER["CONTENT_TYPE"] =>
_SERVER["PHP_SELF"] =>
_SERVER["SCRIPT_NAME"] =>
_SERVER["DOCUMENT_ROOT"] =>
_SERVER["argv"] => Array
(
)
_SERVER["argc"] => 0
_ENV["PWD"] => /tmp/php-4.3.0
_ENV["MAKEFLAGS"] =>
_ENV["MFLAGS"] =>
_ENV["REDIRECT_STATUS"] =>
_ENV["TEST_PHP_EXECUTABLE"] => /tmp/php-4.3.0/sapi/cli/php
_ENV["CC"] => gcc
_ENV["USER"] => root
_ENV["SCRIPT_FILENAME"] =>
_ENV["MAIL"] => /var/mail/leonov
_ENV["PATH_TRANSLATED"] =>
_ENV["QUERY_STRING"] =>
_ENV["CONTENT_LENGTH"] =>
_ENV["MAKELEVEL"] => 1
_ENV["SSH_CLIENT"] => 203.173.241.230 18004 22
_ENV["SHLVL"] => 4
_ENV["LOGNAME"] => leonov
_ENV["_"] => /tmp/php-4.3.0/sapi/cli/php
_ENV["REQUEST_METHOD"] =>
_ENV["SHELL"] => /bin/sh
_ENV["TEST_PHP_SRCDIR"] => /tmp/php-4.3.0
_ENV["TERM"] => cygwin
_ENV["HOME"] => /root
_ENV["PATH"] =>
/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin
_ENV["SSH_TTY"] => /dev/pts/0
_ENV["CONTENT_TYPE"] =>
PHP License
This program is free software; you can redistribute it and/or modify
it under the terms of the PHP License as published by the PHP Group
and included in the distribution in the file: LICENSE
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If you did not receive a copy of the PHP license, or have any
questions about PHP licensing, please contact license@php.net.