From d64960f494aa37710f086e43861aa042468b0426 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 13 Apr 2002 02:10:24 +0000 Subject: [PATCH] Correct documentation of socket_get_status. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@78010 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/network.xml | 21 ++++++++++----------- functions/sockets.xml | 35 +++++++++++++---------------------- 2 files changed, 23 insertions(+), 33 deletions(-) diff --git a/functions/network.xml b/functions/network.xml index b35973b54a..70304e406c 100644 --- a/functions/network.xml +++ b/functions/network.xml @@ -1,5 +1,5 @@ - + Network Functions Network @@ -728,18 +728,22 @@ echo $out; socket_get_status - Returns information about existing socket resource + Returns information about an existing socket stream Description arraysocket_get_status - resourcesocket_get_status + resourcesocketstream - Returns information about an existing socket resource. Currently - returns four entries in the result array: + Returns information about an existing socket stream. This function only + works on sockets created by fsockopen, + pfsockopen or network sockets returned by + fopen when opening URLs. It does NOT work + with sockets from the Socket extension. + Currently returns four entries in the result array: @@ -766,12 +770,7 @@ echo $out; - See also: socket_accept, - socket_bind, - socket_connect, - socket_listen, - socket_strerror, and the - Socket extension. + See also: Socket extension. diff --git a/functions/sockets.xml b/functions/sockets.xml index 2e6c36f82b..42d01af2b1 100644 --- a/functions/sockets.xml +++ b/functions/sockets.xml @@ -1,5 +1,5 @@ - + Socket functions Sockets @@ -218,8 +218,7 @@ echo "OK.\n\n"; socket_bind, socket_connect, socket_listen, - socket_create, - socket_get_status, and + socket_create, and socket_strerror. @@ -268,8 +267,7 @@ echo "OK.\n\n"; See also socket_connect, socket_listen, - socket_create, - socket_get_status, and + socket_create, and socket_strerror. @@ -305,8 +303,7 @@ echo "OK.\n\n"; See also socket_bind, socket_listen, - socket_create, - socket_get_status, and + socket_create, and socket_strerror. @@ -354,8 +351,7 @@ echo "OK.\n\n"; See also socket_bind, socket_listen, - socket_create, - socket_get_status, and + socket_create, and socket_strerror. @@ -397,8 +393,7 @@ echo "OK.\n\n"; socket_accept, socket_bind, socket_connect, - socket_create, - socket_get_status, and + socket_create, and socket_strerror. @@ -448,8 +443,7 @@ echo "OK.\n\n"; socket_bind, socket_connect, socket_listen, - socket_strerror, - socket_get_status and + socket_strerror, and socket_write. @@ -505,9 +499,8 @@ echo "OK.\n\n"; socket_accept, socket_bind, socket_connect, - socket_listen, - socket_strerror, and - socket_get_status. + socket_listen, and + socket_strerror. @@ -564,9 +557,8 @@ if (($ret = socket_bind ($socket, '127.0.0.1', 80)) < 0) { socket_accept, socket_bind, socket_connect, - socket_listen, - socket_create, and - socket_get_status. + socket_listen, and + socket_create. @@ -597,9 +589,8 @@ if (($ret = socket_bind ($socket, '127.0.0.1', 80)) < 0) { socket_bind, socket_connect, socket_listen, - socket_read, - socket_strerror, and - socket_get_status. + socket_read, and + socket_strerror.