stream_supports_lock

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

stream_supports_lockTells whether the stream supports locking

Beschreibung

stream_supports_lock(resource$stream): bool

Tells whether the stream supports locking through flock().

Parameter-Liste

stream

The stream to check.

Rückgabewerte

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

Siehe auch

  • flock() - Portables Datei-Sperrverfahren (advisory locking)
To Top