Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7850 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20340 invoked by uid 1010); 15 Feb 2004 21:29:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 20316 invoked from network); 15 Feb 2004 21:29:43 -0000 Received: from unknown (HELO smtp1.pp.htv.fi) (212.90.64.119) by pb1.pair.com with SMTP; 15 Feb 2004 21:29:43 -0000 Received: from localhost.localdomain (cs181008.pp.htv.fi [213.243.181.8]) by smtp1.pp.htv.fi (Postfix) with ESMTP id 6062D80143; Sun, 15 Feb 2004 23:29:42 +0200 (EET) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.10/8.12.10) with ESMTP id i1FLTZpn014312; Sun, 15 Feb 2004 23:29:41 +0200 Date: Sun, 15 Feb 2004 23:29:35 +0200 (EET) Reply-To: Jani Taskinen To: Sascha Schumann Cc: internals@lists.php.net In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] zlib.output_compression on -> garbage From: sniper@iki.fi (Jani Taskinen) On Sun, 8 Feb 2004, Sascha Schumann wrote: > Is "on" supposed to produce garbage (apparently > Content-Encoding is simply missing), while 1 is the one true > setting? I always thought they were equivalent in the > context of a boolean flag. > > # works > php_admin_value zlib.output_compression 1 > > # compression, but incomplete HTTP headers > php_admin_value zlib.output_compression on > > Tested with current PHP 4.3.5 tree. From php.ini-dist: ; Transparent output compression using the zlib library ; Valid values for this option are 'off', 'on', or a specific buffer size ; to be used for compression (default is 4KB) ; Note: Resulting chunk size may vary due to nature of compression. PHP ; outputs chunks that are few hundreds bytes each as a result of ; compression. If you prefer a larger chunk size for better ; performance, enable output_buffering in addition. ; Note: You need to use zlib.output_handler instead of the standard ; output_handler, or otherwise the output will be corrupted. zlib.output_compression = Off So it actually shouldn't be boolean option at all..? --Jani