ID:               34708
 User updated by:  me at 2gw dot net
 Reported By:      me at 2gw dot net
 Status:           Open
 Bug Type:         *Compression related
 Operating System: M$ XP Prof SP2
 PHP Version:      5.0.5
 New Comment:

bug fixed with 5.1.0RC1


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

[2005-10-02 22:30:15] me at 2gw dot net

Description:
------------
php hangs when attemption to open large (6Mb) bzip2 archive
using file_get_contents() function.
script stops and php eats 100% cpu usage.
it is ok, if opening small bzip2 files
as well as opening the same large archive with manually corrupted
header.
there is no problem at all with opening very large ( 200mb ) files
containg plain data or pkzip archives.


Reproduce code:
---------------
$dat_url = 'E:\Users\testbed\test.dat.bz2';
    if( ! ( $file_data = @file_get_contents( $dat_url ) ) )
        return 'Cannot get data';


Expected result:
----------------
file_get_contents() should open all files regardless of contents.



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


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

Reply via email to