Skip to content

fix: no raw PHP warning when the Redis host does not resolve - #23

Merged
ogorzalka merged 1 commit into
mainfrom
fix/connect-warning
Nov 27, 2026
Merged

ogorzalka merged 1 commit into
mainfrom
fix/connect-warning

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

Seen on a Bedrock test site with Redis stopped: Redis::connect(): php_network_getaddresses… was printed in the web log and in WP-CLI output, next to the package's own message. phpredis raises it before throwing; the connector now swallows warnings for the connection call only and restores the handler. The exception and the error-log line are unchanged. The two new tests fail without the fix.

@ogorzalka
ogorzalka merged commit 1f7e4b6 into main Nov 27, 2026
11 checks passed
@ogorzalka ogorzalka mentioned this pull request Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant