Date: Wed, 4 Jul 2012 10:28:00 GMT From: Andrei Lavreniyuk <andy.lavr@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/169637: [PATCH] zlib conflict with gzhandler lang/php5 (php v.5.4.4) Message-ID: <201207041028.q64AS0KE073936@red.freebsd.org> Resent-Message-ID: <201207041030.q64AU9qx028738@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207041028.q64AS0KE073936>