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_003.phpt
diff --git
a/tests/HttpResponse_003.phpt
b/tests/HttpResponse_003.phpt
index 027d536c9f0443ede52bdf996b5848d6d28ea9dc..9780dda00cb1c67b7cfcbcf028c89a582aeecab1 100644
(file)
--- a/
tests/HttpResponse_003.phpt
+++ b/
tests/HttpResponse_003.phpt
@@
-3,9
+3,9
@@
HttpResponse - send gzipped file with caching headers
--SKIPIF--
<?php
include 'skip.inc';
--SKIPIF--
<?php
include 'skip.inc';
-check
ver
(5);
+check
min
(5);
checkcgi();
checkcgi();
-
checkext('zlib'
);
+
skipif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib support"
);
?>
--ENV--
HTTP_ACCEPT_ENCODING=gzip
?>
--ENV--
HTTP_ACCEPT_ENCODING=gzip
@@
-18,9
+18,9
@@
HttpResponse::setFile(__FILE__);
HttpResponse::send();
?>
--EXPECTF--
HttpResponse::send();
?>
--EXPECTF--
-X-Powered-By: PHP/
5.1.0RC2-dev
+X-Powered-By: PHP/
%s
ETag: "%s"
ETag: "%s"
-Cache-Control: public, must-revalidate, max
_
age=3600
+Cache-Control: public, must-revalidate, max
-
age=3600
Last-Modified: %s, %d %s 20%d %d:%d:%d GMT
Content-Type: %s
Accept-Ranges: bytes
Last-Modified: %s, %d %s 20%d %d:%d:%d GMT
Content-Type: %s
Accept-Ranges: bytes