@@ -90,10 +90,10 @@ function socket_addrinfo_connect($address)
9090 * a set of AddressInfo instances that we can bind to using socket_addrinfo_bind.
9191 *
9292 * @param string $host Hostname to search.
93- * @param mixed $service The service to connect to. If service is a name , it is translated to the corresponding
94- * port number .
93+ * @param mixed $service The service to connect to. If service is a numeric string , it designates the port.
94+ * Otherwise it designates a network service name, which is mapped to a port by the operating system .
9595 * @param array $hints Hints provide criteria for selecting addresses returned. You may specify the
96- * hints as defined by getadrinfo .
96+ * hints as defined by getaddrinfo .
9797 * @return resource[] Returns an array of AddressInfo instances that can be used with the other socket_addrinfo functions.
9898 * On failure, FALSE is returned.
9999 * @throws SocketsException
@@ -726,7 +726,7 @@ function socket_set_nonblock($socket): void
726726 * @param resource $socket A Socket instance created with socket_create
727727 * or socket_accept.
728728 * @param int $level The level parameter specifies the protocol
729- * level at which the option resides. For example, to retrieve options at
729+ * level at which the option resides. For example, to set options at
730730 * the socket level, a level parameter of
731731 * SOL_SOCKET would be used. Other levels, such as
732732 * TCP, can be used by specifying the protocol number of that level.
0 commit comments