mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
returns the ongoing name of the service, if there is. available since postgres 18 close GH-18198
20 lines
340 B
PHP
20 lines
340 B
PHP
--TEST--
|
|
PostgreSQL connection service field support
|
|
--EXTENSIONS--
|
|
pgsql
|
|
--SKIPIF--
|
|
<?php
|
|
include("inc/skipif.inc");
|
|
if (!function_exists("pg_service")) die("skip pg_service unsupported");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
include('inc/config.inc');
|
|
|
|
$db = pg_connect($conn_str);
|
|
var_dump(pg_service($db));
|
|
pg_close($db);
|
|
?>
|
|
--EXPECTF--
|
|
string(%d) "%A"
|