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 php 5.4 build
[m6w6/ext-http]
/
tests
/
send_data_007.phpt
diff --git
a/tests/send_data_007.phpt
b/tests/send_data_007.phpt
index f6d6058388b4735eb380f8bd223813b4107a2452..e82fa83cb3806c4f5942d008ca8fdb9f1c28992e 100644
(file)
--- a/
tests/send_data_007.phpt
+++ b/
tests/send_data_007.phpt
@@
-1,22
+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
-include 'log.inc';
-log_prepare(_CACHE_LOG);
-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