-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.p3This is a minor priority issueThis is a minor priority issuequeuedThis issues is on the AWS team's backlogThis issues is on the AWS team's backlog
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.p3This is a minor priority issueThis is a minor priority issuequeuedThis issues is on the AWS team's backlogThis issues is on the AWS team's backlog