- fix example of http_persistent_handles_ident()

- add http_persistent_handles_clean()


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@232925 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Michael Wallner 2007-03-29 15:32:01 +00:00
parent 56f06f6f0e
commit 84ec65b2a6
3 changed files with 136 additions and 8 deletions

View file

@ -1,3 +1,4 @@
<!-- $Revision: 1.1 $ -->
<!-- $Revision: 1.2 $ -->
&reference.http.functions.persistenthandles.http-persistent-handles-count;
&reference.http.functions.persistenthandles.http-persistent-handles-ident;
&reference.http.functions.persistenthandles.http-persistent-handles-clean;

View file

@ -0,0 +1,126 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<refentry id="function.http-persistent-handles-clean">
<refnamediv>
<refname>http_persistent_handles_clean</refname>
<refpurpose>Clean up persistent handles</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>http_persistent_handles_clean</methodname>
<methodparam choice="opt"><type>string</type><parameter>ident</parameter></methodparam>
</methodsynopsis>
<para>
Clean up (close) persistent handles, optionally identified with ident.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>clean</parameter></term>
<listitem>
<para>
the identification string
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.void;
</para>
</refsect1>
<!-- Use when ERRORS exist
<refsect1 role="errors">
&reftitle.errors;
<para>
When does this function throw E_* level errors, or exceptions?
</para>
</refsect1>
-->
<!-- Use when a CHANGELOG exists
<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>Enter the PHP version of change here</entry>
<entry>Description of change</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>
-->
<!--
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>A <function>http_persistent_handles_clean</function> example</title>
<programlisting role="php">
<![CDATA[
]]>
</programlisting>
&example.outputs;
<screen>
</screen>
</example>
</para>
</refsect1>
-->
<!-- Use when adding See Also links
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function></function></member>
<member>Or <link linkend="somethingelse">something else</link></member>
</simplelist>
</para>
</refsect1>
-->
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- $Revision: 1.2 $ -->
<refentry id="function.http-persistent-handles-ident">
<refnamediv>
<refname>http_persistent_handles_ident</refname>
@ -73,7 +73,6 @@
</refsect1>
-->
<refsect1 role="examples">
&reftitle.examples;
<para>
@ -82,18 +81,22 @@
<programlisting role="php">
<![CDATA[
<?php
print_r(http_persistent_handles_ident());
echo http_persistent_handles_ident("CUSTOM"), "\n";
echo http_persistent_handles_ident("MyApp1"), "\n";
http_get("http://www.example.com/");
print_r(http_persistent_handles_count());
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
GLOBAL
CUSTOM
stdClass Object
(
[http_request] => Array
(
[GLOBAL] => Array
[MyApp1] => Array
(
[used] => 0
[free] => 1
@ -116,13 +119,11 @@ stdClass Object
)
)
]]>
</screen>
</example>
</para>
</refsect1>
<!-- Use when adding See Also links
<refsect1 role="seealso">
&reftitle.seealso;