I need to catch some warnings being thrown from some php native functions and then handle them.
Specifically:
array dns_get_record ( string $hostnam
If dns_get_record() fails, it should return FALSE, so you can suppress the warning with @ and then check the return value.
dns_get_record()
FALSE
@