mirror of
https://github.com/php/php-src.git
synced 2026-04-22 23:48:14 +02:00
1f42777927
The DB connection should be provided in all cases as the first argument. The overloaded function signatures will be removed in the future. Warn about this change. Part of https://wiki.php.net/rfc/deprecations_php_8_1.
18 lines
332 B
PHP
18 lines
332 B
PHP
--TEST--
|
|
Using pg function with default link while no link open
|
|
--EXTENSIONS--
|
|
pgsql
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
pg_dbname();
|
|
} catch (Error $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: pg_dbname(): Automatic fetching of PostgreSQL connection is deprecated in %s on line %d
|
|
No PostgreSQL connection opened yet
|