summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-crt-php/src/AWS/CRT/IO/InputStream.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/aws/aws-crt-php/src/AWS/CRT/IO/InputStream.php')
-rw-r--r--vendor/aws/aws-crt-php/src/AWS/CRT/IO/InputStream.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/aws/aws-crt-php/src/AWS/CRT/IO/InputStream.php b/vendor/aws/aws-crt-php/src/AWS/CRT/IO/InputStream.php
index ae5fd46..6aef709 100644
--- a/vendor/aws/aws-crt-php/src/AWS/CRT/IO/InputStream.php
+++ b/vendor/aws/aws-crt-php/src/AWS/CRT/IO/InputStream.php
@@ -14,6 +14,7 @@ final class InputStream extends NativeResource {
const SEEK_END = 2;
public function __construct($stream) {
+ parent::__construct();
$this->stream = $stream;
$options = self::$crt->input_stream_options_new();
// The stream implementation in native just converts the PHP stream into
@@ -24,7 +25,7 @@ final class InputStream extends NativeResource {
}
public function __destruct() {
- self::$crt->input_stream_release($this->release());
+ $this->release();
parent::__destruct();
}