projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
release 1.7.0b1
[m6w6/ext-http]
/
tests
/
send_data_002.phpt
diff --git
a/tests/send_data_002.phpt
b/tests/send_data_002.phpt
index 60df2d88ef8b945110b59085250f858b3e586c15..1dc775b428bb2dce8e867b93deca73395a6717a3 100644
(file)
--- a/
tests/send_data_002.phpt
+++ b/
tests/send_data_002.phpt
@@
-3,6
+3,8
@@
http_send_data() NUM-NUM range
--SKIPIF--
<?php
include 'skip.inc';
--SKIPIF--
<?php
include 'skip.inc';
+checkcgi();
+checkmin("5.2.5");
?>
--ENV--
HTTP_RANGE=bytes=5-6
?>
--ENV--
HTTP_RANGE=bytes=5-6
@@
-12,10
+14,11
@@
http_send_content_type('text/plain');
http_send_data(str_repeat('123abc', 1000));
?>
--EXPECTF--
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
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