From a57f482b31fb449a3110fbe35171830d944c77a3 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Fri, 11 Apr 2003 05:44:46 +0000 Subject: [PATCH] Add regarding use of IPv6 numerical addresses git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@123119 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/network/functions/fsockopen.xml | 8 +++++++- reference/stream/functions/stream-socket-client.xml | 8 +++++++- reference/stream/functions/stream-socket-server.xml | 8 +++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/reference/network/functions/fsockopen.xml b/reference/network/functions/fsockopen.xml index 0dbde807a1..dde2b19dd3 100644 --- a/reference/network/functions/fsockopen.xml +++ b/reference/network/functions/fsockopen.xml @@ -1,5 +1,5 @@ - + @@ -125,6 +125,12 @@ if (!$fp) { a link for the socket until it actually needs to send or receive data. + + + When specifying a numerical IPv6 address (i.e. fe80::1) you must enclose + the IP in square brackets. fsockopen("tcp://[fe80::1]", 80). + + The timeout parameter was introduced in PHP 3.0.9 and UDP support was added in PHP 4. diff --git a/reference/stream/functions/stream-socket-client.xml b/reference/stream/functions/stream-socket-client.xml index 0022b8422a..83f618f784 100644 --- a/reference/stream/functions/stream-socket-client.xml +++ b/reference/stream/functions/stream-socket-client.xml @@ -1,5 +1,5 @@ - + stream_socket_client @@ -124,6 +124,12 @@ if (!$fp) { a link for the socket until it actually needs to send or receive data. + + + When specifying a numerical IPv6 address (i.e. fe80::1) you must enclose + the IP in square brackets. stream_socket_client("tcp://[fe80::1]:80"). + + See also stream_socket_server, stream_set_blocking, stream_set_timeout, diff --git a/reference/stream/functions/stream-socket-server.xml b/reference/stream/functions/stream-socket-server.xml index a9e8a587ca..297f46bb7c 100644 --- a/reference/stream/functions/stream-socket-server.xml +++ b/reference/stream/functions/stream-socket-server.xml @@ -1,5 +1,5 @@ - + stream_socket_server @@ -102,6 +102,12 @@ if (!$socket) { ]]> + + + When specifying a numerical IPv6 address (i.e. fe80::1) you must enclose + the IP in square brackets. stream_socket_server("tcp://[fe80::1]:80"). + + See also stream_socket_client, stream_set_blocking, stream_set_timeout,