Test: /ext/standard/tests/url/parse_url_basic_001.phpt - Version 5.3.25    

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
435+ string(4) "
435- string(4) "http"
436- ["host"]=>
437- string(11) "www.php.net"
438- ["user"]=>
439- string(6) "secret"
440- ["path"]=>
441- string(10) "/index.php"
442- ["query"]=>
443- string(31) "test=1&test2=char&test3=mixesCI"
444- ["fragment"]=>
445- string(16) "some_page_ref123"
446- }
447-
448- --> http://:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123: array(7) {
449- ["scheme"]=>
450- string(4) "http"
451- ["host"]=>
452- string(11) "www.php.net"
453- ["port"]=>
454- int(80)
455- ["pass"]=>
456- string(7) "hideout"
457- ["path"]=>
458- string(10) "/index.php"
459- ["query"]=>
460- string(31) "test=1&test2=char&test3=mixesCI"
461- ["fragment"]=>
462- string(16) "some_page_ref123"
463- }
464-
465- --> http://secret:hideout@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123: array(7) {
466- ["scheme"]=>
467- string(4) "http"
468- ["host"]=>
469- string(11) "www.php.net"
470- ["user"]=>
471- string(6) "secret"
472- ["pass"]=>
473- string(7) "hideout"
474- ["path"]=>
475- string(10) "/index.php"
476- ["query"]=>
477- string(31) "test=1&test2=char&test3=mixesCI"
478- ["fragment"]=>
479- string(16) "some_page_ref123"
480- }
481-
482- --> http://secret@hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123: array(7) {
483- ["scheme"]=>
484- string(4) "http"
485- ["host"]=>
486- string(11) "www.php.net"
487- ["port"]=>
488- int(80)
489- ["user"]=>
490- string(14) "secret@hideout"
491- ["path"]=>
492- string(10) "/index.php"
493- ["query"]=>
494- string(31) "test=1&test2=char&test3=mixesCI"
495- ["fragment"]=>
496- string(16) "some_page_ref123"
497- }
498-
499- --> http://secret:hid:out@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123: array(8) {
500- ["scheme"]=>
501- string(4) "http"
502- ["host"]=>
503- string(11) "www.php.net"
504- ["port"]=>
505- int(80)
506- ["user"]=>
507- string(6) "secret"
508- ["pass"]=>
509- string(7) "hid:out"
510- ["path"]=>
511- string(10) "/index.php"
512- ["query"]=>
513- string(31) "test=1&test2=char&test3=mixesCI"
514- ["fragment"]=>
515- string(16) "some_page_ref123"
516- }
517-
518- --> nntp://news.php.net: array(2) {
519- ["scheme"]=>
520- string(4) "nntp"
521- ["host"]=>
522- string(12) "news.php.net"
523- }
524-
525- --> ftp://ftp.gnu.org/gnu/glic/glibc.tar.gz: array(3) {
526- ["scheme"]=>
527- string(3) "ftp"
528- ["host"]=>
529- string(11) "ftp.gnu.org"
530- ["path"]=>
531- string(22) "/gnu/glic/glibc.tar.gz"
532- }
533-
534- --> zlib:http://foo@bar: array(2) {
535- ["scheme"]=>
536- string(4) "zlib"
537- ["path"]=>
538- string(14) "http://foo@bar"
539- }
540-
541- --> zlib:filename.txt: array(2) {
542- ["scheme"]=>
543- string(4) "zlib"
544- ["path"]=>
545- string(12) "filename.txt"
546- }
547-
548- --> zlib:/path/to/my/file/file.txt: array(2) {
549- ["scheme"]=>
550- string(4) "zlib"
551- ["path"]=>
552- string(25) "/path/to/my/file/file.txt"
553- }
554-
555- --> foo://foo@bar: array(3) {
556- ["scheme"]=>
557- string(3) "foo"
558- ["host"]=>
559- string(3) "bar"
560- ["user"]=>
561- string(3) "foo"
562- }
563-
564- --> mailto:me@mydomain.com: array(2) {
565- ["scheme"]=>
566- string(6) "mailto"
567- ["path"]=>
568- string(15) "me@mydomain.com"
569- }
570-
571- --> /foo.php?a=b&c=d: array(2) {
572- ["path"]=>
573- string(8) "/foo.php"
574- ["query"]=>
575- string(7) "a=b&c=d"
576- }
577-
578- --> foo.php?a=b&c=d: array(2) {
579- ["path"]=>
580- string(7) "foo.php"
581- ["query"]=>
582- string(7) "a=b&c=d"
583- }
584-
585- --> http://user:passwd@www.example.com:8080?bar=1&boom=0: array(6) {
586- ["scheme"]=>
587- string(4) "http"
588- ["host"]=>
589- string(15) "www.example.com"
590- ["port"]=>
591- int(8080)
592- ["user"]=>
593- string(4) "user"
594- ["pass"]=>
595- string(6) "passwd"
596- ["query"]=>
597- string(12) "bar=1&boom=0"
598- }
599-
600- --> file:///path/to/file: array(2) {
601- ["scheme"]=>
602- string(4) "file"
603- ["path"]=>
604- string(13) "/path/to/file"
605- }
606-
607- --> file://path/to/file: array(3) {
608- ["scheme"]=>
609- string(4) "file"
610- ["host"]=>
611- string(4) "path"
612- ["path"]=>
613- string(8) "/to/file"
614- }
615-
616- --> file:/path/to/file: array(2) {
617- ["scheme"]=>
618- string(4) "file"
619- ["path"]=>
620- string(13) "/path/to/file"
621- }
622-
623- --> http://1.2.3.4:/abc.asp?a=1&b=2: array(4) {
624- ["scheme"]=>
625- string(4) "http"
626- ["host"]=>
627- string(7) "1.2.3.4"
628- ["path"]=>
629- string(8) "/abc.asp"
630- ["query"]=>
631- string(7) "a=1&b=2"
632- }
633-
634- --> http://foo.com#bar: array(3) {
635- ["scheme"]=>
636- string(4) "http"
637- ["host"]=>
638- string(7) "foo.com"
639- ["fragment"]=>
640- string(3) "bar"
641- }
642-
643- --> scheme:: array(1) {
644- ["scheme"]=>
645- string(6) "scheme"
646- }
647-
648- --> foo+bar://baz@bang/bla: array(4) {
649- ["scheme"]=>
650- string(7) "foo+bar"
651- ["host"]=>
652- string(4) "bang"
653- ["user"]=>
654- string(3) "baz"
655- ["path"]=>
656- string(4) "/bla"
657- }
658-
659- --> gg:9130731: array(2) {
660- ["scheme"]=>
661- string(2) "gg"
662- ["path"]=>
663- string(7) "9130731"
664- }
665-
666- --> http://user:@pass@host/path?argument?value#etc: array(7) {
667- ["scheme"]=>
668- string(4) "http"
669- ["host"]=>
670- string(4) "host"
671- ["user"]=>
672- string(4) "user"
673- ["pass"]=>
674- string(5) "@pass"
675- ["path"]=>
676- string(5) "/path"
677- ["query"]=>
678- string(14) "argument?value"
679- ["fragment"]=>
680- string(3) "etc"
681- }
682-
683- --> http://10.10.10.10/:80: array(3) {
684- ["scheme"]=>
685- string(4) "http"
686- ["host"]=>
687- string(11) "10.10.10.10"
688- ["path"]=>
689- string(4) "/:80"
690- }
691-
692- --> http://x:?: array(2) {
693- ["scheme"]=>
694- string(4) "http"
695- ["host"]=>
696- string(1) "x"
697- }
698-
699- --> x:blah.com: array(2) {
700- ["scheme"]=>
701- string(1) "x"
702- ["path"]=>
703- string(8) "blah.com"
704- }
705-
706- --> x:/blah.com: array(2) {
707- ["scheme"]=>
708- string(1) "x"
709- ["path"]=>
710- string(9) "/blah.com"
711- }
712-
713- --> x://::abc/?: bool(false)
714-
715- --> http://::?: array(2) {
716- ["scheme"]=>
717- string(4) "http"
718- ["host"]=>
719- string(1) ":"
720- }
721-
722- --> x://::6.5: array(3) {
723- ["scheme"]=>
724- string(1) "x"
725- ["host"]=>
726- string(1) ":"
727- ["port"]=>
728- int(6)
729- }
730-
731- --> http://?:/: array(3) {
732- ["scheme"]=>
733- string(4) "http"
734- ["host"]=>
735- string(1) "?"
736- ["path"]=>
737- string(1) "/"
738- }
739-
740- --> http://@?:/: array(4) {
741- ["scheme"]=>
742- string(4) "http"
743- ["host"]=>
744- string(1) "?"
745- ["user"]=>
746- string(0) ""
747- ["path"]=>
748- string(1) "/"
749- }
750-
751- --> file:///:: array(2) {
752- ["scheme"]=>
753- string(4) "file"
754- ["path"]=>
755- string(2) "/:"
756- }
757-
758- --> file:///a:/: array(2) {
759- ["scheme"]=>
760- string(4) "file"
761- ["path"]=>
762- string(3) "a:/"
763- }
764-
765- --> file:///ab:/: array(2) {
766- ["scheme"]=>
767- string(4) "file"
768- ["path"]=>
769- string(5) "/ab:/"
770- }
771-
772- --> file:///a:/: array(2) {
773- ["scheme"]=>
774- string(4) "file"
775- ["path"]=>
776- string(3) "a:/"
777- }
778-
779- --> file:///@:/: array(2) {
780- ["scheme"]=>
781- string(4) "file"
782- ["path"]=>
783- string(3) "@:/"
784- }
785-
786- --> file:///:80/: array(2) {
787- ["scheme"]=>
788- string(4) "file"
789- ["path"]=>
790- string(5) "/:80/"
791- }
792-
793- --> []: array(1) {
794- ["path"]=>
795- string(2) "[]"
796- }
797-
798- --> http://[x:80]/: array(3) {
799- ["scheme"]=>
800- string(4) "http"
801- ["host"]=>
802- string(6) "[x:80]"
803- ["path"]=>
804- string(1) "/"
805- }
806-
807- --> : array(1) {
808- ["path"]=>
809- string(0) ""
810- }
811-
812- --> /: array(1) {
813- ["path"]=>
814- string(1) "/"
815- }
816-
817- --> http:///blah.com: bool(false)
818-
819- --> http://:80: bool(false)
820-
821- --> http://user@:80: bool(false)
822-
823- --> http://user:pass@:80: bool(false)
824-
825- --> http://:: bool(false)
826-
827- --> http://@/: bool(false)
828-
829- --> http://@:/: bool(false)
830-
831- --> http://:/: bool(false)
832-
833- --> http://?: bool(false)
834-
835- --> http://?:: bool(false)
836-
837- --> http://:?: bool(false)
838-
839- --> http://blah.com:123456: bool(false)
840-
841- --> http://blah.com:abcdef: bool(false)
842- Done