diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-21 17:20:28 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-21 17:22:02 +0200 |
| commit | 8ff2f2f84b2c0ea33b38f7e98aaa710ce4f3fc91 (patch) | |
| tree | e92deebd212e1134cfe3d3ad616419d1f26c99a7 /ext/pgsql/pgsql.stub.php | |
| parent | fb4554e431e4f4063917c1a80ad2e929e6768d0b (diff) | |
| download | php-git-8ff2f2f84b2c0ea33b38f7e98aaa710ce4f3fc91.tar.gz | |
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().
Diffstat (limited to 'ext/pgsql/pgsql.stub.php')
| -rw-r--r-- | ext/pgsql/pgsql.stub.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.stub.php b/ext/pgsql/pgsql.stub.php index 4e2b21e4f2..a6dfb5d185 100644 --- a/ext/pgsql/pgsql.stub.php +++ b/ext/pgsql/pgsql.stub.php @@ -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 {} |
