projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
This commit was manufactured by cvs2svn to create tag 'RELEASE_0_23_0'.
[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