X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fsend_file_006.phpt;h=1b9331969a1608e1b41c24c0c7d98b3154c0a9aa;hp=10f170a2f44583b19a4931f831424a8925847875;hb=1f6593c5096d41f146d87799f7ca3e3d4446247a;hpb=f475c8d0d6c24a597cef6e6a441e1fc53578cb84 diff --git a/tests/send_file_006.phpt b/tests/send_file_006.phpt index 10f170a..1b93319 100644 --- a/tests/send_file_006.phpt +++ b/tests/send_file_006.phpt @@ -1,29 +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-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--