ports/169637: [PATCH] zlib conflict with gzhandler lang/php5 (php v.5.4.4)
Andrei Lavreniyuk
andy.lavr at gmail.com
Wed Jul 4 10:30:10 UTC 2012
>Number: 169637
>Category: ports
>Synopsis: [PATCH] zlib conflict with gzhandler lang/php5 (php v.5.4.4)
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jul 04 10:30:09 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Andrei Lavreniyuk
>Release: FreeBSD 9.0-STABLE
>Organization:
Technica-03, Inc.
>Environment:
FreeBSD datacenter.technica-03.local 9.0-STABLE FreeBSD 9.0-STABLE #0: Tue Jul 3 11:30:08 EEST 2012 root at datacenter.technica-03.local:/usr/obj/usr/src/sys/SMP64 amd64
>Description:
with php 5.3.13, 5.3.14 and 5.4.3 the script is working well while it delivers the following error with php 5.4.4:
ob_start(): output handler 'ob_gzhandler' conflicts with 'zlib output compression'
webserver is nginx 1.2 without deflate mods using php via fcgi
php.ini setting 'zlib.output_compression' is turned off
The bug disappears if I add "php_flag zlib.output_compression off" in .htaccess file of specific host. So, probably, the bug is that global (from php.ini) "zlib.output_compression=off" setting is just _ignored_ in PHP 5.4.4.
Seems to be a problem in merging the fix to actual branch, which releases are made of.
This commit:
http://git.php.net/?p=php-src.git;a=commit;h=85a62e9086db7a8ddfcda4ab1279a2439935f8d5
really fixes the problem, but relevant line is not present in php-5.4.3 and php-5.4.4.
URL: https://bugs.php.net/bug.php?id=62335
>How-To-Repeat:
>Fix:
Please add this patch.
Patch attached with submission follows:
--- ext/zlib/zlib.c.orig 2012-06-13 07:54:23.000000000 +0300
+++ ext/zlib/zlib.c 2012-07-04 13:03:43.862500585 +0300
@@ -957,6 +957,7 @@
/* {{{ PHP_RINIT_FUNCTION */
static PHP_RINIT_FUNCTION(zlib)
{
+ ZLIBG(output_compression) = 0;
ZLIBG(compression_coding) = 0;
php_zlib_output_compression_start(TSRMLS_C);
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list