* renaming tests
[m6w6/ext-http] / tests / send_file_003.phpt
diff --git a/tests/send_file_003.phpt b/tests/send_file_003.phpt
new file mode 100644 (file)
index 0000000..cf3d0dc
--- /dev/null
@@ -0,0 +1,20 @@
+--TEST--
+http_send_file() NIL-NUM range
+--SKIPIF--
+<?php 
+include 'skip.inc';
+?>
+--ENV--
+HTTP_RANGE=bytes=-9
+--FILE--
+<?php
+http_send_file('data.txt');
+?>
+--EXPECTF--
+Status: 206
+Content-type: text/html
+X-Powered-By: PHP/%s
+Accept-Ranges: bytes
+Content-Range: bytes 1001-1009/1010
+
+23456789