diff options
author | ale <ale@FreeBSD.org> | 2005-04-15 17:01:10 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2005-04-15 17:01:10 +0800 |
commit | 6cf1dffd922dd5ed42457e7887f2ce9b83783be6 (patch) | |
tree | 1b3633d7ac4ac67ce8b56a3d8b4760dfb5d584b6 | |
parent | c6945b932434c0c375ce359cd1ba9f690c060404 (diff) | |
download | freebsd-ports-gnome-6cf1dffd922dd5ed42457e7887f2ce9b83783be6.tar.gz freebsd-ports-gnome-6cf1dffd922dd5ed42457e7887f2ce9b83783be6.tar.zst freebsd-ports-gnome-6cf1dffd922dd5ed42457e7887f2ce9b83783be6.zip |
Make zlib.output_compression working again.
PR: ports/76331
Submitted by: Martin Portmann <map@infinitum.ch>
Patch by: Vasil Dimov <vd@datamax.bg>
-rw-r--r-- | lang/php4/files/patch-main_SAPI.c | 20 | ||||
-rw-r--r-- | lang/php5/files/patch-main_SAPI.c | 20 | ||||
-rw-r--r-- | lang/php53/files/patch-main_SAPI.c | 20 |
3 files changed, 60 insertions, 0 deletions
diff --git a/lang/php4/files/patch-main_SAPI.c b/lang/php4/files/patch-main_SAPI.c new file mode 100644 index 000000000000..2e7f7431d9cd --- /dev/null +++ b/lang/php4/files/patch-main_SAPI.c @@ -0,0 +1,20 @@ +--- main/SAPI.c.orig Fri Apr 15 10:50:01 2005 ++++ main/SAPI.c Fri Apr 15 10:50:14 2005 +@@ -565,7 +565,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); + } +@@ -712,7 +712,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. */ + 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. */ + diff --git a/lang/php53/files/patch-main_SAPI.c b/lang/php53/files/patch-main_SAPI.c new file mode 100644 index 000000000000..12744ba48346 --- /dev/null +++ b/lang/php53/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. */ + |