php.net |  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
Votes:1
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
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

}


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-07 11:27 UTC] 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 11:27 UTC] sniper@php.net
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


 [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-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC