summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-crt-php/src/AWS/CRT/IO/InputStream.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-10-20 16:44:35 +0300
committerAndrew Dolgov <[email protected]>2023-10-20 16:44:35 +0300
commit8bec661288b276c98bdb0e773e5f4d5275dc4c87 (patch)
tree8617ebe581c62fc46a7881aa61801ebce9d3c603 /vendor/aws/aws-crt-php/src/AWS/CRT/IO/InputStream.php
parent540438c2eb5452bacad30c247906bfa287f2da1d (diff)
update AWK SDKHEADmaster
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();
}