#20551 [Fbk]: Output compression causes segfaults (ob_gzhandler)
From: sr@php.net Date: Fri, 29 Nov 2002 16:34:33 +0000 Subject: #20551 [Fbk]: Output compression causes segfaults (ob_gzhandler) References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-26195@lists.php.net to get a copy of this message
ID: 20551
Updated by: sr@php.net
Reported By: sroussey@network54.com
Status: Feedback
Bug Type: Output Control
Operating System: RedHat 7.2
PHP Version: 4.2.3
New Comment:
In 4.3 zlib.output_compression will be PHP_INI_ALL and you can change
the value if the headers are not sent.
Also images won't be compressed automatically.
Previous Comments:
------------------------------------------------------------------------
[2002-11-27 14:02:12] sroussey@network54.com
zlib.output_compression is PHP_INI_SYSTEM|PHP_INI_PERDIR so it can't be
set in a script according to the manual (ini_set). Is this correct?
Does this change in 4.3?
------------------------------------------------------------------------
[2002-11-27 13:55:13] sroussey@network54.com
Using
ini_set ( "zlib.output_compression", 1);// or "On" or 4096 ...
instead of:
ob_start ('ob_gzhandler');
does not actually compress pages...
------------------------------------------------------------------------
[2002-11-27 13:12:35] sroussey@network54.com
The problem with setting it system wide is that it will try to compress
images and javascripts. No browser likes compressed images and Netscape
dies on compressed javascripts.
Or are you suggesting that I use:
ini_set ( "zlib.output_compression", 1);
instead of:
ob_start ('ob_gzhandler');
??
Does this work in PHP 4.2.3?
------------------------------------------------------------------------
[2002-11-27 11:30:07] wez@php.net
We recommend using zlib.outputcompression instead of ob_gzhandler;
maybe this will solve your issues, without
the need to upgrade PHP.
------------------------------------------------------------------------
[2002-11-27 09:31:15] sroussey@network54.com
One thing I forgot to add: I tried backporting all the fixes from CVS
that referenced crashes/segfaults from zlib.c, output.c, and streams.c
with no improvement.
In the middle of the night, I'm going to temporarily install 4.3RC1
which will disable the accelerator and kick the load average to the
roof, but hopefully I'll be able to check the error log for segfaults.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/20551
--
Edit this bug report at http://bugs.php.net/?id=20551&edit=1
Thread (32 messages)
- #20551 [Opn]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Opn->Fbk]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Fbk]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Com]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Com]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Com]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Fbk]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Com]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Com]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Com]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Fbk]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Fbk]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Com]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Fbk]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Com]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Fbk->Opn]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Opn]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Opn]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Opn]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Opn->Fbk]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Fbk->NoF]: Output compression causes segfaults (ob_gzhandler)
- #20551 [NoF->Opn]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Opn->Fbk]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Fbk->NoF]: Output compression causes segfaults (ob_gzhandler)
- #20551 [NoF->Opn]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Com]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Opn->Fbk]: Output compression causes segfaults (ob_gzhandler)
- #20551 [Fbk->NoF]: Output compression causes segfaults (ob_gzhandler)
- #20551 [NoF->Opn]: Output compression causes segfaults (sapi/apache/mod_php.c)
- #20551 [Opn->Csd]: Output compression causes segfaults (sapi/apache/mod_php.c)
- #20551 [Com]: Output compression causes segfaults (sapi/apache/mod_php.c)
| « previous | php.bugs (#26195) | next » |
|---|