#34402 [NEW]: Arrays taking up to much memory

From: Date: Wed, 07 Sep 2005 07:47:58 +0000
Subject: #34402 [NEW]: Arrays taking up to much memory
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-84603@lists.php.net to get a copy of this message
From: stefan dot doeppert at synapsy dot com Operating system: Suse Linux 9.3 PHP version: 5.0.4 PHP Bug Type: Arrays related Bug description: Arrays taking up to much memory Description: ------------ compare Bug # 13598 I tried to import about 3100 records and the programme failed with a lack of memory. while($array = fgetcsv($handle,1024,$CONFIG['delimiter']) and !$dbError) { //Code } However, when initializing the array, the programme works just fine: $array = array(); while($array = fgetcsv($handle,1024,$CONFIG['delimiter']) and !$dbError) { //Code } -- Edit bug report at http://bugs.php.net/?id=34402&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34402&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34402&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34402&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34402&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34402&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34402&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34402&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34402&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34402&r=support Expected behavior: http://bugs.php.net/fix.php?id=34402&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34402&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34402&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34402&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34402&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34402&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34402&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34402&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34402&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34402&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34402&r=mysqlcfg

« previous php.bugs (#84603) next »