public function LocalReadOnlyStream::stream_flush

Support for fflush().

Nothing will be output to the file, as this is a read-only stream wrapper.

Return value

bool FALSE, as no data will be stored.

Overrides LocalStream::stream_flush

See also

http://php.net/manual/streamwrapper.stream-flush.php

File

drupal/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php, line 123
Definition of Drupal\Core\StreamWrapper\LocalReadOnlyStream.

Class

LocalReadOnlyStream
Defines a read-only Drupal stream wrapper base class for local files.

Namespace

Drupal\Core\StreamWrapper

Code

public function stream_flush() {
  trigger_error('stream_flush() not supported for read-only stream wrappers', E_USER_WARNING);
  return FALSE;
}