Skip to content

Missing functions in Aws\S3\StreamWrapper #2954

@p8nut

Description

@p8nut

Describe the feature

Add the missing functions:

  • stream_set_option
  • stream_metadata
    to match fully implement the streamWrapper wlass

Use Case

As I Wrap a Stream in one of my project the interpreter complain about those two function missing.

Proposed Solution

In the php documentation, the two functions have the return value described as Returns true on success or false on failure. If option is not implemented, false should be returned. so we could simply implements the functions like that:

<?php

    public function stream_set_option($option, $arg1, $arg2)
    {
        return false;
    }

    public function stream_metadata($path, $option, $value)
    {
        return false;
    }

see https://www.php.net/manual/en/streamwrapper.stream-set-option.php
and https://www.php.net/manual/en/streamwrapper.stream-metadata.php

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

SDK version used

3.316.3

Environment details (Version of PHP (php -v)? OS name and version, etc.)

PHP 8.1.27

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.p3This is a minor priority issuequeuedThis issues is on the AWS team's backlog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions