Statement on glibc/iconv Vulnerability

socket_atmark

(PHP 8 >= 8.3.0, PHP 8)

socket_atmarkDetermines whether socket is at out-of-band mark

Beschreibung

socket_atmark(Socket $socket): bool

Determines whether socket is at out-of-band mark.

Parameter-Liste

socket

A Socket instance created with socket_create().

Rückgabewerte

Gibt bei Erfolg true zurück. Bei einem Fehler wird false zurückgegeben.

Beispiele

Beispiel #1 Using socket_atmark() to set the source address

<?php
// Create a new socket
$sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
var_dump(socket_atmark($sock));
// Close
socket_close($sock);
?>

Siehe auch

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top