php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34708 php hangs when opening bzip2 archive
Submitted: 2005-10-02 22:30 UTC Modified: 2005-10-02 23:36 UTC
From: me at 2gw dot net Assigned:
Status: Closed Package: Bzip2 Related
PHP Version: 5.0.5 OS: M$ XP Prof SP2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: me at 2gw dot net
New email:
PHP Version: OS:

 

 [2005-10-02 22:30 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-02 23:03 UTC] me at 2gw dot net
bug fixed with 5.1.0RC1
 [2005-10-02 23:36 UTC] sniper@php.net
Bug fixed -> bug closed. (5.1 is the next release..)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC