From 8bec661288b276c98bdb0e773e5f4d5275dc4c87 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 20 Oct 2023 16:44:35 +0300 Subject: update AWK SDK --- vendor/aws/aws-crt-php/src/.gitignore | 3 --- vendor/aws/aws-crt-php/src/AWS/CRT/HTTP/Request.php | 2 +- vendor/aws/aws-crt-php/src/AWS/CRT/IO/InputStream.php | 3 ++- 3 files changed, 3 insertions(+), 5 deletions(-) delete mode 100644 vendor/aws/aws-crt-php/src/.gitignore (limited to 'vendor/aws/aws-crt-php/src') diff --git a/vendor/aws/aws-crt-php/src/.gitignore b/vendor/aws/aws-crt-php/src/.gitignore deleted file mode 100644 index 0445360..0000000 --- a/vendor/aws/aws-crt-php/src/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -api.h -pkgconfig/ -*.so* diff --git a/vendor/aws/aws-crt-php/src/AWS/CRT/HTTP/Request.php b/vendor/aws/aws-crt-php/src/AWS/CRT/HTTP/Request.php index 9b4f07c..bec4ac1 100644 --- a/vendor/aws/aws-crt-php/src/AWS/CRT/HTTP/Request.php +++ b/vendor/aws/aws-crt-php/src/AWS/CRT/HTTP/Request.php @@ -13,7 +13,7 @@ class Request extends Message { public function __construct($method, $path, $query = [], $headers = [], $body_stream = null) { parent::__construct($method, $path, $query, $headers); if (!is_null($body_stream) && !($body_stream instanceof InputStream)) { - throw InvalidArgumentException('body_stream must be an instance of ' . InputStream::class); + throw new \InvalidArgumentException('body_stream must be an instance of ' . InputStream::class); } $this->body_stream = $body_stream; } 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(); } -- cgit v1.2.3