projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
- fix PHP4 build (has no only_exceptions INI setting
[m6w6/ext-http]
/
tests
/
HttpResponse_002.phpt
1
--TEST--
2
HttpResponse - send gzipped file
3
--SKIPIF--
4
<?php
5
include 'skip.inc';
6
checkver(5);
7
checkcgi();
8
checkext('zlib');
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/%s
20
Content-Type: %s
21
Accept-Ranges: bytes
22
Content-Encoding: gzip
23
Vary: Accept-Encoding
24
25
%s