← All docs

stream_set_timeout()

Sets timeout period on a stream.

stream_set_timeout()

function stream_set_timeout(resource $stream, int $seconds, int $microseconds = 0): bool

Sets timeout period on a stream.

Parameters:

  • $stream (resource)
  • $seconds (int)
  • $microseconds (int), default 0, optional

Returns: bool

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

Internals

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