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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user