- tests
[m6w6/ext-http] / tests / send_data_007.phpt
diff --git a/tests/send_data_007.phpt b/tests/send_data_007.phpt
new file mode 100644 (file)
index 0000000..91dedaa
--- /dev/null
@@ -0,0 +1,23 @@
+--TEST--
+http_send_data() NIL-NIL range
+--SKIPIF--
+<?php 
+include 'skip.inc';
+checkcgi();
+?>
+--ENV--
+HTTP_RANGE=bytes=0-0
+--FILE--
+<?php
+http_send_content_type('text/plain');
+http_send_data("abc");
+?>
+--EXPECTF--
+Status: 206
+X-Powered-By: PHP/%s
+Content-Type: text/plain
+Accept-Ranges: bytes
+Content-Range: bytes 0-0/3
+Content-Length: 1
+
+a