Skip to content

Commit c5b80a7

Browse files
committed
Add stream_socket_client’s stub
1 parent 7b2fd6c commit c5b80a7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

stubs/core.stub

+11
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,17 @@ function str_ireplace($search, $replace, $subject, ?int &$count = null) {}
283283
*/
284284
function stream_select(?array &$read, ?array &$write, ?array &$except, ?int $seconds, ?int $microseconds = null) {}
285285

286+
/**
287+
* @param int $error_code
288+
* @param-out int $error_code
289+
* @param string $error_message
290+
* @param-out string $error_message
291+
* @param int-mask<1, 2, 4> $flags
292+
* @param resource|null $context
293+
* @return resource|false
294+
*/
295+
function stream_socket_client(string $address, &$error_code = null, &$error_message = null, ?float $timeout = null, int $flags = 4, $context = null) {}
296+
286297
/**
287298
* @param resource $stream
288299
* @param-out 0|1 $would_block

0 commit comments

Comments
 (0)