| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2007-04-02 21:14 UTC] iliaa@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 06:00:01 2025 UTC | 
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); ?>