Skip to content

Commit 35c0216

Browse files
committed
PdoPgsql::setNoticeCallback()
Make the newly implemented setNoticeCallback() officially exposed (#6764)
1 parent 23afe57 commit 35c0216

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

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)