Increase severity level and use a more precise error message.

This commit is contained in:
Marcus Boerger 2004-04-03 14:40:36 +00:00
parent 1c7cfe739d
commit de56cc51a8
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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

View File

@ -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