Google\Cloud\Storage\StreamWrapper::stream_set_option is not implemented! #4744
Labels
api: storage
Issues related to the Cloud Storage API.
type: question
Request for information or clarification. Not an issue.
Hi, after talk with google support they recommended me to write directly here.
We have upgraded our developments from php7.3 to php7.4 and we started to receive a Warning message when we include some file from Google Storage Bucket.
Our code execute an include_once("gs://xxxxx/xxx.php") and to do dat we have to execute previously the following code:
This allow to register the StreamWrapper that allows to include a PHP file from 'gs://path'
In php7.4 we receive in APPENGINE standard version php74 de following Warning appears in the Loggins in all calls after doing the include
Official documentation of PHP: https://www.php.net/manual/en/migration74.incompatible.php says
So if you add Google\Cloud\Storage\StreamWrapper::stream_set_option funcion returning false it will be enough
Environment details
Steps to reproduce
Deploy in appengine standard php74 a script that includes a php file from a Datastorage bucket
Code example
Thanks!
The text was updated successfully, but these errors were encountered: