Test: /ext/standard/tests/url/parse_url_basic_007.phpt - Version 7.0.30    

There is 1 diff reported by users for this test.

Count Diff
2 (100%)
001+ Fatal error: Uncaught Error: Call to undefined function import_module() in %s/parse_url_basic_007.php:11
002+ Stack trace:
003+ #0 {main}
004+ thrown in %s/parse_url_basic_007.php on line 11
001- --> 64.246.30.37 : string(12) "64.246.30.37"
002- --> http://64.246.30.37 : NULL
003- --> http://64.246.30.37/ : string(1) "/"
004- --> 64.246.30.37/ : string(13) "64.246.30.37/"
005- --> 64.246.30.37:80/ : string(1) "/"
006- --> php.net : string(7) "php.net"
007- --> php.net/ : string(8) "php.net/"
008- --> http://php.net : NULL
009- --> http://php.net/ : string(1) "/"
010- --> www.php.net : string(11) "www.php.net"
011- --> www.php.net/ : string(12) "www.php.net/"
012- --> http://www.php.net : NULL
013- --> http://www.php.net/ : string(1) "/"
014- --> www.php.net:80 : NULL
015- --> http://www.php.net:80 : NULL
016- --> http://www.php.net:80/ : string(1) "/"
017- --> http://www.php.net/index.php : string(10) "/index.php"
018- --> www.php.net/? : string(12) "www.php.net/"
019- --> www.php.net:80/? : string(1) "/"
020- --> http://www.php.net/? : string(1) "/"
021- --> http://www.php.net:80/? : string(1) "/"
022- --> http://www.php.net:80/index.php : string(10) "/index.php"
023- --> http://www.php.net:80/foo/bar/index.php : string(18) "/foo/bar/index.php"
024- --> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : string(53) "/this/is/a/very/deep/directory/structure/and/file.php"
025- --> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php?lots=1&of=2&parameters=3&too=4&here=5 : string(53) "/this/is/a/very/deep/directory/structure/and/file.php"
026- --> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/ : string(45) "/this/is/a/very/deep/directory/structure/and/"
027- --> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : string(53) "/this/is/a/very/deep/directory/structure/and/file.php"
028- --> http://www.php.net:80/this/../a/../deep/directory : string(28) "/this/../a/../deep/directory"
029- --> http://www.php.net:80/this/../a/../deep/directory/ : string(29) "/this/../a/../deep/directory/"
030- --> http://www.php.net:80/this/is/a/very/deep/directory/../file.php : string(42) "/this/is/a/very/deep/directory/../file.php"
031- --> http://www.php.net:80/index.php : string(10) "/index.php"
032- --> http://www.php.net:80/index.php? : string(10) "/index.php"
033- --> http://www.php.net:80/#foo : string(1) "/"
034- --> http://www.php.net:80/?# : string(1) "/"
035- --> http://www.php.net:80/?test=1 : string(1) "/"
036- --> http://www.php.net/?test=1& : string(1) "/"
037- --> http://www.php.net:80/?& : string(1) "/"
038- --> http://www.php.net:80/index.php?test=1& : string(10) "/index.php"
039- --> http://www.php.net/index.php?& : string(10) "/index.php"
040- --> http://www.php.net:80/index.php?foo& : string(10) "/index.php"
041- --> http://www.php.net/index.php?&foo : string(10) "/index.php"
042- --> http://www.php.net:80/index.php?test=1&test2=char&test3=mixesCI : string(10) "/index.php"
043- --> www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php"
044- --> http://secret@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php"
045- --> http://secret:@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php"
046- --> http://:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php"
047- --> http://secret:hideout@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php"
048- --> http://secret@hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php"
049- --> http://secret:hid:out@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php"
050- --> nntp://news.php.net : NULL
051- --> ftp://ftp.gnu.org/gnu/glic/glibc.tar.gz : string(22) "/gnu/glic/glibc.tar.gz"
052- --> zlib:http://foo@bar : string(14) "http://foo@bar"
053- --> zlib:filename.txt : string(12) "filename.txt"
054- --> zlib:/path/to/my/file/file.txt : string(25) "/path/to/my/file/file.txt"
055- --> foo://foo@bar : NULL
056- --> mailto:me@mydomain.com : string(15) "me@mydomain.com"
057- --> /foo.php?a=b&c=d : string(8) "/foo.php"
058- --> foo.php?a=b&c=d : string(7) "foo.php"
059- --> http://user:passwd@www.example.com:8080?bar=1&boom=0 : NULL
060- --> file:///path/to/file : string(13) "/path/to/file"
061- --> file://path/to/file : string(8) "/to/file"
062- --> file:/path/to/file : string(13) "/path/to/file"
063- --> http://1.2.3.4:/abc.asp?a=1&b=2 : string(8) "/abc.asp"
064- --> http://foo.com#bar : NULL
065- --> scheme: : NULL
066- --> foo+bar://baz@bang/bla : string(4) "/bla"
067- --> gg:9130731 : string(7) "9130731"
068- --> http://user:@pass@host/path?argument?value#etc : string(5) "/path"
069- --> http://10.10.10.10/:80 : string(4) "/:80"
070- --> http://x:? : NULL
071- --> x:blah.com : string(8) "blah.com"
072- --> x:/blah.com : string(9) "/blah.com"
073- --> x://::abc/? : bool(false)
074- --> http://::? : NULL
075- --> http://::# : NULL
076- --> x://::6.5 : NULL
077- --> http://?:/ : bool(false)
078- --> http://@?:/ : bool(false)
079- --> file:///: : string(2) "/:"
080- --> file:///a:/ : string(3) "a:/"
081- --> file:///ab:/ : string(5) "/ab:/"
082- --> file:///a:/ : string(3) "a:/"
083- --> file:///@:/ : string(3) "@:/"
084- --> file:///:80/ : string(5) "/:80/"
085- --> [] : string(2) "[]"
086- --> http://[x:80]/ : string(1) "/"
087- --> : string(0) ""
088- --> / : string(1) "/"
089- --> /rest/Users?filter={"id":"123"} : string(11) "/rest/Users"
090- --> http:///blah.com : bool(false)
091- --> http://:80 : bool(false)
092- --> http://user@:80 : bool(false)
093- --> http://user:pass@:80 : bool(false)
094- --> http://: : bool(false)
095- --> http://@/ : bool(false)
096- --> http://@:/ : bool(false)
097- --> http://:/ : bool(false)
098- --> http://? : bool(false)
099- --> http://# : bool(false)
100- --> http://?: : bool(false)
101- --> http://:? : bool(false)
102- --> http://blah.com:123456 : bool(false)
103- --> http://blah.com:abcdef : bool(false)
104- Done