projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
fix bug #16700 - array properties of class extending HttpMessage
[m6w6/ext-http]
/
tests
/
HttpResponse_002.phpt
1
--TEST--
2
HttpResponse - send gzipped file
3
--SKIPIF--
4
<?php
5
include 'skip.inc';
6
checkmin("5.2.5");
7
checkcgi();
8
skipif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib support");
9
?>
10
--ENV--
11
HTTP_ACCEPT_ENCODING=gzip
12
--FILE--
13
<?php
14
HttpResponse::setGzip(true);
15
HttpResponse::setFile(__FILE__);
16
HttpResponse::send();
17
?>
18
--EXPECTF--
19
X-Powered-By: PHP/%a
20
Content-Type: %a
21
Accept-Ranges: bytes
22
Content-Encoding: gzip
23
Vary: Accept-Encoding
24
25
%a