Skip to content

Commit 24e4b24

Browse files
committed
Pdo\Pgsql::setNoticeCallback()
Make the newly implemented setNoticeCallback() officially exposed (php#6764)
1 parent 51379d6 commit 24e4b24

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

UPGRADING

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

546546
- PDO_PGSQL:
547-
. Added PDO::pgsqlSetNoticeCallback to allow a callback to be triggered on
548-
every notice sent (e.g. RAISE NOTICE).
547+
. Added Pdo\Pgsql::setNoticeCallback() / PDO::pgsqlSetNoticeCallback() to allow
548+
a callback to be triggered on every notice sent (e.g. RAISE NOTICE).
549549

550550
- PGSQL:
551551
. 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: 7 additions & 1 deletion
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
@@ -1241,8 +1241,7 @@ PHP_METHOD(PDO_PGSql_Ext, pgsqlGetPid)
12411241
}
12421242
/* }}} */
12431243

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

0 commit comments

Comments
 (0)