ID: 34708 Updated by: [EMAIL PROTECTED] Reported By: me at 2gw dot net -Status: Open +Status: Closed -Bug Type: *Compression related +Bug Type: Bzip2 Related Operating System: M$ XP Prof SP2 PHP Version: 5.0.5 New Comment:
Bug fixed -> bug closed. (5.1 is the next release..) Previous Comments: ------------------------------------------------------------------------ [2005-10-02 23:03:29] me at 2gw dot net bug fixed with 5.1.0RC1 ------------------------------------------------------------------------ [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