php.net |  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
Votes:1
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
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: lamsoft at gmail dot com
New email:
PHP Version: OS:

 

 [2006-08-14 06:41 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-14 06:47 UTC] tony2001@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 15:01:30 2024 UTC