|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34402 Arrays taking up to much memory
Submitted: 2005-09-07 09:47 UTC Modified: 2005-09-15 01:00 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: stefan dot doeppert at synapsy dot com Assigned:
Status: No Feedback Package: Arrays related
PHP Version: 5.0.4 OS: Suse Linux 9.3
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-09-07 09:47 UTC] stefan dot doeppert at synapsy dot com
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) {



However, when initializing the array, the programme works just fine:

$array = array();

while($array = fgetcsv($handle,1024,$CONFIG['delimiter']) and !$dbError) {




Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-07 11:27 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 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 11:27 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-09-15 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: Mon Jun 17 10:01:32 2024 UTC