diff options
| author | Anatol Belski <ab@php.net> | 2018-06-29 18:34:53 +0200 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2018-06-29 18:34:53 +0200 |
| commit | cb97fd309790330bced04091fac46ea1466283c9 (patch) | |
| tree | e5d28ad36c5991cf3a27e5a7731938406b566da5 /ext/pgsql/pgsql.c | |
| parent | bf5a802f5a87010cee94df1cda2918f3be8ae96e (diff) | |
| download | php-git-cb97fd309790330bced04091fac46ea1466283c9.tar.gz | |
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 904b9aa3bf..6da01d448b 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -2669,6 +2669,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, |
