Open p8nut opened 4 months ago
dont know if it was planned but it seems possible to implement file lock functions that are missing using the s3 object lock
but i have no idea if it's possible to native implement the truncate functions.
Hi @p8nut ,
Thanks for the Feature request and PR. I think this is a valid request. We will have someone review.
All the best, Ran~
Describe the feature
Add the missing functions:
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: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
SDK version used
3.316.3
Environment details (Version of PHP (
php -v
)? OS name and version, etc.)PHP 8.1.27