ID:               40950
 Updated by:       [EMAIL PROTECTED]
 Reported By:      phpbugs at sebastianmendel dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         Bzip2 Related
 Operating System: Windows
 PHP Version:      5.2.1
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

This is because the memory is pre-allocated before the bz2 file is
read.


Previous Comments:
------------------------------------------------------------------------

[2007-03-29 16:21:57] phpbugs at sebastianmendel dot de

Description:
------------
bzread() does only read 8192 bytes from file handle but consumes memory
in the size of $length

Reproduce code:
---------------
<?php
echo memory_get_peak_usage(true);
$read_data = bzread(bzopen('file.bz2'), 10000000)
echo strlen($read_data);
echo memory_get_peak_usage(true);
?>



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


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

Reply via email to