File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ $arr = json_decode($arr_enc, true);
39
39
var_dump ($ arr );
40
40
41
41
?>
42
- --EXPECT --
42
+ --EXPECTF --
43
43
Testing:
44
44
{
45
45
"JSON Test Pattern pass3": {
@@ -49,9 +49,9 @@ Testing:
49
49
}
50
50
51
51
DECODE: AS OBJECT
52
- object(stdClass)#1 (1) {
52
+ object(stdClass)#%d (1) {
53
53
["JSON Test Pattern pass3"]=>
54
- object(stdClass)#2 (2) {
54
+ object(stdClass)#%d (2) {
55
55
["The outermost value"]=>
56
56
string(27) "must be an object or array."
57
57
["In this test"]=>
@@ -73,9 +73,9 @@ ENCODE: FROM OBJECT
73
73
ENCODE: FROM ARRAY
74
74
{"JSON Test Pattern pass3":{"The outermost value":"must be an object or array.","In this test":"It is an object."}}
75
75
DECODE AGAIN: AS OBJECT
76
- object(stdClass)#3 (1) {
76
+ object(stdClass)#%d (1) {
77
77
["JSON Test Pattern pass3"]=>
78
- object(stdClass)#4 (2) {
78
+ object(stdClass)#%d (2) {
79
79
["The outermost value"]=>
80
80
string(27) "must be an object or array."
81
81
["In this test"]=>
You can’t perform that action at this time.
0 commit comments