projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
release 1.6.2
[m6w6/ext-http]
/
tests
/
send_file_005.phpt
diff --git
a/tests/send_file_005.phpt
b/tests/send_file_005.phpt
index b5287a37ac609cbd7dbf2ed1f5c6529abd51c286..51f6b8fed2d06c216259cc81f6a65fb8c5d5a448 100644
(file)
--- a/
tests/send_file_005.phpt
+++ b/
tests/send_file_005.phpt
@@
-4,15
+4,17
@@
http_send_file() multiple ranges
<?php
include 'skip.inc';
checkcgi();
<?php
include 'skip.inc';
checkcgi();
+checkmin("5.2.5");
?>
?>
+--ENV--
+HTTP_RANGE=bytes=0-3, 4-5,9-11
--FILE--
<?php
--FILE--
<?php
-$_SERVER['HTTP_RANGE'] = 'bytes=0-3, 4-5,9-11';
http_send_content_type('text/plain');
http_send_file('data.txt');
?>
--EXPECTF--
http_send_content_type('text/plain');
http_send_file('data.txt');
?>
--EXPECTF--
-Status: 206
+Status: 206
%s
X-Powered-By: PHP/%s
Accept-Ranges: bytes
Content-Type: multipart/byteranges; boundary=%d.%d
X-Powered-By: PHP/%s
Accept-Ranges: bytes
Content-Type: multipart/byteranges; boundary=%d.%d