You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to BC break, this cannot be handled as a bug fix but there is a space to improve the error handling.
Firstly it would be useful to introduce parameter to switch the error handling to throw exception (e.g. bool $throw), that would allow throwing specialized exception which would allow to identify type of the error.
Additionally it might be also useful to add retry mechanism as some failures for TRY_AGAIN error.
The text was updated successfully, but these errors were encountered:
I was just checking https://bugs.php.net/bug.php?id=70473 and it might be also useful to have a parameter to allow returning just the types that don't fail. In this case it might be actually better not to throw even if all types fail and rather return empty array as it was the case before. So maybe instead of throw it might make sense to introduce $error_mode parameter which could be an enum or constants like:
Description
This is in relation to https://bugs.php.net/bug.php?id=73149 (with 142 up votes) which points problematic error handling of
dns_get_record
.Due to BC break, this cannot be handled as a bug fix but there is a space to improve the error handling.
Firstly it would be useful to introduce parameter to switch the error handling to throw exception (e.g.
bool $throw
), that would allow throwing specialized exception which would allow to identify type of the error.Additionally it might be also useful to add retry mechanism as some failures for
TRY_AGAIN
error.The text was updated successfully, but these errors were encountered: