protected function AmazonS3StreamWrapper::assertConstructorCalled in AmazonS3 7
Assert that the constructor has been called, call it if not.
Due to PHP bug #40459, the constructor of this class isn't always called for some of the methods. This private method calls the constructor if it hasn't been called before.
See also
https://bugs.php.net/bug.php?id=40459
7 calls to AmazonS3StreamWrapper::assertConstructorCalled()
- AmazonS3StreamWrapper::chmod in ./
AmazonS3StreamWrapper.inc - Changes permissions of the resource.
- AmazonS3StreamWrapper::dir_opendir in ./
AmazonS3StreamWrapper.inc - Support for opendir().
- AmazonS3StreamWrapper::mkdir in ./
AmazonS3StreamWrapper.inc - Support for mkdir().
- AmazonS3StreamWrapper::rename in ./
AmazonS3StreamWrapper.inc - Support for rename().
- AmazonS3StreamWrapper::unlink in ./
AmazonS3StreamWrapper.inc - Support for unlink().
File
- ./
AmazonS3StreamWrapper.inc, line 1355 - Drupal stream wrapper implementation for Amazon S3
Class
- AmazonS3StreamWrapper
- @file Drupal stream wrapper implementation for Amazon S3
Code
protected function assertConstructorCalled() {
if ($this->domain === NULL) {
$this
->__construct();
}
}