Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file_get_contents warnings suppression #567

Open
blacktek opened this issue Dec 12, 2024 · 0 comments
Open

file_get_contents warnings suppression #567

blacktek opened this issue Dec 12, 2024 · 0 comments

Comments

@blacktek
Copy link

Currently file_get_contents is called like this

$response = file_get_contents($this->siteVerifyUrl, false, $context);

Could it make sense to use the error suppression with @ to avoid random errors going to stdout?

We capture few errors per week like
Failed to open stream: HTTP request failed! HTTP/1.1 503 Service Unavailable

@blacktek blacktek changed the title file_get_contents warning suppressions file_get_contents warnings suppression Dec 12, 2024
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

No branches or pull requests

2 participants
@blacktek and others