summaryrefslogtreecommitdiff
path: root/ext/standard/tests/url/bug68917.phpt
blob: 620c8f7285c1d0556446857b2f13691d0b91aa15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
Bug #68917 (parse_url fails on some partial urls)
--FILE--
<?php
print_r(parse_url('//example.org:81/hi?a=b#c=d'));
print_r(parse_url('//example.org/hi?a=b#c=d'));
?>
--EXPECT--
Array
(
    [host] => example.org
    [port] => 81
    [path] => /hi
    [query] => a=b
    [fragment] => c=d
)
Array
(
    [host] => example.org
    [path] => /hi
    [query] => a=b
    [fragment] => c=d
)