ID: 21556 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Scripting Engine problem PHP Version: 4.3.0 New Comment:
Could you please provide a sample csv file that could be used to replicate the problem. Previous Comments: ------------------------------------------------------------------------ [2003-01-09 16:01:36] [EMAIL PROTECTED] Usings the basic fgetcsv example, <?php $row = 1; $fp = fopen ("test.csv","r"); while ($data = fgetcsv ($fp, 1000, ",")) { $num = count ($data); print "<p> $num fields in line $row: <br>\n"; $row++; for ($c=0; $c < $num; $c++) { print $data[$c] . "<br>\n"; } } fclose ($fp); ?> If the CSV contains a double quote, fgetcsv hangs on that line and memory utilization spikes. I have reproduced this. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21556&edit=1