projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
- attempt to fix bug #8872 (build fails --without-http-zlib-compression)
[m6w6/ext-http]
/
tests
/
redirect_013.phpt
1
--TEST--
2
http_redirect() permanent
3
--SKIPIF--
4
<?php
5
include 'skip.inc';
6
checkcgi();
7
checkmin(5.1);
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
X-Powered-By: PHP/%s
20
Location: http://localhost/redirect
21
Content-type: %s
22
23
Redirecting to <a href="http://localhost/redirect">http://localhost/redirect</a>.
24