f85d98f4d70caacb00aafd335af18829c28da193
[m6w6/ext-http] / tests / redirect_001.phpt
1 --TEST--
2 http_redirect() with params
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 checkmax(5.0);
8 ?>
9 --ENV--
10 HTTP_HOST=localhost
11 --FILE--
12 <?php
13 include 'log.inc';
14 log_prepare(_REDIR_LOG);
15 http_redirect('redirect', array('a' => 1, 'b' => 2));
16 ?>
17 --EXPECTF--
18 Status: 302
19 Content-type: %s
20 X-Powered-By: PHP/%s
21 Location: http://localhost/redirect?a=1&b=2
22
23 Redirecting to <a href="http://localhost/redirect?a=1&b=2">http://localhost/redirect?a=1&b=2</a>.
24