php.net |  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:
MUST BE VALID
Solve the problem:
49 - 40 = ?
Subscribe to this entry?

 
 [2008-01-18 03:11 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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