xref: /PHP-8.1/ext/pgsql/tests/pg_trace.phpt (revision f194cdf8)
1--TEST--
2pg_trace
3--EXTENSIONS--
4pgsql
5--SKIPIF--
6<?php include("skipif.inc"); ?>
7--FILE--
8<?php
9
10include('config.inc');
11
12$db = pg_connect($conn_str);
13$tracefile = __DIR__ . '/trace.tmp';
14
15var_dump(pg_trace($tracefile, 'w', $db));
16$res = pg_query($db, 'select 1');
17
18?>
19--EXPECTF--
20bool(true)
21