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 test file to package.xml
[m6w6/ext-http]
/
tests
/
redirect_011.phpt
diff --git
a/tests/redirect_011.phpt
b/tests/redirect_011.phpt
index fc3f3d24541a35f56cac2717965f3bfc17e27a5d..70a0262134a973b248b3d12682abca577e082d5e 100644
(file)
--- a/
tests/redirect_011.phpt
+++ b/
tests/redirect_011.phpt
@@
-4,7
+4,7
@@
http_redirect() with params
<?php
include 'skip.inc';
checkcgi();
<?php
include 'skip.inc';
checkcgi();
-checkmin(
5.1
);
+checkmin(
"5.2.5"
);
?>
--ENV--
HTTP_HOST=localhost
?>
--ENV--
HTTP_HOST=localhost
@@
-15,10
+15,10
@@
log_prepare(_REDIR_LOG);
http_redirect('redirect', array('a' => 1, 'b' => 2));
?>
--EXPECTF--
http_redirect('redirect', array('a' => 1, 'b' => 2));
?>
--EXPECTF--
-Status: 302
-X-Powered-By: PHP/%
s
+Status: 302
%s
+X-Powered-By: PHP/%
a
Location: http://localhost/redirect?a=1&b=2
Location: http://localhost/redirect?a=1&b=2
-Content-type: %
s
+Content-type: %
a
Redirecting to <a href="http://localhost/redirect?a=1&b=2">http://localhost/redirect?a=1&b=2</a>.
Redirecting to <a href="http://localhost/redirect?a=1&b=2">http://localhost/redirect?a=1&b=2</a>.