intelephense

1.14.41.16.1
lib/stub/sockets/sockets.php
lib/stub/sockets/sockets.php
+37
Index: package/lib/stub/sockets/sockets.php
===================================================================
--- package/lib/stub/sockets/sockets.php
+++ package/lib/stub/sockets/sockets.php
@@ -327,8 +327,9 @@
  * </p>
  * @param array &$pair <p>
  * Reference to an array in which the two socket resources will be inserted.
  * </p>
+ * @param-out array $pair
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  */
 function socket_create_pair(int $domain, int $type, int $protocol, &$pair): bool {}
 
@@ -486,11 +487,13 @@
  * <b>socket_getsockname</b> will return the Unix filesystem
  * path (e.g. /var/run/daemon.sock) in the
  * <i>address</i> parameter.
  * </p>
+ * @param-out string $address
  * @param int &$port [optional] <p>
  * If provided, this will hold the associated port.
  * </p>
+ * @param-out int $port
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. <b>socket_getsockname</b> may also return
  * <b>FALSE</b> if the socket type is not any of <b>AF_INET</b>,
  * <b>AF_INET6</b>, or <b>AF_UNIX</b>, in which
  * case the last socket error code is not updated.
@@ -518,12 +521,14 @@
  * <b>socket_getpeername</b> will return the Unix filesystem
  * path (e.g. /var/run/daemon.sock) in the
  * <i>address</i> parameter.
  * </p>
+ * @param-out string $address
  * @param int &$port [optional] <p>
  * If given, this will hold the port associated to
  * <i>address</i>.
  * </p>
+ * @param-out int $port
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. <b>socket_getpeername</b> may also return
  * <b>FALSE</b> if the socket type is not any of <b>AF_INET</b>,
  * <b>AF_INET6</b>, or <b>AF_UNIX</b>, in which
  * case the last socket error code is not updated.
@@ -614,8 +619,9 @@
  * <i>buf</i>. If an error occurs, if the
  * connection is reset, or if no data is
  * available, <i>buf</i> will be set to <b>NULL</b>.
  * </p>
+ * @param-out string $data
  * @param int $length <p>
  * Up to <i>len</i> bytes will be fetched from remote host.
  * </p>
  * @param int $flags <p>
@@ -743,8 +749,9 @@
  * @param string &$data <p>
  * The data received will be fetched to the variable specified with
  * <i>buf</i>.
  * </p>
+ * @param-out string $data
  * @param int $length <p>
  * Up to <i>len</i> bytes will be fetched from remote host.
  * </p>
  * @param int $flags <p>
@@ -791,14 +798,16 @@
  * <i>name</i> is the path to the file. Else, for
  * unconnected sockets, <i>name</i> is the IP address of,
  * the remote host, or <b>NULL</b> if the socket is connection-oriented.
  * </p>
+ * @param-out string $address
  * @param int &$port [optional] <p>
  * This argument only applies to <b>AF_INET</b> and
  * <b>AF_INET6</b> sockets, and specifies the remote port
  * from which the data is received. If the socket is connection-oriented,
  * <i>port</i> will be <b>NULL</b>.
  * </p>
+ * @param-out int $port
  * @return int|false <b>socket_recvfrom</b> returns the number of bytes received,
  * or <b>FALSE</b> if there was an error. The actual error code can be retrieved by
  * calling <b>socket_last_error</b>. This error code may be
  * passed to <b>socket_strerror</b> to get a textual explanation
@@ -2397,9 +2406,37 @@
 /**
  * @since 8.4
  */
 define('SO_BINDTOIFINDEX', 62);
+
 /**
+ * @since 8.5
+ */
+const AF_PACKET = 0;
+
+const SO_BUSY_POLL = 0;
+
+const IPPROTO_ICMP = 0;
+
+const IPPROTO_ICMPV6 = 0;
+
+const ETH_P_IP = 0;
+
+const ETH_P_IPV6 = 0;
+
+const ETH_P_LOOP = 0;
+
+const ETH_P_ALL = 0;
+
+const UDP_SEGMENT = 0;
+
+const SHUT_RD = 0;
+
+const SHUT_WR = 0;
+
+const SHUT_RDWR = 0;
+
+/**
  * @since 8.0
  */
 final class Socket
 {