|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
13 + 49 = ?
Subscribe to this entry?

 [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-2019 The PHP Group
All rights reserved.
Last updated: Tue Oct 22 06:01:30 2019 UTC