Input Stream bindings (#18)

* Initial aws_input_stream <-> php_stream implementation

* Added comments about useful references

* updated aws-crt-ffi to get latest aws-lc, faster builds

* Fixed inconsistency between PHP5/7 versions of php_stream_from_zval
This commit is contained in:
Justin Boswell
2021-03-19 13:29:14 -07:00
committed by GitHub
parent 73ecd3bc8a
commit 974fe3d74a
11 changed files with 441 additions and 49 deletions
@@ -33,11 +33,11 @@ final class StaticCredentialsProvider extends CredentialsProvider {
}
$this->credentials = new AwsCredentials($options);
$provider_options = self::$crt->aws_credentials_provider_static_options_new();
self::$crt->aws_credentials_provider_static_options_set_access_key_id($provider_options, $this->credentials->access_key_id);
self::$crt->aws_credentials_provider_static_options_set_secret_access_key($provider_options, $this->credentials->secret_access_key);
self::$crt->aws_credentials_provider_static_options_set_session_token($provider_options, $this->credentials->session_token);
$this->acquire(self::$crt->aws_credentials_provider_static_new($provider_options));
self::$crt->aws_credentials_provider_static_options_release($provider_options);
$provider_options = self::$crt->credentials_provider_static_options_new();
self::$crt->credentials_provider_static_options_set_access_key_id($provider_options, $this->credentials->access_key_id);
self::$crt->credentials_provider_static_options_set_secret_access_key($provider_options, $this->credentials->secret_access_key);
self::$crt->credentials_provider_static_options_set_session_token($provider_options, $this->credentials->session_token);
$this->acquire(self::$crt->credentials_provider_static_new($provider_options));
self::$crt->credentials_provider_static_options_release($provider_options);
}
}