Test: /ext/json/tests/pass001.phpt - Version 7.3.9RC1    

There are 2 different diffs reported by users for this test.

Count Diff
5 (83%)
064+ object(stdClass)#2 (1) {
064- object(stdClass)#1 (1) {
072+ object(stdClass)#3 (0) {
072- object(stdClass)#2 (0) {
086+ object(stdClass)#4 (31) {
086- object(stdClass)#3 (31) {
132+ object(stdClass)#5 (0) {
132- object(stdClass)#4 (0) {
340+ object(stdClass)#6 (1) {
340- object(stdClass)#5 (1) {
348+ object(stdClass)#7 (0) {
348- object(stdClass)#6 (0) {
362+ object(stdClass)#8 (31) {
362- object(stdClass)#7 (31) {
408+ object(stdClass)#9 (0) {
408- object(stdClass)#8 (0) {
1 (17%)
332+ ["JSON Test Pattern pass1",{"object with 1 member":["array with 1 element"]},{},[],-42,true,false,null,{"integer":1234567890,"real":-9876.54321,"e":1.23456789e-13,"E":1.23456789e+34,"":INF,"zero":0,"one":1,"space":" ","quote":"\"","backslash":"\\","controls":"\b\f\n\r\t","slash":"\/ & \/","alpha":"abcdefghijklmnopqrstuvwyz","ALPHA":"ABCDEFGHIJKLMNOPQRSTUVWYZ","digit":"0123456789","special":"`1~!@#$%^&*()_+-={':[,]}|;.<\/>?","hex":"\u0123\u4567\u89ab\ucdef\uabcd\uef4a","true":true,"false":false,"null":null,"array":[],"object":{},"address":"50 St. James Street","url":"http:\/\/www.JSON.org\/","comment":"\/\/ \/* <!-- --","# -- --> *\/":" "," s p a c e d ":[1,2,3,4,5,6,7],"compact":[1,2,3,4,5,6,7],"jsontext":"{\"object with 1 member\":[\"array with 1 element\"]}","quotes":"&#34; \" %22 0x22 034 &#x22;","\/\\\"\ucafe\ubabe\uab98\ufcde\ubcda\uef4a\b\f\n\r\t`1~!@#$%^&*()_+-=[]{}|;:',.\/<>?":"A key can be any string"},0.5,98.6,99.44,1066,"rosebud"]
332- ["JSON Test Pattern pass1",{"object with 1 member":["array with 1 element"]},{},[],-42,true,false,null,{"integer":1234567890,"real":-9876.54321,"e":1.23456789e-13,"E":1.23456789e+34,"":0,"zero":0,"one":1,"space":" ","quote":"\"","backslash":"\\","controls":"\b\f\n\r\t","slash":"\/ & \/","alpha":"abcdefghijklmnopqrstuvwyz","ALPHA":"ABCDEFGHIJKLMNOPQRSTUVWYZ","digit":"0123456789","special":"`1~!@#$%^&*()_+-={':[,]}|;.<\/>?","hex":"\u0123\u4567\u89ab\ucdef\uabcd\uef4a","true":true,"false":false,"null":null,"array":[],"object":{},"address":"50 St. James Street","url":"http:\/\/www.JSON.org\/","comment":"\/\/ \/* <!-- --","# -- --> *\/":" "," s p a c e d ":[1,2,3,4,5,6,7],"compact":[1,2,3,4,5,6,7],"jsontext":"{\"object with 1 member\":[\"array with 1 element\"]}","quotes":"&#34; \" %22 0x22 034 &#x22;","\/\\\"\ucafe\ubabe\uab98\ufcde\ubcda\uef4a\b\f\n\r\t`1~!@#$%^&*()_+-=[]{}|;:',.\/<>?":"A key can be any string"},0.5,98.6,99.44,1066,"rosebud"]
334+ ["JSON Test Pattern pass1",{"object with 1 member":["array with 1 element"]},[],[],-42,true,false,null,{"integer":1234567890,"real":-9876.54321,"e":1.23456789e-13,"E":1.23456789e+34,"":INF,"zero":0,"one":1,"space":" ","quote":"\"","backslash":"\\","controls":"\b\f\n\r\t","slash":"\/ & \/","alpha":"abcdefghijklmnopqrstuvwyz","ALPHA":"ABCDEFGHIJKLMNOPQRSTUVWYZ","digit":"0123456789","special":"`1~!@#$%^&*()_+-={':[,]}|;.<\/>?","hex":"\u0123\u4567\u89ab\ucdef\uabcd\uef4a","true":true,"false":false,"null":null,"array":[],"object":[],"address":"50 St. James Street","url":"http:\/\/www.JSON.org\/","comment":"\/\/ \/* <!-- --","# -- --> *\/":" "," s p a c e d ":[1,2,3,4,5,6,7],"compact":[1,2,3,4,5,6,7],"jsontext":"{\"object with 1 member\":[\"array with 1 element\"]}","quotes":"&#34; \" %22 0x22 034 &#x22;","\/\\\"\ucafe\ubabe\uab98\ufcde\ubcda\uef4a\b\f\n\r\t`1~!@#$%^&*()_+-=[]{}|;:',.\/<>?":"A key can be any string"},0.5,98.6,99.44,1066,"rosebud"]
334- ["JSON Test Pattern pass1",{"object with 1 member":["array with 1 element"]},[],[],-42,true,false,null,{"integer":1234567890,"real":-9876.54321,"e":1.23456789e-13,"E":1.23456789e+34,"":0,"zero":0,"one":1,"space":" ","quote":"\"","backslash":"\\","controls":"\b\f\n\r\t","slash":"\/ & \/","alpha":"abcdefghijklmnopqrstuvwyz","ALPHA":"ABCDEFGHIJKLMNOPQRSTUVWYZ","digit":"0123456789","special":"`1~!@#$%^&*()_+-={':[,]}|;.<\/>?","hex":"\u0123\u4567\u89ab\ucdef\uabcd\uef4a","true":true,"false":false,"null":null,"array":[],"object":[],"address":"50 St. James Street","url":"http:\/\/www.JSON.org\/","comment":"\/\/ \/* <!-- --","# -- --> *\/":" "," s p a c e d ":[1,2,3,4,5,6,7],"compact":[1,2,3,4,5,6,7],"jsontext":"{\"object with 1 member\":[\"array with 1 element\"]}","quotes":"&#34; \" %22 0x22 034 &#x22;","\/\\\"\ucafe\ubabe\uab98\ufcde\ubcda\uef4a\b\f\n\r\t`1~!@#$%^&*()_+-=[]{}|;:',.\/<>?":"A key can be any string"},0.5,98.6,99.44,1066,"rosebud"]
336+ NULL
337+ DECODE AGAIN: AS ARRAY
338+ NULL
336- array(14) {
337- [0]=>
338- string(23) "JSON Test Pattern pass1"
339- [1]=>
340- object(stdClass)#5 (1) {
341- ["object with 1 member"]=>
342- array(1) {
343- [0]=>
344- string(20) "array with 1 element"
345- }
346- }
347- [2]=>
348- object(stdClass)#6 (0) {
349- }
350- [3]=>
351- array(0) {
352- }
353- [4]=>
354- int(-42)
355- [5]=>
356- bool(true)
357- [6]=>
358- bool(false)
359- [7]=>
360- NULL
361- [8]=>
362- object(stdClass)#7 (31) {
363- ["integer"]=>
364- int(1234567890)
365- ["real"]=>
366- float(-9876.54321)
367- ["e"]=>
368- float(1.23456789E-13)
369- ["E"]=>
370- float(1.23456789E+34)
371- [""]=>
372- int(0)
373- ["zero"]=>
374- int(0)
375- ["one"]=>
376- int(1)
377- ["space"]=>
378- string(1) " "
379- ["quote"]=>
380- string(1) """
381- ["backslash"]=>
382- string(1) "\"
383- ["controls"]=>
384- string(5) "
385-
"
386- ["slash"]=>
387- string(5) "/ & /"
388- ["alpha"]=>
389- string(25) "abcdefghijklmnopqrstuvwyz"
390- ["ALPHA"]=>
391- string(25) "ABCDEFGHIJKLMNOPQRSTUVWYZ"
392- ["digit"]=>
393- string(10) "0123456789"
394- ["special"]=>
395- string(31) "`1~!@#$%^&*()_+-={':[,]}|;.</>?"
396- ["hex"]=>
397- string(17) "ģ䕧覫췯ꯍ"
398- ["true"]=>
399- bool(true)
400- ["false"]=>
401- bool(false)
402- ["null"]=>
403- NULL
404- ["array"]=>
405- array(0) {
406- }
407- ["object"]=>
408- object(stdClass)#8 (0) {
409- }
410- ["address"]=>
411- string(19) "50 St. James Street"
412- ["url"]=>
413- string(20) "http://www.JSON.org/"
414- ["comment"]=>
415- string(13) "// /* <!-- --"
416- ["# -- --> */"]=>
417- string(1) " "
418- [" s p a c e d "]=>
419- array(7) {
420- [0]=>
421- int(1)
422- [1]=>
423- int(2)
424- [2]=>
425- int(3)
426- [3]=>
427- int(4)
428- [4]=>
429- int(5)
430- [5]=>
431- int(6)
432- [6]=>
433- int(7)
434- }
435- ["compact"]=>
436- array(7) {
437- [0]=>
438- int(1)
439- [1]=>
440- int(2)
441- [2]=>
442- int(3)
443- [3]=>
444- int(4)
445- [4]=>
446- int(5)
447- [5]=>
448- int(6)
449- [6]=>
450- int(7)
451- }
452- ["jsontext"]=>
453- string(49) "{"object with 1 member":["array with 1 element"]}"
454- ["quotes"]=>
455- string(27) "&#34; " %22 0x22 034 &#x22;"
456- ["/\"쫾몾ꮘﳞ볚
457-
`1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
458- string(23) "A key can be any string"
459- }
460- [9]=>
461- float(0.5)
462- [10]=>
463- float(98.6)
464- [11]=>
465- float(99.44)
466- [12]=>
467- int(1066)
468- [13]=>
469- string(7) "rosebud"
470- }
471- DECODE AGAIN: AS ARRAY
472- array(14) {
473- [0]=>
474- string(23) "JSON Test Pattern pass1"
475- [1]=>
476- array(1) {
477- ["object with 1 member"]=>
478- array(1) {
479- [0]=>
480- string(20) "array with 1 element"
481- }
482- }
483- [2]=>
484- array(0) {
485- }
486- [3]=>
487- array(0) {
488- }
489- [4]=>
490- int(-42)
491- [5]=>
492- bool(true)
493- [6]=>
494- bool(false)
495- [7]=>
496- NULL
497- [8]=>
498- array(31) {
499- ["integer"]=>
500- int(1234567890)
501- ["real"]=>
502- float(-9876.54321)
503- ["e"]=>
504- float(1.23456789E-13)
505- ["E"]=>
506- float(1.23456789E+34)
507- [""]=>
508- int(0)
509- ["zero"]=>
510- int(0)
511- ["one"]=>
512- int(1)
513- ["space"]=>
514- string(1) " "
515- ["quote"]=>
516- string(1) """
517- ["backslash"]=>
518- string(1) "\"
519- ["controls"]=>
520- string(5) "
521-
"
522- ["slash"]=>
523- string(5) "/ & /"
524- ["alpha"]=>
525- string(25) "abcdefghijklmnopqrstuvwyz"
526- ["ALPHA"]=>
527- string(25) "ABCDEFGHIJKLMNOPQRSTUVWYZ"
528- ["digit"]=>
529- string(10) "0123456789"
530- ["special"]=>
531- string(31) "`1~!@#$%^&*()_+-={':[,]}|;.</>?"
532- ["hex"]=>
533- string(17) "ģ䕧覫췯ꯍ"
534- ["true"]=>
535- bool(true)
536- ["false"]=>
537- bool(false)
538- ["null"]=>
539- NULL
540- ["array"]=>
541- array(0) {
542- }
543- ["object"]=>
544- array(0) {
545- }
546- ["address"]=>
547- string(19) "50 St. James Street"
548- ["url"]=>
549- string(20) "http://www.JSON.org/"
550- ["comment"]=>
551- string(13) "// /* <!-- --"
552- ["# -- --> */"]=>
553- string(1) " "
554- [" s p a c e d "]=>
555- array(7) {
556- [0]=>
557- int(1)
558- [1]=>
559- int(2)
560- [2]=>
561- int(3)
562- [3]=>
563- int(4)
564- [4]=>
565- int(5)
566- [5]=>
567- int(6)
568- [6]=>
569- int(7)
570- }
571- ["compact"]=>
572- array(7) {
573- [0]=>
574- int(1)
575- [1]=>
576- int(2)
577- [2]=>
578- int(3)
579- [3]=>
580- int(4)
581- [4]=>
582- int(5)
583- [5]=>
584- int(6)
585- [6]=>
586- int(7)
587- }
588- ["jsontext"]=>
589- string(49) "{"object with 1 member":["array with 1 element"]}"
590- ["quotes"]=>
591- string(27) "&#34; " %22 0x22 034 &#x22;"
592- ["/\"쫾몾ꮘﳞ볚
593-
`1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
594- string(23) "A key can be any string"
595- }
596- [9]=>
597- float(0.5)
598- [10]=>
599- float(98.6)
600- [11]=>
601- float(99.44)
602- [12]=>
603- int(1066)
604- [13]=>
605- string(7) "rosebud"
606- }