cvs: phpdoc /en/reference/network/functions fsockopen.xml /en/reference/stream/functions stream-socket-client.xml stream-socket-server.xml
| From: | Sara Golemon | Date: | Fri, 11 Apr 2003 05:44:46 +0000 |
| Subject: | cvs: phpdoc /en/reference/network/functions fsockopen.xml /en/reference/stream/functions stream-socket-client.xml stream-socket-server.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969352529@lists.php.net to get a copy of this message | ||
pollita Fri Apr 11 01:44:46 2003 EDT
Modified files:
/phpdoc/en/reference/stream/functions stream-socket-client.xml
stream-socket-server.xml
/phpdoc/en/reference/network/functions fsockopen.xml
Log:
Add <tip> regarding use of IPv6 numerical addresses
Index: phpdoc/en/reference/stream/functions/stream-socket-client.xml
diff -u phpdoc/en/reference/stream/functions/stream-socket-client.xml:1.1
phpdoc/en/reference/stream/functions/stream-socket-client.xml:1.2
--- phpdoc/en/reference/stream/functions/stream-socket-client.xml:1.1 Fri Apr 4 11:34:39 2003
+++ phpdoc/en/reference/stream/functions/stream-socket-client.xml Fri Apr 11 01:44:46 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry id="function.stream-socket-client">
<refnamediv>
<refname>stream_socket_client</refname>
@@ -124,6 +124,12 @@
a link for the socket until it actually needs to send or receive data.
</simpara>
</warning>
+ <tip>
+ <simpara>
+ When specifying a numerical IPv6 address (i.e. fe80::1) you must enclose
+ the IP in square brackets.
<literal>stream_socket_client("tcp://[fe80::1]:80")</literal>.
+ </simpara>
+ </tip>
See also <function>stream_socket_server</function>,
<function>stream_set_blocking</function>,
<function>stream_set_timeout</function>,
Index: phpdoc/en/reference/stream/functions/stream-socket-server.xml
diff -u phpdoc/en/reference/stream/functions/stream-socket-server.xml:1.1
phpdoc/en/reference/stream/functions/stream-socket-server.xml:1.2
--- phpdoc/en/reference/stream/functions/stream-socket-server.xml:1.1 Fri Apr 4 14:57:01 2003
+++ phpdoc/en/reference/stream/functions/stream-socket-server.xml Fri Apr 11 01:44:46 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry id="function.stream-socket-server">
<refnamediv>
<refname>stream_socket_server</refname>
@@ -102,6 +102,12 @@
]]>
</programlisting>
</example>
+ <tip>
+ <simpara>
+ When specifying a numerical IPv6 address (i.e. fe80::1) you must enclose
+ the IP in square brackets.
<literal>stream_socket_server("tcp://[fe80::1]:80")</literal>.
+ </simpara>
+ </tip>
See also <function>stream_socket_client</function>,
<function>stream_set_blocking</function>,
<function>stream_set_timeout</function>,
Index: phpdoc/en/reference/network/functions/fsockopen.xml
diff -u phpdoc/en/reference/network/functions/fsockopen.xml:1.3
phpdoc/en/reference/network/functions/fsockopen.xml:1.4
--- phpdoc/en/reference/network/functions/fsockopen.xml:1.3 Sun Aug 11 07:14:26 2002
+++ phpdoc/en/reference/network/functions/fsockopen.xml Fri Apr 11 01:44:46 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/network.xml, last change in rev 1.2 -->
<refentry id="function.fsockopen">
<refnamediv>
@@ -125,6 +125,12 @@
a link for the socket until it actually needs to send or receive data.
</simpara>
</warning>
+ <tip>
+ <simpara>
+ When specifying a numerical IPv6 address (i.e. fe80::1) you must enclose
+ the IP in square brackets. <literal>fsockopen("tcp://[fe80::1]",
80)</literal>.
+ </simpara>
+ </tip>
<note>
<para>The timeout parameter was introduced in PHP 3.0.9 and
UDP support was added in PHP 4.