mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-17 21:16:57 +08:00
74 lines
2.8 KiB
HTML
74 lines
2.8 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>Returns error number</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.yaz-errno" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">yaz_errno</h1>
|
|
<p class="verinfo">(PHP 4 >= 4.0.1, PECL yaz >= 0.9.0)</p><p class="refpurpose"><span class="refname">yaz_errno</span> — <span class="dc-title">Returns error number</span></p>
|
|
|
|
</div>
|
|
<div class="refsect1 description" id="refsect1-function.yaz-errno-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>yaz_errno</strong></span>
|
|
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$id</code></span>
|
|
) : <span class="type">int</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
Returns an error number for the server (last request) identified by
|
|
<code class="parameter">id</code>.
|
|
</p>
|
|
<p class="para">
|
|
<span class="function"><strong>yaz_errno()</strong></span> should be called after network activity for
|
|
each server - (after <span class="function"><a href="yaz_wait.html" class="function">yaz_wait()</a></span> returns) to determine the
|
|
success or failure of the last operation (e.g. search).
|
|
</p>
|
|
</div>
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.yaz-errno-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<p class="para">
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">id</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
The connection resource returned by <span class="function"><a href="yaz_connect.html" class="function">yaz_connect()</a></span>.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.yaz-errno-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
Returns an error code. The error code is either a Z39.50 diagnostic code
|
|
(usually a Bib-1 diagnostic) or a client side error code which is
|
|
generated by PHP/YAZ itself, such as "Connect failed", "Init Rejected",
|
|
etc.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="refsect1 seealso" id="refsect1-function.yaz-errno-seealso">
|
|
<h3 class="title">参见</h3>
|
|
<p class="para">
|
|
<ul class="simplelist">
|
|
<li class="member"><span class="function"><a href="yaz_error.html" class="function" rel="rdfs-seeAlso">yaz_error()</a> - Returns error description</span></li>
|
|
<li class="member"><span class="function"><a href="yaz_addinfo.html" class="function" rel="rdfs-seeAlso">yaz_addinfo()</a> - Returns additional error information</span></li>
|
|
</ul>
|
|
</p>
|
|
</div>
|
|
|
|
</div></div></div></body></html> |