function LocalStream::stream_close

Same name in other branches
  1. 9 core/lib/Drupal/Core/StreamWrapper/LocalStream.php \Drupal\Core\StreamWrapper\LocalStream::stream_close()
  2. 10 core/lib/Drupal/Core/StreamWrapper/LocalStream.php \Drupal\Core\StreamWrapper\LocalStream::stream_close()
  3. 11.x core/lib/Drupal/Core/StreamWrapper/LocalStream.php \Drupal\Core\StreamWrapper\LocalStream::stream_close()

Support for fclose().

Return value

bool TRUE if stream was successfully closed.

Overrides PhpStreamWrapperInterface::stream_close

See also

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

File

core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 295

Class

LocalStream
Defines a Drupal stream wrapper base class for local files.

Namespace

Drupal\Core\StreamWrapper

Code

public function stream_close() {
    return fclose($this->handle);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.