X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fsend_data_008.phpt;fp=tests%2Fsend_data_008.phpt;h=7de621d9c946f8cd1d278286b7634dee0d2b8a23;hb=ecec060bd65badb1139497b30b30cafd1161b50d;hp=0000000000000000000000000000000000000000;hpb=76e122adc1282ee43b222d5f3dbec2a11fe29ca5;p=m6w6%2Fext-http diff --git a/tests/send_data_008.phpt b/tests/send_data_008.phpt new file mode 100644 index 0000000..7de621d --- /dev/null +++ b/tests/send_data_008.phpt @@ -0,0 +1,32 @@ +--TEST-- +http_send_data() multiple ranges +--SKIPIF-- + +--ENV-- +HTTP_RANGE=bytes=0-0,-1 +--FILE-- + +--EXPECTF-- +Status: 206 +X-Powered-By: PHP/%s +Accept-Ranges: bytes +Content-Type: multipart/byteranges; boundary=%d.%d + + +--%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--