projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
prepare 1.7.2 release
[m6w6/ext-http]
/
tests
/
send_file_009.phpt
diff --git
a/tests/send_file_009.phpt
b/tests/send_file_009.phpt
index 3215b0393a5ecc22183a2ee66c3610c9bd1da0b4..2d360b005b4bc58f76526eb9b232726e69690d63 100644
(file)
--- a/
tests/send_file_009.phpt
+++ b/
tests/send_file_009.phpt
@@
-4,15
+4,16
@@
http_send_file() NUM-NUM range
<?php
include 'skip.inc';
checkcgi();
<?php
include 'skip.inc';
checkcgi();
-checkmin(
5.1
);
+checkmin(
"5.2.5"
);
?>
?>
+--ENV--
+HTTP_RANGE=bytes=5-9
--FILE--
<?php
--FILE--
<?php
-$_SERVER['HTTP_RANGE'] = 'bytes=5-9';
http_send_file('data.txt');
?>
--EXPECTF--
http_send_file('data.txt');
?>
--EXPECTF--
-Status: 206
+Status: 206
%s
X-Powered-By: PHP/%s
Accept-Ranges: bytes
Content-Range: bytes 5-9/1010
X-Powered-By: PHP/%s
Accept-Ranges: bytes
Content-Range: bytes 5-9/1010