socket_export_stream

Export a socket into a stream that encapsulates a socket

Description

resourcefalse socket_export_stream(Socket $socket)

Warning

This function is currently not documented; only its argument list is available.

Parameters

socket

Return Values

Return resource or false on failure.

Changelog

Version Description
8.0.0 socket is a Socket instance now; previously, it was a resource.