1 --> 64.246.30.37 : string(12) "64.246.30.37"
2 --> http://64.246.30.37 : NULL
3 --> http://64.246.30.37/ : string(1) "/"
4 --> 64.246.30.37/ : string(13) "64.246.30.37/"
5 --> 64.246.30.37:80/ : string(1) "/"
6 --> php.net : string(7) "php.net"
7 --> php.net/ : string(8) "php.net/"
8 --> http://php.net : NULL
9 --> http://php.net/ : string(1) "/"
10 --> www.php.net : string(11) "www.php.net"
11 --> www.php.net/ : string(12) "www.php.net/"
12 --> http://www.php.net : NULL
13 --> http://www.php.net/ : string(1) "/"
14 --> www.php.net:80 : NULL
15 --> http://www.php.net:80 : NULL
16 --> http://www.php.net:80/ : string(1) "/"
17 --> http://www.php.net/index.php : string(10) "/index.php"
18 --> www.php.net/? : string(12) "www.php.net/"
19 --> www.php.net:80/? : string(1) "/"
20 --> http://www.php.net/? : string(1) "/"
21 --> http://www.php.net:80/? : string(1) "/"
22 --> http://www.php.net:80/index.php : string(10) "/index.php"
23 --> http://www.php.net:80/foo/bar/index.php : string(18) "/foo/bar/index.php"
24 --> 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"
25 --> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php?lots=1&of=2¶meters=3&too=4&here=5 : string(53) "/this/is/a/very/deep/directory/structure/and/file.php"
26 --> http://www.php.net:80/this/is/a/very/deep/directory/structure/and/ : string(45) "/this/is/a/very/deep/directory/structure/and/"
27 --> 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"
28 --> http://www.php.net:80/this/../a/../deep/directory : string(28) "/this/../a/../deep/directory"
29 --> http://www.php.net:80/this/../a/../deep/directory/ : string(29) "/this/../a/../deep/directory/"
30 --> http://www.php.net:80/this/is/a/very/deep/directory/../file.php : string(42) "/this/is/a/very/deep/directory/../file.php"
31 --> http://www.php.net:80/index.php : string(10) "/index.php"
32 --> http://www.php.net:80/index.php? : string(10) "/index.php"
33 --> http://www.php.net:80/#foo : string(1) "/"
34 --> http://www.php.net:80/?# : string(1) "/"
35 --> http://www.php.net:80/?test=1 : string(1) "/"
36 --> http://www.php.net/?test=1& : string(1) "/"
37 --> http://www.php.net:80/?& : string(1) "/"
38 --> http://www.php.net:80/index.php?test=1& : string(10) "/index.php"
39 --> http://www.php.net/index.php?& : string(10) "/index.php"
40 --> http://www.php.net:80/index.php?foo& : string(10) "/index.php"
41 --> http://www.php.net/index.php?&foo : string(10) "/index.php"
42 --> http://www.php.net:80/index.php?test=1&test2=char&test3=mixesCI : string(10) "/index.php"
43 --> www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php"
44 --> http://secret@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php"
45 --> http://secret:@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php"
46 --> http://:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php"
47 --> http://secret:hideout@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php"
48 --> http://secret@hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php"
49 --> http://secret:hid:out@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(10) "/index.php"
50 --> nntp://news.php.net : NULL
51 --> ftp://ftp.gnu.org/gnu/glic/glibc.tar.gz : string(22) "/gnu/glic/glibc.tar.gz"
52 --> zlib:http://foo@bar : string(14) "http://foo@bar"
53 --> zlib:filename.txt : string(12) "filename.txt"
54 --> zlib:/path/to/my/file/file.txt : string(25) "/path/to/my/file/file.txt"
55 --> foo://foo@bar : NULL
56 --> mailto:me@mydomain.com : string(15) "me@mydomain.com"
57 --> /foo.php?a=b&c=d : string(8) "/foo.php"
58 --> foo.php?a=b&c=d : string(7) "foo.php"
59 --> http://user:passwd@www.example.com:8080?bar=1&boom=0 : NULL
60 --> file:///path/to/file : string(13) "/path/to/file"
61 --> file://path/to/file : string(8) "/to/file"
62 --> file:/path/to/file : string(13) "/path/to/file"
63 --> http://1.2.3.4:/abc.asp?a=1&b=2 : string(8) "/abc.asp"
64 --> http://foo.com#bar : NULL
66 --> foo+bar://baz@bang/bla : string(4) "/bla"
67 --> gg:9130731 : string(7) "9130731"
68 --> http://user:@pass@host/path?argument?value#etc : string(5) "/path"
69 --> http://10.10.10.10/:80 : string(4) "/:80"
71 --> x:blah.com : string(8) "blah.com"
72 --> x:/blah.com : string(9) "/blah.com"
73 --> x://::abc/? : bool(false)
76 --> http://?:/ : string(1) "/"
77 --> http://@?:/ : string(1) "/"
78 --> file:///: : string(2) "/:"
79 --> file:///a:/ : string(3) "a:/"
80 --> file:///ab:/ : string(5) "/ab:/"
81 --> file:///a:/ : string(3) "a:/"
82 --> file:///@:/ : string(3) "@:/"
83 --> file:///:80/ : string(5) "/:80/"
84 --> [] : string(2) "[]"
85 --> http://[x:80]/ : string(1) "/"
88 --> http:///blah.com : bool(false)
89 --> http://:80 : bool(false)
90 --> http://user@:80 : bool(false)
91 --> http://user:pass@:80 : bool(false)
92 --> http://: : bool(false)
93 --> http://@/ : bool(false)
94 --> http://@:/ : bool(false)
95 --> http://:/ : bool(false)
96 --> http://? : bool(false)
97 --> http://?: : bool(false)
98 --> http://:? : bool(false)
99 --> http://blah.com:123456 : bool(false)
100 --> http://blah.com:abcdef : bool(false)