projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
- add note about SSL connect errors on windows due to LIB/DLL mismatches
[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
checkext('session');
8
?>
9
--ENV--
10
HTTP_HOST=localhost
11
--FILE--
12
<?php
13
include 'log.inc';
14
log_prepare(_REDIR_LOG);
15
session_start();
16
http_redirect('redirect', array('a' => 1), true);
17
?>
18
--EXPECTF--
19
Status: 302
20
Content-type: text/html
21
X-Powered-By: PHP/%s
22
Set-Cookie: PHPSESSID=%s; path=/
23
Expires: %s
24
Cache-Control: %s
25
Pragma: %s
26
Location: http://localhost/redirect?a=1&PHPSESSID=%s