Bug #36514 [Asn->Fbk]: ob_gzhandler() issue

From: Date: Mon, 19 Sep 2011 14:40:30 +0000
Subject: Bug #36514 [Asn->Fbk]: ob_gzhandler() issue
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-163683@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=36514&edit=1

 ID:                 36514
 Updated by:         mike@php.net
 Reported by:        lunter at interia dot pl
 Summary:            ob_gzhandler() issue
-Status:             Assigned
+Status:             Feedback
 Type:               Bug
 Package:            Output Control
 Operating System:   winXP
 PHP Version:        5.1.2
 Assigned To:        mike
 Block user comment: N
 Private report:     N

 New Comment:

Please try using this snapshot:

  http://snaps.php.net/php5.4-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




Previous Comments:
------------------------------------------------------------------------
[2010-12-10 16:46:45] roan dot kattouw at gmail dot com

I've analyzed the output of a similar test case (ob_clean() before any output, to clear any
warnings) in a hex editor and compared it to gzip -c 's output for the same input. It's
quite clear that the ob_gzhandler output is missing the gzip header but is otherwise similar
(identical except for the occasional 4-byte block, I'm guessing those are checksums or
something). So Mark would seem to be right that the GZIP header gets thrown out by ob_clean() and
doesn't come back.

------------------------------------------------------------------------
[2010-06-18 22:43:26] jani@php.net

Assigned to someone who cares.

------------------------------------------------------------------------
[2009-08-18 14:56:59] jani@php.net

Need to investigate if this is a) fixed in HEAD by the new output code (or fix it if not) and b) if
it's actually fixable somehow in 5.* branches.

------------------------------------------------------------------------
[2006-05-24 11:51:23] mike@php.net

Cannot be fixed with current Output Control code.

------------------------------------------------------------------------
[2006-02-26 17:22:14] mike@php.net

Ok, seems to be as follows:

ob_clean() discards the gzip header bytes, but doesn't cause the gz handler to restart.


------------------------------------------------------------------------


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

    https://bugs.php.net/bug.php?id=36514


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=36514&edit=1


Thread (12 messages)

« previous php.bugs (#163683) next »