Skip to content

Commit 0bfa245

Browse files
committed
Modify json/tests/pass003 to ignore internal object ID
Child is now created first - bottom up parsing (LR)
1 parent 9e5f687 commit 0bfa245

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ext/json/tests/pass003.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ $arr = json_decode($arr_enc, true);
3939
var_dump($arr);
4040

4141
?>
42-
--EXPECT--
42+
--EXPECTF--
4343
Testing:
4444
{
4545
"JSON Test Pattern pass3": {
@@ -49,9 +49,9 @@ Testing:
4949
}
5050

5151
DECODE: AS OBJECT
52-
object(stdClass)#1 (1) {
52+
object(stdClass)#%d (1) {
5353
["JSON Test Pattern pass3"]=>
54-
object(stdClass)#2 (2) {
54+
object(stdClass)#%d (2) {
5555
["The outermost value"]=>
5656
string(27) "must be an object or array."
5757
["In this test"]=>
@@ -73,9 +73,9 @@ ENCODE: FROM OBJECT
7373
ENCODE: FROM ARRAY
7474
{"JSON Test Pattern pass3":{"The outermost value":"must be an object or array.","In this test":"It is an object."}}
7575
DECODE AGAIN: AS OBJECT
76-
object(stdClass)#3 (1) {
76+
object(stdClass)#%d (1) {
7777
["JSON Test Pattern pass3"]=>
78-
object(stdClass)#4 (2) {
78+
object(stdClass)#%d (2) {
7979
["The outermost value"]=>
8080
string(27) "must be an object or array."
8181
["In this test"]=>

0 commit comments

Comments
 (0)