Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<socket_wsaprotocol_info_exportsocket_wsaprotocol_info_release>
^Socket FunctionsLast updated: Mon, 26 Oct 2026

socket_wsaprotocol_info_import

(PHP 7 >= 7.3.0, PHP 8)

socket_wsaprotocol_info_import — Imports a Socket from another Process

Description

function socket_wsaprotocol_info_import(string $info_id): Socket|false

Imports a socket which has formerly been exported from another process.

Note:

This function is available only on Windows.

Parameters

info_id

The ID which has been returned by a former call to socket_wsaprotocol_info_export().

Return Values

Returns a Socket instance on success, or false on failure

Changelog

Version Description
8.0.0 On success, this function returns a Socket instance now; previously, a resource was returned.

See Also


<socket_wsaprotocol_info_exportsocket_wsaprotocol_info_release>
^Socket FunctionsLast updated: Mon, 26 Oct 2026