X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fsend_file_006.phpt;h=c3eceb01e6fd328ab543fb254326e57d82b9e5ca;hp=d3169e8a24dc51d6c80b72bf03a47b828c902a5a;hb=99b27b9e44043e5ff1bd53f2a1e3b007cfd16a42;hpb=4a1c5914eccd82e0936f35f0804a9e35ed632f83 diff --git a/tests/send_file_006.phpt b/tests/send_file_006.phpt index d3169e8..c3eceb0 100644 --- a/tests/send_file_006.phpt +++ b/tests/send_file_006.phpt @@ -1,28 +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: text/html +Status: 206%s X-Powered-By: PHP/%s Accept-Ranges: bytes +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--