Skip to content

Commit 961d212

Browse files
committed
PdoPgsql::setNoticeCallback()
Make the newly implemented setNoticeCallback() officially exposed (php#6764)
1 parent 5e242fe commit 961d212

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

UPGRADING

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ PHP 8.4 UPGRADE NOTES
541541
energy consumption) of the current process and pcntl_setqos_class to set it.
542542

543543
- PDO_PGSQL:
544-
. Added PDO::pgsqlSetNoticeCallback to allow a callback to be triggered on
545-
every notice sent (e.g. RAISE NOTICE).
544+
. Added PdoPgsql::setNoticeCallback() / PDO::pgsqlSetNoticeCallback() to allow
545+
a callback to be triggered on every notice sent (e.g. RAISE NOTICE).
546546

547547
- PGSQL:
548548
. Added pg_change_password to alter a given user's password. It handles

ext/pdo_pgsql/pdo_pgsql.stub.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,7 @@ public function lobUnlink(string $oid): bool {}
5656
public function getNotify(int $fetchMode = \PDO::FETCH_DEFAULT, int $timeoutMilliseconds = 0): array|false {}
5757

5858
public function getPid(): int {}
59+
60+
/** @implementation-alias PDO_PGSql_Ext::pgsqlSetNoticeCallback */
61+
public function setNoticeCallback(?callable $callback): void {}
5962
}

ext/pdo_pgsql/pdo_pgsql_arginfo.h

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

ext/pdo_pgsql/pgsql_driver.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,8 +1242,7 @@ PHP_METHOD(PDO_PGSql_Ext, pgsqlGetPid)
12421242
}
12431243
/* }}} */
12441244

1245-
/* {{{ proto void PDO::pgsqlSetNoticeCallback(mixed callback)
1246-
Sets a callback to receive DB notices (after client_min_messages has been set) */
1245+
/* {{{ Sets a callback to receive DB notices (after client_min_messages has been set) */
12471246
PHP_METHOD(PDO_PGSql_Ext, pgsqlSetNoticeCallback)
12481247
{
12491248
zend_fcall_info fci = empty_fcall_info;

0 commit comments

Comments
 (0)