PHP 7.4: ulong->unsigned long, uint->uint32_t
[m6w6/ext-http] / tests / gh-issue63.phpt
1 --TEST--
2 gh issue #63: Url::mod() breaks query strings containing plus-notation spaces in the input URL
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 ?>
7 --FILE--
8 <?php
9 echo "Test\n";
10
11 use http\QueryString;
12 use http\Url;
13
14 $url = 'http://example.com/?param=has+spaces';
15 $query = ['foo' => 'bar'];
16 $parts['query'] = new QueryString($query);
17 echo (new Url($url, null, Url::STDFLAGS))->mod($parts)->toString();
18
19 ?>
20
21 ===DONE===
22 --EXPECTF--
23 Test
24 http://example.com/?param=has%20spaces&foo=bar
25 ===DONE===