ID: 34191
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Zlib Related
Operating System: Windows
PHP Version: 5CVS-2005-08-19 (CVS)
New Comment:
Reproducing script:
<?php
function f()
{
$data = ob_get_contents();
while(@ob_end_clean());
ob_start('ob_gzhandler');
$step = strlen($data)/2;
echo substr($data, 0, $step);
ob_flush();
echo substr($data, $step);
}
register_shutdown_function('f');
ob_start();
echo '<pre>';
readfile(__FILE__);
?>
Previous Comments:
------------------------------------------------------------------------
[2005-08-19 13:41:44] [EMAIL PROTECTED]
Description:
------------
ob_gzhandler does not always append a trailing NUL byte to the deflated
string, resulting in warnings in debug mode.
PATCH:
http://dev.iworks.at/PATCHES/ob_gzhandler_trailing_NUL.txt
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34191&edit=1