Fix CSV reader when last line is empty

If the last line was empty, it would create an infinite loop...
This commit is contained in:
Adrien Loison committed 2015-07-29 10:17:51 -07:00
1 parent e3f7ecfa64
commit 8a3b895afc
4 files changed
+67 -12

No files matched your search

@@ -167,6 +167,18 @@ class GlobalFunctionsHelper
return file_get_contents($filePath);
}
/**
* Wrapper around global function feof()
* @see feof()
*
* @param resource
* @return bool
*/
public function feof($handle)
{
return feof($handle);
}
/**
* Wrapper around global function is_readable()
* @see is_readable()