Skip to content

Commit 122af7f

Browse files
committed
PdoPgsql::setNoticeCallback()
Make the newly implemented setNoticeCallback() officially exposed (php#6764)
1 parent 93c20de commit 122af7f

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
@@ -524,8 +524,8 @@ PHP 8.4 UPGRADE NOTES
524524
energy consumption) of the current process and pcntl_setqos_class to set it.
525525

526526
- PDO_PGSQL:
527-
. Added PDO::pgsqlSetNoticeCallback to allow a callback to be triggered on
528-
every notice sent (e.g. RAISE NOTICE).
527+
. Added PdoPgsql::setNoticeCallback() / PDO::pgsqlSetNoticeCallback() to allow
528+
a callback to be triggered on every notice sent (e.g. RAISE NOTICE).
529529

530530
- PGSQL:
531531
. 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
@@ -52,4 +52,7 @@ public function lobUnlink(string $oid): bool {}
5252
public function getNotify(int $fetchMode = PDO::FETCH_DEFAULT, int $timeoutMilliseconds = 0): array|false {}
5353

5454
public function getPid(): int {}
55+
56+
/** @implementation-alias PDO_PGSql_Ext::pgsqlSetNoticeCallback */
57+
public function setNoticeCallback(?callable $callback): void {}
5558
}

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
@@ -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)