From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jul 4 10:30:09 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF1F6106566C for ; Wed, 4 Jul 2012 10:30:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9D53B8FC15 for ; Wed, 4 Jul 2012 10:30:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q64AU9kj028739 for ; Wed, 4 Jul 2012 10:30:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q64AU9qx028738; Wed, 4 Jul 2012 10:30:09 GMT (envelope-from gnats) Resent-Date: Wed, 4 Jul 2012 10:30:09 GMT Resent-Message-Id: <201207041030.q64AU9qx028738@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrei Lavreniyuk Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 664E5106564A for ; Wed, 4 Jul 2012 10:28:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 4E5FD8FC12 for ; Wed, 4 Jul 2012 10:28:00 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q64AS0op073938 for ; Wed, 4 Jul 2012 10:28:00 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q64AS0KE073936; Wed, 4 Jul 2012 10:28:00 GMT (envelope-from nobody) Message-Id: <201207041028.q64AS0KE073936@red.freebsd.org> Date: Wed, 4 Jul 2012 10:28:00 GMT From: Andrei Lavreniyuk To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/169637: [PATCH] zlib conflict with gzhandler lang/php5 (php v.5.4.4) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jul 2012 10:30:10 -0000 >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: