ports/lang/php5/files/patch-main_SAPI.c
2008-05-02 08:52:07 +00:00

21 lines
592 B
C

--- main/SAPI.c.orig 2007-05-25 11:20:01.000000000 +0200
+++ main/SAPI.c 2008-02-01 23:48:51.000000000 +0100
@@ -604,7 +606,7 @@
ptr++;
len--;
}
-#if HAVE_ZLIB
+#if 1
if(!strncmp(ptr, "image/", sizeof("image/")-1)) {
zend_alter_ini_entry("zlib.output_compression", sizeof("zlib.output_compression"), "0", sizeof("0") - 1, PHP_INI_USER, PHP_INI_STAGE_RUNTIME);
}
@@ -758,7 +760,7 @@
return SUCCESS;
}
-#if HAVE_ZLIB
+#if 1
/* Add output compression headers at this late stage in order to make
it possible to switch it off inside the script. */