From owner-freebsd-bugs@FreeBSD.ORG Mon Jan 17 06:00:49 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2EE9016A4CE for ; Mon, 17 Jan 2005 06:00:49 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E191C43D39 for ; Mon, 17 Jan 2005 06:00:48 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0H60m00005034 for ; Mon, 17 Jan 2005 06:00:48 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0H60mgl005023; Mon, 17 Jan 2005 06:00:48 GMT (envelope-from gnats) Resent-Date: Mon, 17 Jan 2005 06:00:48 GMT Resent-Message-Id: <200501170600.j0H60mgl005023@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Martin Portmann Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FDD316A4CE for ; Mon, 17 Jan 2005 05:58:31 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA98643D2D for ; Mon, 17 Jan 2005 05:58:30 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j0H5wU57031846 for ; Mon, 17 Jan 2005 05:58:30 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j0H5wUtm031845; Mon, 17 Jan 2005 05:58:30 GMT (envelope-from nobody) Message-Id: <200501170558.j0H5wUtm031845@www.freebsd.org> Date: Mon, 17 Jan 2005 05:58:30 GMT From: Martin Portmann To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: misc/76331: zlib.output_compressions does not work because of split mod_php5/php5-zlib X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2005 06:00:49 -0000 >Number: 76331 >Category: misc >Synopsis: zlib.output_compressions does not work because of split mod_php5/php5-zlib >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 17 06:00:48 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Martin Portmann >Release: FreeBSD 5.3 STABLE >Organization: infinitum Inc >Environment: FreeBSD s0.teviaqui.com 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: - Using the option zlib.output_compression results in a garbled browser content because the Content-Encoding: zlib header is not sent (but the content is correctly compressed). - Using ob_start ('ob_gzhandler') does work (=> zlib is installed right, not a browser problem) - Adding a Header ('Content-Encoding: zlib') does work for the page itself but fails for images (phpinfo () does show text but no images) >How-To-Repeat: In FreeBSD 5.3 Install apache 1.3 + mod_php5 + mod_zlib and edit php.ini to set zlib.output_compression=On >Fix: The problem seems to be that the zlib is not build with together with the apache module. There is #ifdef HAVE_ZLIB in the main/SAPI.c that writes the Content-Encoding header. To solve the problem I did add the line 'CONFIGURE_ARGS+= --with-zlib=/usr --with-zlib-dir=/usr' to the www/mod_php5/Makefile. This solves the problem (but bundles the zlib extension). >Release-Note: >Audit-Trail: >Unformatted: