summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-crt-php/src
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
parent540438c2eb5452bacad30c247906bfa287f2da1d (diff)
update AWK SDKHEADmaster
Diffstat (limited to 'vendor/aws/aws-crt-php/src')
-rw-r--r--vendor/aws/aws-crt-php/src/.gitignore3
-rw-r--r--vendor/aws/aws-crt-php/src/AWS/CRT/HTTP/Request.php2
-rw-r--r--vendor/aws/aws-crt-php/src/AWS/CRT/IO/InputStream.php3
3 files changed, 3 insertions, 5 deletions
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();
}