Possible null pointer dereference in php_http_url_mod() fixed.
[m6w6/ext-http] / tests / gh-issue6.phpt
1 --TEST--
2 url - unsafe characters
3 --SKIPIF--
4 <?php include "skipif.inc"; ?>
5 --FILE--
6 <?php
7
8 echo "Test\n";
9
10 echo (new http\Url("?__utma=1152894289.1017686999.9107388726.1439222726.1494721726.1&__utmb=115739289.1.10.1437388726&__utmc=115883619&__utmx=-&__utmz=115111289.14310476.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided)&__utmv=-&__utmk=112678937"))->query;
11 echo "\n";
12 echo (new http\Url("?id={\$id}"))->query;
13 echo "\n";
14
15 ?>
16 ===DONE===
17 --EXPECT--
18 Test
19 __utma=1152894289.1017686999.9107388726.1439222726.1494721726.1&__utmb=115739289.1.10.1437388726&__utmc=115883619&__utmx=-&__utmz=115111289.14310476.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided)&__utmv=-&__utmk=112678937
20 id={$id}
21 ===DONE===