projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
upgrade test suite to 5.3
[m6w6/ext-http]
/
tests
/
send_ifrange_001.phpt
diff --git
a/tests/send_ifrange_001.phpt
b/tests/send_ifrange_001.phpt
index 4328226dd000bbb8902b8ca93831762458eab912..b4aae05da53a79682b48eaf9b593a08ddf6eb653 100644
(file)
--- a/
tests/send_ifrange_001.phpt
+++ b/
tests/send_ifrange_001.phpt
@@
-4,16
+4,18
@@
http_send() If-Range
<?php
include 'skip.inc';
checkcgi();
<?php
include 'skip.inc';
checkcgi();
+checkmin(5.3);
?>
?>
+--ENV--
+HTTP_RANGE=bytes=0-1
+HTTP_IF_RANGE="abc"
--FILE--
<?php
--FILE--
<?php
-$_SERVER['HTTP_RANGE'] = 'bytes=0-1';
-$_SERVER['HTTP_IF_RANGE'] = '"abc"';
http_cache_etag('abc');
http_send_file(__FILE__);
?>
--EXPECTF--
http_cache_etag('abc');
http_send_file(__FILE__);
?>
--EXPECTF--
-Status: 206
+Status: 206
%s
X-Powered-By: %s
Cache-Control: private, must-revalidate, max-age=0
ETag: "abc"
X-Powered-By: %s
Cache-Control: private, must-revalidate, max-age=0
ETag: "abc"