mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
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:
commit
486f18f09e
2 changed files with 24 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue