|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-01-10 13:44 UTC] tony2001@php.net
[2007-01-10 14:43 UTC] zibi at nora dot pl
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 23:00:01 2025 UTC |
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