Moved the note to method synopsis, like all the other socket functions

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@241336 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nick Berard 2007-08-16 18:22:54 +00:00
parent 745ab9c2ef
commit 6567039811

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<!-- $Revision: 1.9 $ -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.socket-close">
<refnamediv>
<refname>socket_close</refname>
@ -14,7 +14,8 @@
</methodsynopsis>
<para>
<function>socket_close</function> closes the socket resource
given by <parameter>socket</parameter>.
given by <parameter>socket</parameter>. This function is specific to sockets
and cannot be used on any other type of resources.
</para>
</refsect1>
@ -25,16 +26,10 @@
<varlistentry>
<term><parameter>socket</parameter></term>
<listitem>
<note>
<para>
<function>socket_close</function> can't be used on PHP file resources
created with <function>fopen</function>, <function>popen</function>,
<function>fsockopen</function>, or <function>pfsockopen</function>;
it is meant for sockets created with
<function>socket_create</function> or
<function>socket_accept</function>.
A valid socket resource created with <function>socket_create</function>
or <function>socket_accept</function>.
</para>
</note>
</listitem>
</varlistentry>
</variablelist>