projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- wrap request exceptions into one request pool exception
[m6w6/ext-http]
/
tests
/
redirect_002.phpt
diff --git
a/tests/redirect_002.phpt
b/tests/redirect_002.phpt
index da77696ffe9155acdbd6bc67fdbb10a3c69ccd7f..29985f3507375eb3f666f36067f5d3f545e70fe3 100644
(file)
--- a/
tests/redirect_002.phpt
+++ b/
tests/redirect_002.phpt
@@
-4,15
+4,21
@@
http_redirect() with session
<?php
include 'skip.inc';
checkcgi();
<?php
include 'skip.inc';
checkcgi();
+checkmax(5.0);
+checkext('session');
?>
?>
+--ENV--
+HTTP_HOST=localhost
--FILE--
<?php
--FILE--
<?php
+include 'log.inc';
+log_prepare(_REDIR_LOG);
session_start();
http_redirect('redirect', array('a' => 1), true);
?>
--EXPECTF--
Status: 302
session_start();
http_redirect('redirect', array('a' => 1), true);
?>
--EXPECTF--
Status: 302
-Content-type:
text/html
+Content-type:
%s
X-Powered-By: PHP/%s
Set-Cookie: PHPSESSID=%s; path=/
Expires: %s
X-Powered-By: PHP/%s
Set-Cookie: PHPSESSID=%s; path=/
Expires: %s