projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- use way less memory by not duplicating response headers and bodies
[m6w6/ext-http]
/
tests
/
send_file_004.phpt
diff --git
a/tests/send_file_004.phpt
b/tests/send_file_004.phpt
index 034c1f9688439a9df83036ecf0106aca1da3c9a6..5dcee32221c41927143cc0d478e5c0a0810b746e 100644
(file)
--- a/
tests/send_file_004.phpt
+++ b/
tests/send_file_004.phpt
@@
-4,6
+4,7
@@
http_send_file() NUM-NIL range
<?php
include 'skip.inc';
checkcgi();
<?php
include 'skip.inc';
checkcgi();
+checkmax(5.0);
?>
--ENV--
HTTP_RANGE=bytes=1000-
?>
--ENV--
HTTP_RANGE=bytes=1000-
@@
-13,9
+14,10
@@
http_send_file('data.txt');
?>
--EXPECTF--
Status: 206
?>
--EXPECTF--
Status: 206
-Content-type:
text/html
+Content-type:
%s
X-Powered-By: PHP/%s
Accept-Ranges: bytes
Content-Range: bytes 1000-1009/1010
X-Powered-By: PHP/%s
Accept-Ranges: bytes
Content-Range: bytes 1000-1009/1010
+Content-Length: 10
123456789
123456789