Test: /ext/json/tests/pass001.1_64bit.phpt - Version 5.3.15-dev    

There is 1 diff reported by users for this test.

Count Diff
8 (100%)
423+
423- ["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,"_empty_":0,"E no .":4000000000000,"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","unicode":"\u30d7\u30ec\u30b9\u30ad\u30c3\u30c8","\u30d7\u30ec\u30b9\u30ad\u30c3\u30c8":"\u30d7\u30ec\u30b9\u30ad\u30c3\u30c8","empty_string":"","true":true,"false":false,"null":null,"array":[],"object":{},"123":{"456":{"abc":{"789":"def","012":[1,2,"5",500],"ghi":[1,2,"five",50,"sixty"]}}},"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"]
425+
425- ["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,"E no .":4000000000000,"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","unicode":"\u30d7\u30ec\u30b9\u30ad\u30c3\u30c8","\u30d7\u30ec\u30b9\u30ad\u30c3\u30c8":"\u30d7\u30ec\u30b9\u30ad\u30c3\u30c8","empty_string":"","true":true,"false":false,"null":null,"array":[],"object":[],"123":{"456":{"abc":{"789":"def","012":[1,2,"5",500],"ghi":[1,2,"five",50,"sixty"]}}},"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"]
427+ NULL
428+ DECODE AGAIN: AS ARRAY
429+ NULL
427- array(14) {
428- [0]=>
429- string(23) "JSON Test Pattern pass1"
430- [1]=>
431- object(stdClass)#%d (1) {
432- ["object with 1 member"]=>
433- array(1) {
434- [0]=>
435- string(20) "array with 1 element"
436- }
437- }
438- [2]=>
439- object(stdClass)#%d (0) {
440- }
441- [3]=>
442- array(0) {
443- }
444- [4]=>
445- int(-42)
446- [5]=>
447- bool(true)
448- [6]=>
449- bool(false)
450- [7]=>
451- NULL
452- [8]=>
453- object(stdClass)#%d (36) {
454- ["integer"]=>
455- int(1234567890)
456- ["real"]=>
457- float(-9876.54321)
458- ["e"]=>
459- float(1.23456789E-13)
460- ["E"]=>
461- float(1.23456789E+34)
462- ["_empty_"]=>
463- int(0)
464- ["E no ."]=>
465- int(4000000000000)
466- ["zero"]=>
467- int(0)
468- ["one"]=>
469- int(1)
470- ["space"]=>
471- string(1) " "
472- ["quote"]=>
473- string(1) """
474- ["backslash"]=>
475- string(1) "\"
476- ["controls"]=>
477- string(5) "
478-
"
479- ["slash"]=>
480- string(5) "/ & /"
481- ["alpha"]=>
482- string(25) "abcdefghijklmnopqrstuvwyz"
483- ["ALPHA"]=>
484- string(25) "ABCDEFGHIJKLMNOPQRSTUVWYZ"
485- ["digit"]=>
486- string(10) "0123456789"
487- ["special"]=>
488- string(31) "`1~!@#$%^&*()_+-={':[,]}|;.</>?"
489- ["hex"]=>
490- string(17) "ģ䕧覫췯ꯍ"
491- ["unicode"]=>
492- string(18) "プレスキット"
493- ["プレスキット"]=>
494- string(18) "プレスキット"
495- ["empty_string"]=>
496- string(0) ""
497- ["true"]=>
498- bool(true)
499- ["false"]=>
500- bool(false)
501- ["null"]=>
502- NULL
503- ["array"]=>
504- array(0) {
505- }
506- ["object"]=>
507- object(stdClass)#%d (0) {
508- }
509- ["123"]=>
510- object(stdClass)#%d (1) {
511- ["456"]=>
512- object(stdClass)#%d (1) {
513- ["abc"]=>
514- object(stdClass)#%d (3) {
515- ["789"]=>
516- string(3) "def"
517- ["012"]=>
518- array(4) {
519- [0]=>
520- int(1)
521- [1]=>
522- int(2)
523- [2]=>
524- string(1) "5"
525- [3]=>
526- int(500)
527- }
528- ["ghi"]=>
529- array(5) {
530- [0]=>
531- int(1)
532- [1]=>
533- int(2)
534- [2]=>
535- string(4) "five"
536- [3]=>
537- int(50)
538- [4]=>
539- string(5) "sixty"
540- }
541- }
542- }
543- }
544- ["address"]=>
545- string(19) "50 St. James Street"
546- ["url"]=>
547- string(20) "http://www.JSON.org/"
548- ["comment"]=>
549- string(13) "// /* <!-- --"
550- ["# -- --> */"]=>
551- string(1) " "
552- [" s p a c e d "]=>
553- array(7) {
554- [0]=>
555- int(1)
556- [1]=>
557- int(2)
558- [2]=>
559- int(3)
560- [3]=>
561- int(4)
562- [4]=>
563- int(5)
564- [5]=>
565- int(6)
566- [6]=>
567- int(7)
568- }
569- ["compact"]=>
570- array(7) {
571- [0]=>
572- int(1)
573- [1]=>
574- int(2)
575- [2]=>
576- int(3)
577- [3]=>
578- int(4)
579- [4]=>
580- int(5)
581- [5]=>
582- int(6)
583- [6]=>
584- int(7)
585- }
586- ["jsontext"]=>
587- string(49) "{"object with 1 member":["array with 1 element"]}"
588- ["quotes"]=>
589- string(27) "&#34; " %22 0x22 034 &#x22;"
590- ["/\"쫾몾ꮘﳞ볚
591-
`1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
592- string(23) "A key can be any string"
593- }
594- [9]=>
595- float(0.5)
596- [10]=>
597- float(98.6)
598- [11]=>
599- float(99.44)
600- [12]=>
601- int(1066)
602- [13]=>
603- string(7) "rosebud"
604- }
605- DECODE AGAIN: AS ARRAY
606- array(14) {
607- [0]=>
608- string(23) "JSON Test Pattern pass1"
609- [1]=>
610- array(1) {
611- ["object with 1 member"]=>
612- array(1) {
613- [0]=>
614- string(20) "array with 1 element"
615- }
616- }
617- [2]=>
618- array(0) {
619- }
620- [3]=>
621- array(0) {
622- }
623- [4]=>
624- int(-42)
625- [5]=>
626- bool(true)
627- [6]=>
628- bool(false)
629- [7]=>
630- NULL
631- [8]=>
632- array(36) {
633- ["integer"]=>
634- int(1234567890)
635- ["real"]=>
636- float(-9876.54321)
637- ["e"]=>
638- float(1.23456789E-13)
639- ["E"]=>
640- float(1.23456789E+34)
641- [""]=>
642- int(0)
643- ["E no ."]=>
644- int(4000000000000)
645- ["zero"]=>
646- int(0)
647- ["one"]=>
648- int(1)
649- ["space"]=>
650- string(1) " "
651- ["quote"]=>
652- string(1) """
653- ["backslash"]=>
654- string(1) "\"
655- ["controls"]=>
656- string(5) "
657-
"
658- ["slash"]=>
659- string(5) "/ & /"
660- ["alpha"]=>
661- string(25) "abcdefghijklmnopqrstuvwyz"
662- ["ALPHA"]=>
663- string(25) "ABCDEFGHIJKLMNOPQRSTUVWYZ"
664- ["digit"]=>
665- string(10) "0123456789"
666- ["special"]=>
667- string(31) "`1~!@#$%^&*()_+-={':[,]}|;.</>?"
668- ["hex"]=>
669- string(17) "ģ䕧覫췯ꯍ"
670- ["unicode"]=>
671- string(18) "プレスキット"
672- ["プレスキット"]=>
673- string(18) "プレスキット"
674- ["empty_string"]=>
675- string(0) ""
676- ["true"]=>
677- bool(true)
678- ["false"]=>
679- bool(false)
680- ["null"]=>
681- NULL
682- ["array"]=>
683- array(0) {
684- }
685- ["object"]=>
686- array(0) {
687- }
688- [123]=>
689- array(1) {
690- [456]=>
691- array(1) {
692- ["abc"]=>
693- array(3) {
694- [789]=>
695- string(3) "def"
696- ["012"]=>
697- array(4) {
698- [0]=>
699- int(1)
700- [1]=>
701- int(2)
702- [2]=>
703- string(1) "5"
704- [3]=>
705- int(500)
706- }
707- ["ghi"]=>
708- array(5) {
709- [0]=>
710- int(1)
711- [1]=>
712- int(2)
713- [2]=>
714- string(4) "five"
715- [3]=>
716- int(50)
717- [4]=>
718- string(5) "sixty"
719- }
720- }
721- }
722- }
723- ["address"]=>
724- string(19) "50 St. James Street"
725- ["url"]=>
726- string(20) "http://www.JSON.org/"
727- ["comment"]=>
728- string(13) "// /* <!-- --"
729- ["# -- --> */"]=>
730- string(1) " "
731- [" s p a c e d "]=>
732- array(7) {
733- [0]=>
734- int(1)
735- [1]=>
736- int(2)
737- [2]=>
738- int(3)
739- [3]=>
740- int(4)
741- [4]=>
742- int(5)
743- [5]=>
744- int(6)
745- [6]=>
746- int(7)
747- }
748- ["compact"]=>
749- array(7) {
750- [0]=>
751- int(1)
752- [1]=>
753- int(2)
754- [2]=>
755- int(3)
756- [3]=>
757- int(4)
758- [4]=>
759- int(5)
760- [5]=>
761- int(6)
762- [6]=>
763- int(7)
764- }
765- ["jsontext"]=>
766- string(49) "{"object with 1 member":["array with 1 element"]}"
767- ["quotes"]=>
768- string(27) "&#34; " %22 0x22 034 &#x22;"
769- ["/\"쫾몾ꮘﳞ볚
770-
`1~!@#$%^&*()_+-=[]{}|;:',./<>?"]=>
771- string(23) "A key can be any string"
772- }
773- [9]=>
774- float(0.5)
775- [10]=>
776- float(98.6)
777- [11]=>
778- float(99.44)
779- [12]=>
780- int(1066)
781- [13]=>
782- string(7) "rosebud"
783- }