move to PHP-7.4 as current GA
[m6w6/ext-http] / tests / gh-issue47.phpt
1 --TEST--
2 Null pointer deref in sanitize_value
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 ?>
7 --FILE--
8 <?php
9 echo "Test\n";
10
11 $urls = array(
12 "",
13 "? = ="
14 );
15
16 $url0=new http\Url($urls[0], null, http\Url::FROM_ENV);
17 $url1=$url0->mod($urls[1]);
18
19 echo $url1;
20
21 ?>
22
23 ===DONE===
24 --EXPECTF--
25 Test
26 http://%s/
27 ===DONE===