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