You are here

protected function S3fsStream::_assert_constructor_called in S3 File System 8.2

Call the constructor it it hasn't been called yet.

Due to PHP bug #40459, the constructor of this class isn't always called for some of the methods.

See also

https://bugs.php.net/bug.php?id=40459

6 calls to S3fsStream::_assert_constructor_called()
S3fsStream::dir_opendir in src/StreamWrapper/S3fsStream.php
Support for opendir().
S3fsStream::mkdir in src/StreamWrapper/S3fsStream.php
Support for mkdir().
S3fsStream::rename in src/StreamWrapper/S3fsStream.php
Support for rename().
S3fsStream::rmdir in src/StreamWrapper/S3fsStream.php
Support for rmdir().
S3fsStream::unlink in src/StreamWrapper/S3fsStream.php
Support for unlink().

... See full list

File

src/StreamWrapper/S3fsStream.php, line 1555

Class

S3fsStream
Defines a Drupal s3fs (s3fs://) stream wrapper class.

Namespace

Drupal\s3fs\StreamWrapper

Code

protected function _assert_constructor_called() {
  if (!$this->constructed) {
    $this
      ->__construct();
  }
}