ID: 38446 Updated by: [EMAIL PROTECTED] Reported By: lamsoft at gmail dot com -Status: Open +Status: Feedback Bug Type: Unknown/Other Function Operating System: Microsoft Windows 2003 Server PHP Version: 5.1.4 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2006-08-14 06:41:46] lamsoft at gmail dot com Description: ------------ This is the following errors. I have changed the memory limit in PHP.ini to 512M (The server has 4 GB RAM), but it is no help. Matched and Compressing E:\bb_dp\STB060314.TXT Matched and Compressing E:\bb_dp\STB060322.txt Matched and Compressing E:\bb_dp\STB060323.txt ...... Each of the TXT file is nearly 200M, and there is about 10-15 files to be zipped into a zip file. FATAL: emalloc(): Unable to allocate 266092661 bytes Thanks. Reproduce code: --------------- Here are some of the source code... $zipfile= new ss_zip('',9); echo "Matched and Compressing " . $con . "\n"; foreach ($currentFileList as $id => $con) { $zipfile->add_file($con); } Expected result: ---------------- No error.. Actual result: -------------- While creating the zip file, it has an error FATAL: emalloc(): Unable to allocate 266092661 bytes ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38446&edit=1