mirror of
https://github.com/php/php-src.git
synced 2024-11-26 03:16:33 +08:00
Increase severity level and use a more precise error message.
This commit is contained in:
parent
1c7cfe739d
commit
de56cc51a8
@ -1810,7 +1810,7 @@ PHP_FUNCTION(sqlite_fetch_all)
|
||||
|
||||
if (res->curr_row >= res->nrows && res->nrows) {
|
||||
if (!res->buffered) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "One or more rowsets were already returned");
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "One or more rowsets were already returned; returning NULL this time");
|
||||
} else {
|
||||
res->curr_row = 0;
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ array(3) {
|
||||
}
|
||||
}
|
||||
|
||||
Notice: sqlite_fetch_all(): One or more rowsets were already returned in %ssqlite_014.php on line %d
|
||||
Warning: sqlite_fetch_all(): One or more rowsets were already returned; returning NULL this time in %ssqlite_014.php on line %d
|
||||
array(0) {
|
||||
}
|
||||
unbuffered with fetch_array
|
||||
|
@ -59,7 +59,7 @@ array(3) {
|
||||
}
|
||||
}
|
||||
|
||||
Notice: SQLiteUnbuffered::fetchAll(): One or more rowsets were already returned in %ssqlite_oo_014.php on line %d
|
||||
Warning: SQLiteUnbuffered::fetchAll(): One or more rowsets were already returned; returning NULL this time in %ssqlite_oo_014.php on line %d
|
||||
array(0) {
|
||||
}
|
||||
unbuffered with fetch_array
|
||||
|
Loading…
Reference in New Issue
Block a user