mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
disable trace when closing the connection, is a no op if there is no stream attached to it. Close GH-11403
21 lines
292 B
PHP
21 lines
292 B
PHP
--TEST--
|
|
pg_trace
|
|
--EXTENSIONS--
|
|
pgsql
|
|
--SKIPIF--
|
|
<?php include("skipif.inc"); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
include('config.inc');
|
|
|
|
$db = pg_connect($conn_str);
|
|
$tracefile = __DIR__ . '/trace.tmp';
|
|
|
|
var_dump(pg_trace($tracefile, 'w', $db));
|
|
$res = pg_query($db, 'select 1');
|
|
|
|
?>
|
|
--EXPECTF--
|
|
bool(true)
|