function 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.