projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- add flush() to encoding stream (filters)
[m6w6/ext-http]
/
tests
/
redirect_001.phpt
diff --git
a/tests/redirect_001.phpt
b/tests/redirect_001.phpt
index de6795f649e972470e30694f9dd86b38ea459a14..f85d98f4d70caacb00aafd335af18829c28da193 100644
(file)
--- a/
tests/redirect_001.phpt
+++ b/
tests/redirect_001.phpt
@@
-4,14
+4,19
@@
http_redirect() with params
<?php
include 'skip.inc';
checkcgi();
<?php
include 'skip.inc';
checkcgi();
+checkmax(5.0);
?>
?>
+--ENV--
+HTTP_HOST=localhost
--FILE--
<?php
--FILE--
<?php
+include 'log.inc';
+log_prepare(_REDIR_LOG);
http_redirect('redirect', array('a' => 1, 'b' => 2));
?>
--EXPECTF--
Status: 302
http_redirect('redirect', array('a' => 1, 'b' => 2));
?>
--EXPECTF--
Status: 302
-Content-type:
text/html
+Content-type:
%s
X-Powered-By: PHP/%s
Location: http://localhost/redirect?a=1&b=2
X-Powered-By: PHP/%s
Location: http://localhost/redirect?a=1&b=2