- improve response performance
[m6w6/ext-http] / tests / send_data_001.phpt
index 1cc00de3e6112dc05adf31f88b906ff6e604a7f5..e5c68405435e6409d9750c3342eeb1513ab3a309 100644 (file)
@@ -5,9 +5,10 @@ http_send_data() NIL-NUM range
 include 'skip.inc';
 checkcgi();
 ?>
+--ENV--
+HTTP_RANGE=bytes=-5
 --FILE--
 <?php
-$_SERVER['HTTP_RANGE'] = 'bytes=-5';
 http_send_content_type('text/plain');
 http_send_data(str_repeat('123abc', 1000));
 ?>
@@ -19,4 +20,4 @@ Accept-Ranges: bytes
 Content-Range: bytes 5995-5999/6000
 Content-Length: 5
 
-23abc
\ No newline at end of file
+23abc