#43886 [Opn->Bgs]: checkdnsrr should distinguisch between 'no records' and 'error'
| From: | tony2001@php.net | Date: | Mon, 28 Jan 2008 23:27:31 +0000 |
| Subject: | #43886 [Opn->Bgs]: checkdnsrr should distinguisch between 'no records' and 'error' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-121631@lists.php.net to get a copy of this message | ||
ID: 43886
Updated by: tony2001@php.net
Reported By: php dot gewuerzschinken at spamgourmet dot com
-Status: Open
+Status: Bogus
Bug Type: *Network Functions
Operating System: Slackware Linux 11
PHP Version: 5.2.5
New Comment:
This is not possible as long as res_search() returns -1 both on failure
and "no records".
Previous Comments:
------------------------------------------------------------------------
[2008-01-18 03:11:10] php dot gewuerzschinken at spamgourmet dot com
Description:
------------
I'd like to see the function distinguishing between 'no records'
(boolean function result or zero) and 'error' (Exception or negative
function result).
In the case of an error, one would log the error and continue or not.
And if there is no record, one would sort out the invalid domain.
At the moment I have to sort out the domain in every way even if the
domain is valid but the machine cannot connect to a domain name service
or what ever.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43886&edit=1