projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
add test file to package.xml
[m6w6/ext-http]
/
tests
/
send_file_006.phpt
diff --git
a/tests/send_file_006.phpt
b/tests/send_file_006.phpt
index e778805bac310384bf0c9678cc4e653e33b67c35..1b9331969a1608e1b41c24c0c7d98b3154c0a9aa 100644
(file)
--- a/
tests/send_file_006.phpt
+++ b/
tests/send_file_006.phpt
@@
-4,6
+4,7
@@
http_send_file() first/last byte range
<?php
include 'skip.inc';
checkcgi();
<?php
include 'skip.inc';
checkcgi();
+checkmin("5.2.5");
?>
--ENV--
HTTP_RANGE=bytes=0-0,-1
?>
--ENV--
HTTP_RANGE=bytes=0-0,-1
@@
-13,7
+14,7
@@
http_send_content_type("text/plain");
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-Type: multipart/byteranges; boundary=%d.%d
X-Powered-By: PHP/%s
Accept-Ranges: bytes
Content-Type: multipart/byteranges; boundary=%d.%d