projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix hang in SAPI deactivate when body is 4096 bytes or more
[m6w6/ext-http]
/
tests
/
send_file_007.phpt
diff --git
a/tests/send_file_007.phpt
b/tests/send_file_007.phpt
index a33754630cab0ef9792c1f466a3f92828f34e22b..09f11671d416f9b55843e641944253d3584f2fca 100644
(file)
--- a/
tests/send_file_007.phpt
+++ b/
tests/send_file_007.phpt
@@
-1,17
+1,23
@@
--TEST--
--TEST--
-http_send_file()
oversized
range
+http_send_file()
NIL-NIL
range
--SKIPIF--
<?php
include 'skip.inc';
checkcgi();
--SKIPIF--
<?php
include 'skip.inc';
checkcgi();
+checkmin("5.2.5");
?>
--ENV--
?>
--ENV--
-HTTP_RANGE=bytes=
-1111
+HTTP_RANGE=bytes=
0-0
--FILE--
<?php
http_send_file('data.txt');
?>
--EXPECTF--
--FILE--
<?php
http_send_file('data.txt');
?>
--EXPECTF--
-Status: 416
-Content-type: text/html
+Status: 206%s
X-Powered-By: PHP/%s
X-Powered-By: PHP/%s
+Accept-Ranges: bytes
+Content-Range: bytes 0-0/1010
+Content-Length: 1
+Content-type: %s
+
+0