You are here

public function ReadOnlyPhpStreamWrapperTrait::stream_flush in Remote Stream Wrapper 8

Support for fflush().

Nothing will be output to the file, as this is a read-only stream wrapper. However as stream_flush is called during stream_close we should not trigger an error.

Return value

bool FALSE, as no data will be stored.

See also

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

File

src/StreamWrapper/ReadOnlyPhpStreamWrapperTrait.php, line 96

Class

ReadOnlyPhpStreamWrapperTrait
Trait that contains all unimplemented methods.

Namespace

Drupal\remote_stream_wrapper\StreamWrapper

Code

public function stream_flush() {
  return FALSE;
}