mirror of
https://github.com/php/php-src.git
synced 2025-01-22 19:54:13 +08:00
Fix bug #24540
This commit is contained in:
parent
2ef1935c83
commit
139852d3ff
@ -2127,7 +2127,7 @@ PHP_FUNCTION(sqlite_seek)
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
if (row < 1 || row >= res->nrows) {
|
||||
if (row < 0 || row >= res->nrows) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "row %d out of range", row);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user