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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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: Thu Mar 28 15:01:29 2024 UTC