X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fsend_file_006.phpt;h=925473e6fa31fe1dab368dca103475f991d5e627;hp=fdca630c34a20e4ca52a94eb1edf80d3ce0ba5b0;hb=db5299a8b005bf625b4e34666b48e6cce8990482;hpb=96d059e9210a6677427392d615bc42ab38b3b432 diff --git a/tests/send_file_006.phpt b/tests/send_file_006.phpt index fdca630..925473e 100644 --- a/tests/send_file_006.phpt +++ b/tests/send_file_006.phpt @@ -1,30 +1,34 @@ --TEST-- -http_send_file() syntactically invalid range +http_send_file() first/last byte range --SKIPIF-- --ENV-- -HTTP_RANGE=bytes=xxx +HTTP_RANGE=bytes=0-0,-1 --FILE-- --EXPECTF-- -Content-type: %s +Status: 206 X-Powered-By: PHP/%s Accept-Ranges: bytes -Content-Length: 1010 +Content-Type: multipart/byteranges; boundary=%d.%d -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 + +--%d.%d +Content-Type: text/plain +Content-Range: bytes 0-0/1010 + +0 +--%d.%d +Content-Type: text/plain +Content-Range: bytes 1009-1009/1010 + + + +--%d.%d--