← All docs

stream_supports_lock()

Tells whether the stream supports locking.

stream_supports_lock()

function stream_supports_lock(resource $stream): bool

Tells whether the stream supports locking.

Parameters:

  • $stream (resource)

Returns: bool

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how stream_supports_lock is implemented in the compiler, see the internals page.