projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- split off files from tutorial.txt into lib/*.php
[m6w6/ext-http]
/
tests
/
HttpResponse_004.phpt
diff --git
a/tests/HttpResponse_004.phpt
b/tests/HttpResponse_004.phpt
index a0f569dfe5c2ec47e62af8d376eab2b80b231c05..e8a1d0f758b05279da903213bec4ed8022100f7c 100644
(file)
--- a/
tests/HttpResponse_004.phpt
+++ b/
tests/HttpResponse_004.phpt
@@
-3,9
+3,9
@@
HttpResponse - send cached gzipped data
--SKIPIF--
<?php
include 'skip.inc';
--SKIPIF--
<?php
include 'skip.inc';
-checkver(5);
checkcgi();
checkcgi();
-checkext('zlib');
+checkmin(5.1);
+skpif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib support");
?>
--ENV--
HTTP_ACCEPT_ENCODING=gzip
?>
--ENV--
HTTP_ACCEPT_ENCODING=gzip
@@
-20,7
+20,7
@@
HttpResponse::send();
?>
--EXPECTF--
Status: 304
?>
--EXPECTF--
Status: 304
-Content-type: %s
X-Powered-By: PHP/%s
X-Powered-By: PHP/%s
-Cache-Control: public, must-revalidate, max
_
age=3600
+Cache-Control: public, must-revalidate, max
-
age=3600
ETag: "80b285463881575891e86ba7bfecb4d0"
ETag: "80b285463881575891e86ba7bfecb4d0"
+Content-type: %s