projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
add curlCode property to HttpRequestException
[m6w6/ext-http]
/
tests
/
HttpResponse_002.phpt
diff --git
a/tests/HttpResponse_002.phpt
b/tests/HttpResponse_002.phpt
index 6f097b18612f11272894752ff54376283ab35fbf..bbfa30f161826ca97998acd45a9792e771477b9a 100644
(file)
--- a/
tests/HttpResponse_002.phpt
+++ b/
tests/HttpResponse_002.phpt
@@
-1,11
+1,11
@@
--TEST--
HttpResponse - send gzipped file
--SKIPIF--
--TEST--
HttpResponse - send gzipped file
--SKIPIF--
-<?php
+<?php
include 'skip.inc';
include 'skip.inc';
-check
ver(5
);
+check
min("5.2.5"
);
checkcgi();
checkcgi();
-
checkext('zlib'
);
+
skipif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib support"
);
?>
--ENV--
HTTP_ACCEPT_ENCODING=gzip
?>
--ENV--
HTTP_ACCEPT_ENCODING=gzip
@@
-16,10
+16,10
@@
HttpResponse::setFile(__FILE__);
HttpResponse::send();
?>
--EXPECTF--
HttpResponse::send();
?>
--EXPECTF--
-X-Powered-By: PHP/%
s
-Content-Type: %
s
+X-Powered-By: PHP/%
a
+Content-Type: %
a
Accept-Ranges: bytes
Content-Encoding: gzip
Vary: Accept-Encoding
Accept-Ranges: bytes
Content-Encoding: gzip
Vary: Accept-Encoding
-%s
\ No newline at end of file
+%a