mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
62 lines
2.1 KiB
HTML
62 lines
2.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<title>Get a read only handle to the socket underlying a PostgreSQL connection</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.pg-socket" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">pg_socket</h1>
|
|
<p class="verinfo">(PHP 5 >= 5.6.0, PHP 7)</p><p class="refpurpose"><span class="refname">pg_socket</span> — <span class="dc-title">
|
|
Get a read only handle to the socket underlying a PostgreSQL connection
|
|
</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.pg-socket-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>pg_socket</strong></span>
|
|
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$connection</code></span>
|
|
) : <span class="type">resource</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
<span class="function"><strong>pg_socket()</strong></span> returns a read only <span class="type"><a href="language.types.resource.html" class="type resource">resource</a></span>
|
|
corresponding to the socket underlying the given PostgreSQL connection.
|
|
</p>
|
|
|
|
<div class="warning"><strong class="warning">Warning</strong><p class="simpara">本函数还未编写文档,仅有参数列表。</p></div>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.pg-socket-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">connection</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
PostgreSQL database connection resource.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.pg-socket-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
A socket resource on success 或者在失败时返回 <strong><code>FALSE</code></strong>.
|
|
</p>
|
|
</div>
|
|
|
|
</div></div></div></body></html> |