From:             lamsoft at gmail dot com
Operating system: Microsoft Windows 2003 Server
PHP version:      5.1.4
PHP Bug Type:     Unknown/Other Function
Bug description:  emalloc error during making a zip on the fly

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 bug report at http://bugs.php.net/?id=38446&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38446&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38446&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38446&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=38446&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=38446&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=38446&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=38446&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=38446&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=38446&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=38446&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=38446&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=38446&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=38446&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38446&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=38446&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=38446&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=38446&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38446&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=38446&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=38446&r=mysqlcfg

Reply via email to