X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fsend_data_008.phpt;h=a3f196232a6ff74aaeb66c6c6b260f5a5840432a;hb=378dd0f912b3139f1a797cf19e7c4eb88d33f141;hp=f5d4e85aac8838f2589f9da41e8a3001edc076b8;hpb=96d059e9210a6677427392d615bc42ab38b3b432;p=m6w6%2Fext-http diff --git a/tests/send_data_008.phpt b/tests/send_data_008.phpt index f5d4e85..a3f1962 100644 --- a/tests/send_data_008.phpt +++ b/tests/send_data_008.phpt @@ -1,20 +1,33 @@ --TEST-- -http_send_data() HTTP_SENDBUF_SIZE long string +http_send_data() multiple ranges --SKIPIF-- +--ENV-- +HTTP_RANGE=bytes=0-0,-1 --FILE-- --EXPECTF-- -Content-type: %s +Status: 206 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--