projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix hang in SAPI deactivate when body is 4096 bytes or more
[m6w6/ext-http]
/
tests
/
send_data_007.phpt
diff --git
a/tests/send_data_007.phpt
b/tests/send_data_007.phpt
index f7b60f0806515676dca96ad77e5781d6727f7d89..e82fa83cb3806c4f5942d008ca8fdb9f1c28992e 100644
(file)
--- a/
tests/send_data_007.phpt
+++ b/
tests/send_data_007.phpt
@@
-1,20
+1,24
@@
--TEST--
--TEST--
-http_send_data()
etag caching
+http_send_data()
NIL-NIL range
--SKIPIF--
<?php
include 'skip.inc';
checkcgi();
--SKIPIF--
<?php
include 'skip.inc';
checkcgi();
+checkmin("5.2.5");
?>
--ENV--
?>
--ENV--
-HTTP_
IF_NONE_MATCH="0bee89b07a248e27c83fc3d5951213c1"
+HTTP_
RANGE=bytes=0-0
--FILE--
<?php
--FILE--
<?php
-http_
cache_etag(
);
-http_send_data("abc
\n
");
+http_
send_content_type('text/plain'
);
+http_send_data("abc");
?>
--EXPECTF--
?>
--EXPECTF--
-Status: 304
-Content-type: text/html
+Status: 206%s
X-Powered-By: PHP/%s
X-Powered-By: PHP/%s
-Cache-Control: private, must-revalidate, max-age=0
-%s
+Content-Type: text/plain
+Accept-Ranges: bytes
+Content-Range: bytes 0-0/3
+Content-Length: 1
+
+a