mirror of
https://github.com/php/php-src.git
synced 2026-03-25 16:52:18 +01:00
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.
19 lines
397 B
PHP
19 lines
397 B
PHP
--TEST--
|
|
pg_close() default link after connection variable has been dropped
|
|
--EXTENSIONS--
|
|
pgsql
|
|
--SKIPIF--
|
|
<?php include("skipif.inc"); ?>
|
|
--FILE--
|
|
<?php
|
|
include('config.inc');
|
|
|
|
/* Run me under valgrind */
|
|
$db1 = pg_connect($conn_str);
|
|
unset($db1);
|
|
var_dump(pg_close());
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: pg_close(): Automatic fetching of PostgreSQL connection is deprecated in %s on line %d
|
|
bool(true)
|