File_CSV weirdness
| From: | Mika Tuupola | Date: | Tue, 15 Apr 2003 12:14:29 +0000 |
| Subject: | File_CSV weirdness | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-15180@lists.php.net to get a copy of this message | ||
read() method of File_CSV starting at line 281 has the following.
-cut-
if (count($fields) != $conf['fields']) {
File_CSV::raiseError(" Read wrong fields number count: '". count($fields) .
"' expected ".$conf['fields']);
return true;
}
-cut-
Ie read() returns true on error. Is this intentional? I know
File_CSV has non-standard errorhandling, but this seems
a bit odd to me.
--
Mika Tuupola http://www.appelsiini.net/~tuupola/