upgrade test suite to 5.3
[m6w6/ext-http] / tests / send_data_002.phpt
index 4e8f07beda4c6a6ad9bb207b6864cdd961bce8df..8b9dd690274cebeb295eb802b360a2e5a051f505 100644 (file)
@@ -4,19 +4,21 @@ http_send_data() NUM-NUM range
 <?php 
 include 'skip.inc';
 checkcgi();
+checkmin(5.3);
 ?>
+--ENV--
+HTTP_RANGE=bytes=5-6
 --FILE--
 <?php
-$_SERVER['HTTP_RANGE'] = 'bytes=5-6';
 http_send_content_type('text/plain');
 http_send_data(str_repeat('123abc', 1000));
 ?>
 --EXPECTF--
-Status: 206
+Status: 206%s
 X-Powered-By: PHP/%s
 Content-Type: text/plain
 Accept-Ranges: bytes
 Content-Range: bytes 5-6/6000
 Content-Length: 2
 
-c1
\ No newline at end of file
+c1