|  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
 [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: Tue Jan 19 00:01:23 2021 UTC