mirror of
https://github.com/php/php-src.git
synced 2026-03-31 20:53:00 +02:00
- Allow length 0 as default (e.g. skip param)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user