This function does not support SSL connections.
I have submitted a bug/enhacement request because of this: https://bugs.php.net/bug.php?id=70939(PHP 5 >= 5.4.0, PHP 7, PHP 8)
socket_import_stream — Importa uno stream
Importa uno stream che incapsula un socket in una risorsa dell'estensione socket.
streamLa risorsa dello stream da importare.
Restituisce false in caso di fallimento.
| Versione | Descrizione |
|---|---|
| 8.0.0 | In caso di successo, questa funzione restituisce ora un'istanza di Socket; in precedenza veniva restituita una resource. |
Example #1 Esempio di socket_import_stream()
<?php
$stream = stream_socket_server("udp://0.0.0.0:58380", $errno, $errstr, STREAM_SERVER_BIND);
$sock = socket_import_stream($stream);
?>This function does not support SSL connections.
I have submitted a bug/enhacement request because of this: https://bugs.php.net/bug.php?id=70939