mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
- PGSQL_TRACE_SUPPRESS_TIMESTAMPS. - PGSQL_TRACE_REGRESS_MODE to have a more verbose and observable output to check possible regressions. Close GH-11041
27 lines
475 B
PHP
27 lines
475 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';
|
|
|
|
try {
|
|
pg_trace($tracefile, 'w', $db, 56432);
|
|
} catch (ValueError $e) {
|
|
echo $e->getMessage() . PHP_EOL;
|
|
}
|
|
var_dump(pg_trace($tracefile, 'w', $db, 0));
|
|
$res = pg_query($db, 'select 1');
|
|
|
|
?>
|
|
--EXPECT--
|
|
pg_trace(): Argument #4 ($trace_mode) cannot set as trace is unsupported
|
|
bool(true)
|