Possible null pointer dereference in php_http_url_mod() fixed.
[m6w6/ext-http] / tests / url004.phpt
1 --TEST--
2 url as string
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 ?>
7 --FILE--
8 <?php
9 echo "Test\n";
10
11 $u = "http://user:pass@www.example.com:8080/path/file.ext".
12 "?foo=bar&more[]=1&more[]=2#hash";
13
14 $url = new http\Url($u);
15 var_dump((string) $url == (string) new http\Url((string) $url));
16
17 ?>
18 DONE
19 --EXPECT--
20 Test
21 bool(true)
22 DONE