- Fixed build on php-trunk
[m6w6/ext-http] / tests / send_data_008.phpt
index 03db1c26a3006889ef4fcd5290cd138ead08181d..3a695636cb7601c2b94cf45d5801d95e43f9b0b4 100644 (file)
@@ -1,18 +1,33 @@
 --TEST--
-http_send_data() HTTP_SENDBUF_SIZE long string
+http_send_data() multiple ranges
 --SKIPIF--
 <?php 
 include 'skip.inc';
 checkcgi();
+checkmin("5.2.5");
 ?>
+--ENV--
+HTTP_RANGE=bytes=0-0,-1
 --FILE--
 <?php
-http_throttle(0.01, 20);
-http_send_data('00000000000000000000');
+http_send_content_type('text/plain');
+http_send_data("01");
 ?>
 --EXPECTF--
-Content-type: text/html
+Status: 206%s
 X-Powered-By: PHP/%s
 Accept-Ranges: bytes
+Content-Type: multipart/byteranges; boundary=%d.%d
 
-00000000000000000000
\ No newline at end of file
+
+--%d.%d
+Content-Type: text/plain
+Content-Range: bytes 0-0/2
+
+0
+--%d.%d
+Content-Type: text/plain
+Content-Range: bytes 1-1/2
+
+1
+--%d.%d--