You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm reading CSV files using SplFileObject class and fgetcsv method. Below code does not work as intended in HHVM 3.8.0 meaning fgetcsv does return false on the LAST line. In PHP 5.6.7-1 the last line returns null.
The text was updated successfully, but these errors were encountered:
jjanvier
changed the title
SplFileObject::fgetcsv does not skip last line in CSV mode
SplFileObject::fgetcsv does not return null for last line in CSV mode
Jul 30, 2015
I'm reading CSV files using SplFileObject class and
fgetcsv
method. Below code does not work as intended in HHVM 3.8.0 meaningfgetcsv
does returnfalse
on the LAST line. In PHP 5.6.7-1 the last line returnsnull
.With the following CSV file
and the following code
Result for PHP
Result for HHVM
The text was updated successfully, but these errors were encountered: