projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
- doc fixes
[m6w6/ext-http]
/
tests
/
redirect_002.phpt
1
--TEST--
2
http_redirect() with session
3
--SKIPIF--
4
<?php
5
include 'skip.inc';
6
checkcgi();
7
checkmax(5.0);
8
checkext('session');
9
?>
10
--ENV--
11
HTTP_HOST=localhost
12
--FILE--
13
<?php
14
include 'log.inc';
15
log_prepare(_REDIR_LOG);
16
session_start();
17
http_redirect('redirect', array('a' => 1), true);
18
?>
19
--EXPECTF--
20
Status: 302
21
Content-type: %s
22
X-Powered-By: PHP/%s
23
Set-Cookie: PHPSESSID=%s; path=/
24
Expires: %s
25
Cache-Control: %s
26
Pragma: %s
27
Location: http://localhost/redirect?a=1&PHPSESSID=%s