- enable zlib by default
[m6w6/ext-http] / tests / send_data_003.phpt
index 00344e702c203c74808dbc06bfef589668162a9b..87663fcea9fb376c52176250e61ad50e9e41519d 100644 (file)
@@ -3,11 +3,11 @@ http_send_data() NUM-NIL range
 --SKIPIF--
 <?php 
 include 'skip.inc';
+checkcgi();
 ?>
---ENV--
-HTTP_RANGE=bytes=5981-
 --FILE--
 <?php
+$_SERVER['HTTP_RANGE'] = 'bytes=5981-';
 http_send_content_type('text/plain');
 http_send_data(str_repeat('123abc', 1000));
 ?>
@@ -17,5 +17,6 @@ X-Powered-By: PHP/%s
 Content-Type: text/plain
 Accept-Ranges: bytes
 Content-Range: bytes 5981-5999/6000
+Content-Length: 19
 
 c123abc123abc123abc
\ No newline at end of file