Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fixed bug #76548 pg_fetch_result did not fetch the next row
This commit is contained in:
Anatol Belski 2018-06-29 18:35:44 +02:00
commit 486f18f09e
2 changed files with 24 additions and 0 deletions

View file

@ -2655,6 +2655,7 @@ PHP_FUNCTION(pg_fetch_result)
if (pgsql_row >= PQntuples(pgsql_result)) {
RETURN_FALSE;
}
pg_result->row++;
} else {
if (row < 0 || row >= PQntuples(pgsql_result)) {
php_error_docref(NULL, E_WARNING, "Unable to jump to row " ZEND_LONG_FMT " on PostgreSQL result index " ZEND_LONG_FMT,