#34708 [Opn->Csd]: php hangs when opening bzip2 archive

From: Date: Sun, 02 Oct 2005 21:36:34 +0000
Subject: #34708 [Opn->Csd]: php hangs when opening bzip2 archive
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85891@lists.php.net to get a copy of this message
ID: 34708 Updated by: sniper@php.net 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

« previous php.bugs (#85891) next »