Note that the 3rd and 4th args to fsockopen() are always passed by ref.

Closes Bug #8087.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@70194 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Torben Wilson 2002-02-13 21:59:59 +00:00
parent 14fc4d4708
commit 2de8a821f3

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.55 $ -->
<!-- $Revision: 1.56 $ -->
<reference id="ref.network">
<title>Network Functions</title>
<titleabbrev>Network</titleabbrev>
@ -171,14 +171,15 @@
If the call fails, it will return &false; and if the optional
<parameter>errno</parameter> and <parameter>errstr</parameter>
arguments are present they will be set to indicate the actual
system level error that occurred on the system-level
<literal>connect()</literal> call. If the returned errno is
<literal>0</literal> and the function returned &false;, it is an
indication that the error occurred before the
<literal>connect()</literal> call. This is most likely due to a
problem initializing the socket. Note that the
<parameter>errno</parameter> and <parameter>errstr</parameter>
arguments must be passed by reference.
system level error that occurred in the system-level
<literal>connect()</literal> call. If the value returned in
<parameter>errno</parameter> is <literal>0</literal> and the
function returned &false;, it is an indication that the error
occurred before the <literal>connect()</literal> call. This is
most likely due to a problem initializing the socket. Note that
the <parameter>errno</parameter> and
<parameter>errstr</parameter> arguments will always be passed by
reference.
</para>
<para>
Depending on the environment, the Unix domain or the optional