|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38446 emalloc error during making a zip on the fly
Submitted: 2006-08-14 06:41 UTC Modified: 2006-08-22 01:00 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: lamsoft at gmail dot com Assigned:
Status: No Feedback Package: Unknown/Other Function
PHP Version: 5.1.4 OS: Microsoft Windows 2003 Server
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-08-14 06:41 UTC] lamsoft at gmail dot com
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


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) {

Expected result:
No error..

Actual result:
While creating the zip file, it has an error
FATAL:  emalloc():  Unable to allocate 266092661 bytes


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-14 06:47 UTC]
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.

 [2006-08-22 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Feb 06 12:03:42 2023 UTC