xref: /PHP-8.2/ext/standard/tests/url/bug69976.phpt (revision e49922d3)
1--TEST--
2Bug #69976 (Unable to parse "all" urls with colon char)
3--FILE--
4<?php
5var_dump(parse_url("/busca/?fq=B:20001"));
6var_dump(parse_url("/busca/?fq=B:200013"));
7var_dump(parse_url("/busca/?fq=home:01234"));
8var_dump(parse_url("/busca/?fq=home:012345"));
9?>
10--EXPECT--
11array(2) {
12  ["path"]=>
13  string(7) "/busca/"
14  ["query"]=>
15  string(10) "fq=B:20001"
16}
17array(2) {
18  ["path"]=>
19  string(7) "/busca/"
20  ["query"]=>
21  string(11) "fq=B:200013"
22}
23array(2) {
24  ["path"]=>
25  string(7) "/busca/"
26  ["query"]=>
27  string(13) "fq=home:01234"
28}
29array(2) {
30  ["path"]=>
31  string(7) "/busca/"
32  ["query"]=>
33  string(14) "fq=home:012345"
34}
35