xref: /PHP-8.1/ext/pgsql/tests/no_link_open.phpt (revision 1f427779)
1--TEST--
2Using pg function with default link while no link open
3--EXTENSIONS--
4pgsql
5--FILE--
6<?php
7
8try {
9    pg_dbname();
10} catch (Error $e) {
11    echo $e->getMessage(), "\n";
12}
13
14?>
15--EXPECTF--
16Deprecated: pg_dbname(): Automatic fetching of PostgreSQL connection is deprecated in %s on line %d
17No PostgreSQL connection opened yet
18