Latest Submodules (#73)

This commit is contained in:
Waqar Ahmed Khan
2023-02-06 19:00:30 -08:00
committed by GitHub
parent f5c64ee7c5
commit 56009e8c03
4 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -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();
}