1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

Return empty array for no rows in pg_fetch_all()

This makes it line up with pg_fetch_all_columns(), as well as
similar functions in other exts, such as mysqli_fetch_all().
This commit is contained in:
Nikita Popov
2020-09-21 17:20:28 +02:00
parent fb4554e431
commit 8ff2f2f84b
7 changed files with 19 additions and 16 deletions

View File

@@ -193,7 +193,7 @@ function pg_fetch_array($result, ?int $row_number = null, int $result_type = PGS
function pg_fetch_object($result, ?int $row_number = null, string $class_name = "stdClass", ?array $ctor_params = null): object|false {}
/** @param resource $result */
function pg_fetch_all($result, int $result_type = PGSQL_ASSOC): array|false {}
function pg_fetch_all($result, int $result_type = PGSQL_ASSOC): array {}
/** @param resource $result */
function pg_fetch_all_columns($result, int $field_number = 0): array {}