php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8554 ob_gzhandler
Submitted: 2001-01-04 11:58 UTC Modified: 2001-04-29 12:06 UTC
From: cecot at dirbg dot com Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.4pl1 OS: Debian Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cecot at dirbg dot com
New email:
PHP Version: OS:

 

 [2001-01-04 11:58 UTC] cecot at dirbg dot com
when I tried the example of Zeev Suraski at http://www.zend.com/zend/art/buffering.php, with the php.ini directive output_handler = ob_gzhandler it caused Segmentation fault of the apache.
I tried to use ob_start("ob_gzhandler"); and again segmentation fault ...

here are some tests
$test = ob_gzhandler("test") makes unpredictable results;
$test = gzencode("test") work fine (it even compress the text);
ob_start("gzencode") end with segfault again;

this happend on two different machines (both with debian) but one with a precompiled php debian package the other php compiled from me. both are compiled --with-zlib

phpinfo() gives this

zlib
ZLib Support enabled 
'zlib:' fopen wrapper enabled 
Compiled Version 1.1.3 
Linked Version 1.1.3 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-12 10:44 UTC] cecot at dirbg dot com
well in php4.0.4pl1 this problem seems to disappear
output_handler = ob_gzhandler works fine (even compresses the output :))
 [2001-01-26 10:49 UTC] cecot at dirbg dot com
there's something more to say about

see http://bugs.php.net/?id=8938

the machines are the same :)
 [2001-04-29 12:06 UTC] jmoore@php.net
fixed in CVS
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 10:01:28 2025 UTC