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 missing PHP closing tag
[m6w6/ext-http]
/
tests
/
send_data_001.phpt
diff --git
a/tests/send_data_001.phpt
b/tests/send_data_001.phpt
index 1cc00de3e6112dc05adf31f88b906ff6e604a7f5..21c8d5c6d1e4984177aa40ec12e387fe53d8e6c6 100644
(file)
--- a/
tests/send_data_001.phpt
+++ b/
tests/send_data_001.phpt
@@
-4,10
+4,12
@@
http_send_data() NIL-NUM range
<?php
include 'skip.inc';
checkcgi();
<?php
include 'skip.inc';
checkcgi();
+checkmin(5);
?>
?>
+--ENV--
+HTTP_RANGE=bytes=-5
--FILE--
<?php
--FILE--
<?php
-$_SERVER['HTTP_RANGE'] = 'bytes=-5';
http_send_content_type('text/plain');
http_send_data(str_repeat('123abc', 1000));
?>
http_send_content_type('text/plain');
http_send_data(str_repeat('123abc', 1000));
?>
@@
-19,4
+21,4
@@
Accept-Ranges: bytes
Content-Range: bytes 5995-5999/6000
Content-Length: 5
Content-Range: bytes 5995-5999/6000
Content-Length: 5
-23abc
\ No newline at end of file
+23abc