- Allow length 0 as default (e.g. skip param)

This commit is contained in:
Marcus Boerger 2005-03-07 00:16:18 +00:00
parent 84e560435e
commit 7fbc91acce

View File

@ -1956,6 +1956,8 @@ PHP_FUNCTION(fgetcsv)
if (len < 0) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter may not be negative");
RETURN_FALSE;
} else if (len == 0) {
len = -1;
}
} else {
len = -1;