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

 ID:                 36514
 Comment by:         roan dot kattouw at gmail dot com
 Reported by:        lunter at interia dot pl
 Summary:            ob_gzhandler() issue
 Status:             Assigned
 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:

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.


Previous Comments:
------------------------------------------------------------------------
[2010-06-18 22:43:26] [email protected]

Assigned to someone who cares.

------------------------------------------------------------------------
[2009-08-18 14:56:59] [email protected]

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] [email protected]

Cannot be fixed with current Output Control code.

------------------------------------------------------------------------
[2006-02-26 17:22:14] [email protected]

Ok, seems to be as follows:



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



------------------------------------------------------------------------
[2006-02-25 23:04:59] [email protected]

ob_clean() restarts the gz handler.

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


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/bug.php?id=36514


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

Reply via email to