Test: /ext/standard/tests/url/parse_url_basic_003.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_003.php:11
002+ Stack trace:
003+ #0 {main}
004+ thrown in %s/parse_url_basic_003.php on line 11
001- --> 64.246.30.37 : NULL
002- --> http://64.246.30.37 : string(12) "64.246.30.37"
003- --> http://64.246.30.37/ : string(12) "64.246.30.37"
004- --> 64.246.30.37/ : NULL
005- --> 64.246.30.37:80/ : string(12) "64.246.30.37"
006- --> php.net : NULL
007- --> php.net/ : NULL
008- --> http://php.net : string(7) "php.net"
009- --> http://php.net/ : string(7) "php.net"
010- --> www.php.net : NULL
011- --> www.php.net/ : NULL
012- --> http://www.php.net : string(11) "www.php.net"
013- --> http://www.php.net/ : string(11) "www.php.net"
014- --> www.php.net:80 : string(11) "www.php.net"
015- --> http://www.php.net:80 : string(11) "www.php.net"
016- --> http://www.php.net:80/ : string(11) "www.php.net"
017- --> http://www.php.net/index.php : string(11) "www.php.net"
018- --> www.php.net/? : NULL
019- --> www.php.net:80/? : string(11) "www.php.net"
020- --> http://www.php.net/? : string(11) "www.php.net"
021- --> http://www.php.net:80/? : string(11) "www.php.net"
022- --> http://www.php.net:80/index.php : string(11) "www.php.net"
023- --> http://www.php.net:80/foo/bar/index.php : string(11) "www.php.net"
024- --> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : string(11) "www.php.net"
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(11) "www.php.net"
026- --> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/ : string(11) "www.php.net"
027- --> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php : string(11) "www.php.net"
028- --> http://www.php.net:80/this/../a/../deep/directory : string(11) "www.php.net"
029- --> http://www.php.net:80/this/../a/../deep/directory/ : string(11) "www.php.net"
030- --> http://www.php.net:80/this/is/a/very/deep/directory/../file.php : string(11) "www.php.net"
031- --> http://www.php.net:80/index.php : string(11) "www.php.net"
032- --> http://www.php.net:80/index.php? : string(11) "www.php.net"
033- --> http://www.php.net:80/#foo : string(11) "www.php.net"
034- --> http://www.php.net:80/?# : string(11) "www.php.net"
035- --> http://www.php.net:80/?test=1 : string(11) "www.php.net"
036- --> http://www.php.net/?test=1& : string(11) "www.php.net"
037- --> http://www.php.net:80/?& : string(11) "www.php.net"
038- --> http://www.php.net:80/index.php?test=1& : string(11) "www.php.net"
039- --> http://www.php.net/index.php?& : string(11) "www.php.net"
040- --> http://www.php.net:80/index.php?foo& : string(11) "www.php.net"
041- --> http://www.php.net/index.php?&foo : string(11) "www.php.net"
042- --> http://www.php.net:80/index.php?test=1&test2=char&test3=mixesCI : string(11) "www.php.net"
043- --> www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(11) "www.php.net"
044- --> http://secret@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(11) "www.php.net"
045- --> http://secret:@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(11) "www.php.net"
046- --> http://:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(11) "www.php.net"
047- --> http://secret:hideout@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(11) "www.php.net"
048- --> http://secret@hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(11) "www.php.net"
049- --> http://secret:hid:out@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(11) "www.php.net"
050- --> nntp://news.php.net : string(12) "news.php.net"
051- --> ftp://ftp.gnu.org/gnu/glic/glibc.tar.gz : string(11) "ftp.gnu.org"
052- --> zlib:http://foo@bar : NULL
053- --> zlib:filename.txt : NULL
054- --> zlib:/path/to/my/file/file.txt : NULL
055- --> foo://foo@bar : string(3) "bar"
056- --> mailto:me@mydomain.com : NULL
057- --> /foo.php?a=b&c=d : NULL
058- --> foo.php?a=b&c=d : NULL
059- --> http://user:passwd@www.example.com:8080?bar=1&boom=0 : string(15) "www.example.com"
060- --> file:///path/to/file : NULL
061- --> file://path/to/file : string(4) "path"
062- --> file:/path/to/file : NULL
063- --> http://1.2.3.4:/abc.asp?a=1&b=2 : string(7) "1.2.3.4"
064- --> http://foo.com#bar : string(7) "foo.com"
065- --> scheme: : NULL
066- --> foo+bar://baz@bang/bla : string(4) "bang"
067- --> gg:9130731 : NULL
068- --> http://user:@pass@host/path?argument?value#etc : string(4) "host"
069- --> http://10.10.10.10/:80 : string(11) "10.10.10.10"
070- --> http://x:? : string(1) "x"
071- --> x:blah.com : NULL
072- --> x:/blah.com : NULL
073- --> x://::abc/? : bool(false)
074- --> http://::? : string(1) ":"
075- --> http://::# : string(1) ":"
076- --> x://::6.5 : string(1) ":"
077- --> http://?:/ : bool(false)
078- --> http://@?:/ : bool(false)
079- --> file:///: : NULL
080- --> file:///a:/ : NULL
081- --> file:///ab:/ : NULL
082- --> file:///a:/ : NULL
083- --> file:///@:/ : NULL
084- --> file:///:80/ : NULL
085- --> [] : NULL
086- --> http://[x:80]/ : string(6) "[x:80]"
087- --> : NULL
088- --> / : NULL
089- --> /rest/Users?filter={"id":"123"} : NULL
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