Patch revert-fix-for-bug-16109.patch for Zlib related Bug #78792
Patch version 2019-11-07 17:11 UTC
Return to Bug #78792 |
Download this patch
Patch Revisions:
Developer: ewgenij.starostin@foo.ag
diff --git i/main/SAPI.c w/main/SAPI.c
index 696cd9e249..85b3ef820b 100644
--- i/main/SAPI.c
+++ w/main/SAPI.c
@@ -768,13 +768,6 @@ SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg)
len--;
}
- /* Disable possible output compression for images */
- if (!strncmp(ptr, "image/", sizeof("image/")-1)) {
- zend_string *key = zend_string_init("zlib.output_compression", sizeof("zlib.output_compression")-1, 0);
- zend_alter_ini_entry_chars(key, "0", sizeof("0") - 1, PHP_INI_USER, PHP_INI_STAGE_RUNTIME);
- zend_string_release_ex(key, 0);
- }
-
mimetype = estrdup(ptr);
newlen = sapi_apply_default_charset(&mimetype, len);
if (!SG(sapi_headers).mimetype){
|