mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
- Allow length 0 as default (e.g. skip param)
This commit is contained in:
parent
84e560435e
commit
7fbc91acce
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user