projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
JFC
[m6w6/ext-http]
/
tests
/
send_file_013.phpt
diff --git
a/tests/send_file_013.phpt
b/tests/send_file_013.phpt
index 1315488102b109f7077469a72c3cf02089f3c674..cd3f3cba9cb9447aec8b3105bb247c0823934d09 100644
(file)
--- a/
tests/send_file_013.phpt
+++ b/
tests/send_file_013.phpt
@@
-4,14
+4,16
@@
http_send_file() oversized range
<?php
include 'skip.inc';
checkcgi();
<?php
include 'skip.inc';
checkcgi();
-checkmin(
5.1
);
+checkmin(
"5.2.5"
);
?>
?>
+--ENV--
+HTTP_RANGE=bytes=-1111
--FILE--
<?php
--FILE--
<?php
-$_SERVER['HTTP_RANGE'] = 'bytes=-1111';
http_send_file('data.txt');
?>
--EXPECTF--
Status: 416
X-Powered-By: PHP/%s
http_send_file('data.txt');
?>
--EXPECTF--
Status: 416
X-Powered-By: PHP/%s
+Accept-Ranges: bytes
Content-type: %s
Content-type: %s