Skip to content

fix(storage): restore error handler in StreamWrapperTest - #9489

Open
Hectorhammett wants to merge 1 commit into
mainfrom
fix-storage-error-handler
Open

fix(storage): restore error handler in StreamWrapperTest#9489
Hectorhammett wants to merge 1 commit into
mainfrom
fix-storage-error-handler

Conversation

@Hectorhammett

@Hectorhammett Hectorhammett commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

While working on migrating the Auth library into the mono repo, there was a failing test related to the sysv cache tests. In Auth under the Cache folder we are using the @ directive:

$data = @shm_get_var($shmid, $this->options['variableKey']);

Link in repo

which suppresses all warnings.

While running the StreamWrapperTest tests, Storage sets an error handler that it is never removed. Now that auth is being migrated into the mono repo this caused some errors in our migration.

Edit:
Here is an error that is being fixed by this change:
https://github.com/googleapis/google-cloud-php/actions/runs/31647611005/job/94284698982

That error handling is turning a warning into an exception.

@Hectorhammett
Hectorhammett requested review from a team as code owners August 12, 2026 22:42
@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants