ID:               40089
 Updated by:       [EMAIL PROTECTED]
 Reported By:      zibi at nora dot pl
-Status:           Open
+Status:           Bogus
 Bug Type:         Streams related
 Operating System: linux
 PHP Version:      5.2.0
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

The engine is expected to cache small memory chunks.
All real memory leaks are reported on shutdown.


Previous Comments:
------------------------------------------------------------------------

[2007-01-10 13:29:33] zibi at nora dot pl

Description:
------------
It looks like fgetcsv didn't free memory used for input buffer.

Reproduce code:
---------------
$f=fopen('file.csv','r');
$prev=memory_get_usage();
while($line=fgetcsv($f))
{
  unset($line);
  $now=memory_get_usage();
  echo ($now-$prev);
  $prev=$now;
}


Expected result:
----------------
0
0
0
0
0
0
0
0
0

or something oscilated around 0

Actual result:
--------------
2096
2088
2088
2088
2064
2072
2072
2072
2048
2092


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40089&edit=1

Reply via email to