|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43886 checkdnsrr should distinguisch between 'no records' and 'error'
Submitted: 2008-01-18 03:11 UTC Modified: 2008-01-28 23:27 UTC
From: php dot gewuerzschinken at spamgourmet dot com Assigned:
Status: Not a bug Package: *Network Functions
PHP Version: 5.2.5 OS: Slackware Linux 11
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: php dot gewuerzschinken at spamgourmet dot com
New email:
PHP Version: OS:


 [2008-01-18 03:11 UTC] php dot gewuerzschinken at spamgourmet dot com
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-28 23:27 UTC]
This is not possible as long as res_search() returns -1 both on failure and "no records".
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Apr 10 15:01:23 2021 UTC