- extend & fixup test suite
[m6w6/ext-http] / tests / send_file_013.phpt
diff --git a/tests/send_file_013.phpt b/tests/send_file_013.phpt
new file mode 100644 (file)
index 0000000..e97a091
--- /dev/null
@@ -0,0 +1,18 @@
+--TEST--
+http_send_file() oversized range
+--SKIPIF--
+<?php 
+include 'skip.inc';
+checkcgi();
+checkmin(5.1);
+?>
+--ENV--
+HTTP_RANGE=bytes=-1111
+--FILE--
+<?php
+http_send_file('data.txt');
+?>
+--EXPECTF--
+Status: 416
+X-Powered-By: PHP/%s
+Content-type: %s