* renaming tests
[m6w6/ext-http] / tests / send_file_006.phpt
diff --git a/tests/send_file_006.phpt b/tests/send_file_006.phpt
new file mode 100644 (file)
index 0000000..76e45ba
--- /dev/null
@@ -0,0 +1,27 @@
+--TEST--
+http_send_file() syntactically invalid range
+--SKIPIF--
+<?php 
+include 'skip.inc';
+?>
+--ENV--
+HTTP_RANGE=bytes=xxx
+--FILE--
+<?php
+http_send_file('data.txt');
+?>
+--EXPECTF--
+Content-type: text/html
+X-Powered-By: PHP/%s
+Accept-Ranges: bytes
+
+0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789