Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.7

Request #10641 Some DNSBLs return multiple A entries
Submitted: 2007-04-06 18:46 UTC
From: wshs Assigned: nohn
Status: Closed Package: Net_DNSBL (version 1.2.1)
PHP Version: 5.2.1 OS: FreeBSD 5.5-PRERELEASE
Roadmaps: 1.3.0    
Subscription  


 [2007-04-06 18:46 UTC] wshs (Michael Reynolds)
Description: ------------ As the summary says, some DNSBLs return more than one A record to make mathematic comparisons easier. For example, one might only use proxy and exploited web server result from sorbs to protect forums. This could be added by duplicating the TXT parsing code and turning ['record'] into an array. Test script: --------------- # Proposed change on/around line 169, not an actual test script foreach ($response->answer as $txt) { $this->results[$host]['record'][] = $txt->text[0]; }

Comments

 [2007-04-06 18:51 UTC] wshs (Michael Reynolds)
Apologies and all that, this should do the trick: foreach ($response->answer as $answer) { $this->results[$host]['record'][] = $answer->address; }
 [2007-05-06 16:44 UTC] nohn (Sebastian Nohn)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Will be fixed with release 1.3.0 included in multi check (see documentation)