1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00

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

This commit is contained in:
Marcus Boerger
2005-03-07 00:17:51 +00:00
parent 5be2acc65d
commit 1ecb6ccd16
+2
View File
@@ -1780,6 +1780,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;