intelephense
1.14.41.16.1
lib/stub/standard/standard_6.phplib/stub/standard/standard_6.php+9−1
Index: package/lib/stub/standard/standard_6.php
===================================================================
--- package/lib/stub/standard/standard_6.php
+++ package/lib/stub/standard/standard_6.php
@@ -294,11 +294,13 @@
* </p>
* @param int &$error_code [optional] <p>
* Will be set to the system level error number if connection fails.
* </p>
+ * @param-out int $error_code
* @param string &$error_message [optional] <p>
* Will be set to the system level error message if the connection fails.
* </p>
+ * @param-out string $error_message
* @param float|null $timeout [optional] <p>
* Number of seconds until the connect() system call
* should timeout.
* This parameter only applies when not making asynchronous
@@ -360,11 +362,13 @@
* call. This is most likely due to a problem initializing the socket.
* Note that the errno and
* errstr arguments will always be passed by reference.
* </p>
+ * @param-out int $error_code
* @param string &$error_message [optional] <p>
* See errno description.
* </p>
+ * @param-out string $error_message
* @param int $flags [optional] <p>
* A bitmask field which may be set to any combination of socket creation
* flags.
* </p>
@@ -393,8 +397,9 @@
* <p>
* Can also be determined later using
* stream_socket_get_name.
* </p>
+ * @param-out string $peer_name
* @return resource|false Returns a stream to the accepted socket connection or FALSE on failure.
*/
function stream_socket_accept($socket, ?float $timeout, &$peer_name) {}
@@ -445,8 +450,9 @@
* @param string &$address [optional] <p>
* If address is provided it will be populated with
* the address of the remote socket.
* </p>
+ * @param-out string $address
* @return string|false the read data, as a string, or false on error
*/
function stream_socket_recvfrom($socket, int $length, int $flags = 0, &$address): string|false {}
@@ -661,9 +667,9 @@
array $fields,
string $separator = ",",
string $enclosure = '"',
#[StubsElementAvailable(from: '7.0')] string $escape = "\\",
- #[StubsElementAvailable('8.1')] string $eol = PHP_EOL
+ #[StubsElementAvailable('8.1')] string $eol = "\n"
): int|false {}
/**
* Portable advisory file locking
@@ -677,8 +683,9 @@
* @param int &$would_block [optional] <p>
* The optional third argument is set to 1 if the lock would block
* (EWOULDBLOCK errno condition).
* </p>
+ * @param-out int $would_block
* @return bool true on success or false on failure.
*/
function flock($stream, int $operation, &$would_block): bool {}
@@ -1076,8 +1083,9 @@
* The microseconds part of the timeout to be set.
* </p>
* @return bool true on success or false on failure.
*/
+#[Deprecated(since: '8.5')]
function socket_set_timeout(
$stream,
int $seconds,
#[StubsElementAvailable(from: '5.3', to: '5.6')] int $microseconds,