From 47a166c8378e8e670994f272c7f948b67014c619 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Wed, 23 Sep 2020 23:52:27 +0200 Subject: Fix #78792: zlib.output_compression disabled by Content-Type: image/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Disabling output compression for images has served to fix bug #16109, where zlib compressed images apparently have caused issues with Navigator 4. This shouldn't be an issue with somewhat contemporary browsers. Other than that, this is an arbitrary restriction – why don't we disable the compression for some other media types as well (e.g. video/* and audio/*)? All in all, we should leave that decision to userland. Closes GH-6198. --- UPGRADING | 2 ++ 1 file changed, 2 insertions(+) (limited to 'UPGRADING') diff --git a/UPGRADING b/UPGRADING index 9fdfe5b6bb..c2e425ef11 100644 --- a/UPGRADING +++ b/UPGRADING @@ -662,6 +662,8 @@ PHP 8.0 UPGRADE NOTES . deflate_init() will now return a DeflateContext object rather than a resource. Return value checks using is_resource() should be replaced with checks for `false`. + . zlib.output_compression is no longer automatically disabled for + Content-Type: image/*. ======================================== 2. New Features -- cgit v1.2.1