Skip to content

Mute errors in dns_get_record #146

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

Closed
wants to merge 1 commit into from
Closed

Mute errors in dns_get_record #146

wants to merge 1 commit into from

Conversation

rixafy
Copy link
Contributor

@rixafy rixafy commented Jul 16, 2019

Hi, I'm using latest PHP 7.3, and this exception is very rare and random, but it happenes when PHP is updating a lot of servers.

ErrorException: dns_get_record(): A temporary server error occurred.

It appears that this exception can't be caught, it's some bug in PHP (https://bugs.php.net/bug.php?id=73149&thanks=6) so I muted exceptions in dns_get_record and add check for bool(false).

Last time it happened with host mc.splaycz.tk and port 25565.

@xPaw xPaw closed this in e70d843 Nov 14, 2019
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