#34402 [Fbk]: Arrays taking up to much memory
| From: | sniper@php.net | Date: | Wed, 07 Sep 2005 09:27:29 +0000 |
| Subject: | #34402 [Fbk]: Arrays taking up to much memory | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84607@lists.php.net to get a copy of this message | ||
ID: 34402
Updated by: sniper@php.net
Reported By: stefan dot doeppert at synapsy dot com
Status: Feedback
Bug Type: Arrays related
Operating System: Suse Linux 9.3
PHP Version: 5.0.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-09-07 11:27:21] sniper@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 possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2005-09-07 09:47:57] stefan dot doeppert at synapsy dot com
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 this bug report at http://bugs.php.net/?id=34402&edit=1