Skip to content

Commit 8387f2d

Browse files
committed
Fix the default value of $fetchMode in PDO::pgsqlGetNotify()
1 parent ac8a58f commit 8387f2d

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ PHP NEWS
5353
- PCRE:
5454
. Fixed bug GH-12628 (The gh11374 test fails on Alpinelinux). (nielsdos)
5555

56+
- PDO PGSQL:
57+
. Fixed the default value of $fetchMode in PDO::pgsqlGetNotify() (kocsismate)
58+
5659
- PGSQL:
5760
. Fixed bug GH-12763 wrong argument type for pg_untrace. (degtyarov)
5861

ext/pdo_pgsql/pgsql_driver.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function pgsqlLOBOpen(string $oid, string $mode = "rb") {}
2929
public function pgsqlLOBUnlink(string $oid): bool {}
3030

3131
/** @tentative-return-type */
32-
public function pgsqlGetNotify(int $fetchMode = PDO::FETCH_USE_DEFAULT, int $timeoutMilliseconds = 0): array|false {}
32+
public function pgsqlGetNotify(int $fetchMode = PDO::FETCH_DEFAULT, int $timeoutMilliseconds = 0): array|false {}
3333

3434
/** @tentative-return-type */
3535
public function pgsqlGetPid(): int {}

ext/pdo_pgsql/pgsql_driver_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)