6396e09e79f8178042576a4b01b7776a2906cdcb
[m6w6/ext-http] / tests / redirect_003.phpt
1 --TEST--
2 http_redirect() permanent
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', null, false, HTTP_REDIRECT_PERM);
16 ?>
17 --EXPECTF--
18 Status: 301
19 Content-type: %s
20 X-Powered-By: PHP/%s
21 Location: http://localhost/redirect
22
23 Redirecting to <a href="http://localhost/redirect">http://localhost/redirect</a>.
24