projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
allow setting of the message class used by HttpRequest
[m6w6/ext-http]
/
tests
/
send_file_010.phpt
diff --git
a/tests/send_file_010.phpt
b/tests/send_file_010.phpt
index 8ee6eac645a378f944c0ed83383197244a4d0031..d0f4318e2fceb99e681daf539cd34bb4918617df 100644
(file)
--- a/
tests/send_file_010.phpt
+++ b/
tests/send_file_010.phpt
@@
-4,15
+4,16
@@
http_send_file() NIL-NUM range
<?php
include 'skip.inc';
checkcgi();
<?php
include 'skip.inc';
checkcgi();
-checkmin(
5.1
);
+checkmin(
"5.2.5"
);
?>
?>
+--ENV--
+HTTP_RANGE=bytes=-9
--FILE--
<?php
--FILE--
<?php
-$_SERVER['HTTP_RANGE'] = 'bytes=-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 1001-1009/1010
X-Powered-By: PHP/%s
Accept-Ranges: bytes
Content-Range: bytes 1001-1009/1010