1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

ext/pgsql: adding pg_service() alongside other connection infos.

returns the ongoing name of the service, if there is.
available since postgres 18

close GH-18198
This commit is contained in:
David Carlier
2025-03-30 19:34:52 +01:00
parent 2244810dcf
commit 334d9bbc09
7 changed files with 55 additions and 1 deletions

View File

@@ -508,6 +508,9 @@ namespace {
*/
function pg_jit(?PgSql\Connection $connection = null): array {}
#ifdef HAVE_PG_SERVICE
function pg_service(?PgSql\Connection $connection = null): string {}
#endif
/**
* @param PgSql\Connection|string $connection
* @refcount 1