- fix previous commit and adjust tests
[m6w6/ext-http] / tests / redirect_003.phpt
1 --TEST--
2 http_redirect() permanent
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 ?>
8 --ENV--
9 HTTP_HOST=localhost
10 --FILE--
11 <?php
12 include 'log.inc';
13 log_prepare(_REDIR_LOG);
14 http_redirect('redirect', null, false, HTTP_REDIRECT_PERM);
15 ?>
16 --EXPECTF--
17 Status: 301
18 Content-type: text/html
19 X-Powered-By: PHP/%s
20 Location: http://localhost/redirect
21
22 Redirecting to <a href="http://localhost/redirect">http://localhost/redirect</a>.
23