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_data_008.phpt
diff --git
a/tests/send_data_008.phpt
b/tests/send_data_008.phpt
index f5d4e85aac8838f2589f9da41e8a3001edc076b8..3a695636cb7601c2b94cf45d5801d95e43f9b0b4 100644
(file)
--- a/
tests/send_data_008.phpt
+++ b/
tests/send_data_008.phpt
@@
-1,20
+1,33
@@
--TEST--
--TEST--
-http_send_data()
HTTP_SENDBUF_SIZE long string
+http_send_data()
multiple ranges
--SKIPIF--
<?php
include 'skip.inc';
checkcgi();
--SKIPIF--
<?php
include 'skip.inc';
checkcgi();
-checkm
ax(5.0
);
+checkm
in("5.2.5"
);
?>
?>
+--ENV--
+HTTP_RANGE=bytes=0-0,-1
--FILE--
<?php
--FILE--
<?php
-http_
throttle(0.01, 1
);
-http_send_data(
'00000000000000000000'
);
+http_
send_content_type('text/plain'
);
+http_send_data(
"01"
);
?>
--EXPECTF--
?>
--EXPECTF--
-
Content-type:
%s
+
Status: 206
%s
X-Powered-By: PHP/%s
Accept-Ranges: bytes
X-Powered-By: PHP/%s
Accept-Ranges: bytes
-Content-
Length: 20
+Content-
Type: multipart/byteranges; boundary=%d.%d
-00000000000000000000
+
+--%d.%d
+Content-Type: text/plain
+Content-Range: bytes 0-0/2
+
+0
+--%d.%d
+Content-Type: text/plain
+Content-Range: bytes 1-1/2
+
+1
+--%d.%d--