|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-10-02 23:03 UTC] me at 2gw dot net
[2005-10-02 23:36 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 13 14:00:01 2025 UTC |
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.