summaryrefslogtreecommitdiff
path: root/ext/zlib/tests
diff options
context:
space:
mode:
authorAdam Harvey <aharvey@php.net>2010-03-11 06:20:22 (GMT)
committerAdam Harvey <aharvey@php.net>2010-03-11 06:20:22 (GMT)
commitf60946eb5430cd11daa9f88503dc9b1a9b7bd634 (patch)
tree46977265c6b762152a961a19d1e7ee7db9b76a51 /ext/zlib/tests
parent2c3b1fd9207d7408814018de8abe2a692fac26a0 (diff)
downloadphp-f60946eb5430cd11daa9f88503dc9b1a9b7bd634.tar.gz
Fixed bug #51269 (zlib.output_compression Overwrites Vary Header).
Diffstat (limited to 'ext/zlib/tests')
-rw-r--r--ext/zlib/tests/bug51269.phpt21
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/zlib/tests/bug51269.phpt b/ext/zlib/tests/bug51269.phpt
new file mode 100644
index 0000000..6b97bac
--- /dev/null
+++ b/ext/zlib/tests/bug51269.phpt
@@ -0,0 +1,21 @@
+--TEST--
+Bug #51269 (zlib.output_compression Overwrites Vary Header)
+--INI--
+zlib.output_compression=1
+--ENV--
+HTTP_ACCEPT_ENCODING=gzip
+--SKIPIF--
+<?php
+if (!extension_loaded("zlib")) die("skip zlib required");
+?>
+--FILE--
+<?php
+header('Vary: Cookie');
+echo 'foo';
+?>
+--EXPECTF--
+%s
+--EXPECTHEADERS--
+Vary: Cookie
+Content-Encoding: gzip
+Vary: Accept-Encoding