projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- don't convert original $_SERVER entry to string
[m6w6/ext-http]
/
tests
/
send_data_007.phpt
diff --git
a/tests/send_data_007.phpt
b/tests/send_data_007.phpt
index b02cad9bbb3b8c5b36efb6c398d342e0415417ae..478d58dc82c028c0059e9e3e60a6dfc666c3f548 100644
(file)
--- a/
tests/send_data_007.phpt
+++ b/
tests/send_data_007.phpt
@@
-3,17
+3,21
@@
http_send_data() etag caching
--SKIPIF--
<?php
include 'skip.inc';
--SKIPIF--
<?php
include 'skip.inc';
+checkcgi();
+checkmax(5.0);
?>
--ENV--
HTTP_IF_NONE_MATCH="0bee89b07a248e27c83fc3d5951213c1"
--FILE--
<?php
?>
--ENV--
HTTP_IF_NONE_MATCH="0bee89b07a248e27c83fc3d5951213c1"
--FILE--
<?php
+include 'log.inc';
+log_prepare(_CACHE_LOG);
http_cache_etag();
http_send_data("abc\n");
?>
--EXPECTF--
Status: 304
http_cache_etag();
http_send_data("abc\n");
?>
--EXPECTF--
Status: 304
-Content-type:
text/html
+Content-type:
%s
X-Powered-By: PHP/%s
Cache-Control: private, must-revalidate, max-age=0
%s
X-Powered-By: PHP/%s
Cache-Control: private, must-revalidate, max-age=0
%s