Adapt ecpectations to 5.0 reality

This commit is contained in:
Marcus Boerger 2004-03-28 14:09:47 +00:00
parent 83675b6622
commit a7b9cb454e

View File

@ -56,10 +56,8 @@ echo sprintf("%s", $o);
test1 Object test1 Object
( (
) )
string(1%d) "Object id #%d"
Notice: Object of class test1 could not be converted to string in %stostring.php on line %d object(test1)#%d (%d) {
string(12) "Object id #%d"
object(test1)#%d (0) {
} }
====test2==== ====test2====
test2 Object test2 Object
@ -67,23 +65,15 @@ test2 Object
) )
test2::__toString() test2::__toString()
Converted Converted
object(test2)#%d (0) { object(test2)#%d (%d) {
} }
====test3==== ====test3====
test2::__toString() test2::__toString()
Converted Converted
====test4==== ====test4====
test2::__toString() string:Object id #%d====test5====
string:Converted 1Object id #%d====test6====
====test5==== Object id #%dObject id #2====test7====
test2::__toString()
1Converted
====test6====
test2::__toString()
test2::__toString()
Converted
Converted
====test7====
test2::__toString() test2::__toString()
Warning: Illegal offset type in %stostring.php on line %d Warning: Illegal offset type in %stostring.php on line %d
@ -91,9 +81,6 @@ Warning: Illegal offset type in %stostring.php on line %d
Notice: Object of class test2 to string conversion in %stostring.php on line %d Notice: Object of class test2 to string conversion in %stostring.php on line %d
string(6) "Object" string(6) "Object"
test2::__toString() string(1%d) "Object id #%d"
string(9) "Converted"
====test9==== ====test9====
test2::__toString() Object id #%d====DONE!====
Converted
====DONE!====