diff options
| author | Anatol Belski <ab@php.net> | 2018-06-29 18:36:22 +0200 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2018-06-29 18:36:22 +0200 |
| commit | 4ff6c0cb447e55522ccb40fe18547c79727dbb73 (patch) | |
| tree | 4887768e4eb320188889669a79a45dc173a05f7b /ext/pgsql/pgsql.c | |
| parent | 6e77a60a75445c863f85f81a83e5c2dd28f0e877 (diff) | |
| parent | 486f18f09e6c9f07719e22677ac9f9b432c7980b (diff) | |
| download | php-git-4ff6c0cb447e55522ccb40fe18547c79727dbb73.tar.gz | |
Merge branch 'PHP-7.2'
* PHP-7.2:
Fixed bug #76548 pg_fetch_result did not fetch the next row
Diffstat (limited to 'ext/pgsql/pgsql.c')
| -rw-r--r-- | ext/pgsql/pgsql.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index c463cd79a9..a979ab5182 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -2656,6 +2656,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, |
