array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.pg-untrace.php', 1 => 'pg_untrace', ), 'up' => array ( 0 => 'ref.pgsql.php', 1 => 'PostgreSQL İşlevleri', ), 'prev' => array ( 0 => 'function.pg-unescape-bytea.php', 1 => 'pg_unescape_bytea', ), 'next' => array ( 0 => 'function.pg-update.php', 1 => 'pg_update', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/pgsql/functions/pg-untrace.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8)
pg_untrace — Disable tracing of a PostgreSQL connection
connection
PgSql\Connection
nesnesi. bağlantı
null
ise, öntanımlı bağlantı
kullanılır.Öntanımlı bağlantı pg_connect()
veya pg_pconnect() işleviyle kurulmuş son bağlantıdır.
PHP 8.1.0 ve sonrasında, öntanımlı bağlantının kullanımı önerilmemektedir.
Daima true
döndürür.
Sürüm: | Açıklama |
---|---|
8.2.0 |
Dönüş türü artık true ;evvelce, bool idi.
|
8.1.0 |
bağlantı bağımsız değişkeni artık
PgSql\Connection nesnesi kabul ediyor, evvelce bir
özkaynak kabul ederdi.
|
8.0.0 |
connection is now nullable.
|
Örnek 1 pg_untrace() example
<?php
$pgsql_conn = pg_connect("dbname=mark host=localhost");
if ($pgsql_conn) {
pg_trace('/tmp/trace.log', 'w', $pgsql_conn);
pg_query("SELECT 1");
pg_untrace($pgsql_conn);
// Now tracing of backend communication is disabled
} else {
print pg_last_error($pgsql_conn);
exit;
}
?>