summaryrefslogtreecommitdiff
path: root/lang/php5
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2005-04-15 09:01:10 +0000
committerAlex Dupre <ale@FreeBSD.org>2005-04-15 09:01:10 +0000
commit44a677fdbf19ce521493edf6317d46f89f4447cf (patch)
treef3ab534dd49d392ca469d66eaf4099bc7e980822 /lang/php5
parent2.8.1 is no longer available so upgrade to 2.8.2, which drops (diff)
Make zlib.output_compression working again.
PR: ports/76331 Submitted by: Martin Portmann <map@infinitum.ch> Patch by: Vasil Dimov <vd@datamax.bg>
Notes
Notes: svn path=/head/; revision=133397
Diffstat (limited to 'lang/php5')
-rw-r--r--lang/php5/files/patch-main_SAPI.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/php5/files/patch-main_SAPI.c b/lang/php5/files/patch-main_SAPI.c
new file mode 100644
index 000000000000..12744ba48346
--- /dev/null
+++ b/lang/php5/files/patch-main_SAPI.c
@@ -0,0 +1,20 @@
+--- main/SAPI.c.orig Fri Apr 15 10:31:02 2005
++++ main/SAPI.c Fri Apr 15 10:34:11 2005
+@@ -569,7 +569,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);
+ }
+@@ -716,7 +716,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. */
+