e03b32fafb5d84ab84875b03f55815aab9a47509
[m6w6/ext-http] / tests / gh-issue63.phpt
1 --TEST--
2 segfault with Client::setDebug and Client::dequeue()
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 skip_client_test();
7 skip_online_test();
8 ?>
9 --FILE--
10 <?php
11 echo "Test\n";
12
13 use http\QueryString;
14 use http\Url;
15
16 $url = 'http://example.com/?param=has+spaces';
17 $query = ['foo' => 'bar'];
18 $parts['query'] = new QueryString($query);
19 echo (new Url($url, null, Url::STDFLAGS))->mod($parts)->toString();
20
21 ?>
22
23 ===DONE===
24 --EXPECTF--
25 Test
26 http://example.com/?param=has%20spaces&foo=bar
27 ===DONE===