array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.pg-socket.php', 1 => 'pg_socket', ), 'up' => array ( 0 => 'ref.pgsql.php', 1 => 'PostgreSQL 函数', ), 'prev' => array ( 0 => 'function.pg-set-error-verbosity.php', 1 => 'pg_set_error_verbosity', ), 'next' => array ( 0 => 'function.pg-trace.php', 1 => 'pg_trace', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/pgsql/functions/pg-socket.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.6.0, PHP 7, PHP 8)
pg_socket — Get a read only handle to the socket underlying a PostgreSQL connection
pg_socket() returns a read only resource corresponding to the socket underlying the given PostgreSQL connection.
本函数还未编写文档,仅有参数列表。
connection
PgSql\Connection 实例。
A socket resource on success 或者在失败时返回 false
.
版本 | 说明 |
---|---|
8.1.0 |
现在 connection 参数接受 PgSql\Connection
实例,之前接受 resource。
|