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

Bug #15945 improper string used to check domain dns
Submitted: 2009-02-25 16:37 UTC Modified: 2009-02-26 10:42 UTC
From: crmalibu Assigned: amir
Status: Closed Package: Validate (version 0.8.2)
PHP Version: 5.2.8 OS: irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2009-02-25 16:37 UTC] crmalibu (john doe)
Description: ------------ The check_domain functionality of the email() method does not properly identify the domain used for checkdnsrr() Test script: --------------- $e = '"@google.com@"@example.com'; $v = new Validate(); $v->email($e, array('check_domain'=>true, 'use_rfc822'=>false)); $v->email($e, array('check_domain'=>true, 'use_rfc822'=>true)); ###### check the value of $domain immediately before this line of code: ###### if (checkdnsrr($domain, 'MX') || checkdnsrr($domain, 'A')) { Expected result: ---------------- value of $domain should be 'example.com' Actual result: -------------- value of $domain is 'google.com'

Comments

 [2009-02-25 16:41 UTC] crmalibu (john doe)
-Package Version: +Package Version: 0.8.2
 [2009-02-26 10:42 UTC] amir (Amir Mohammad Saied)
-Status: Open +Status: Closed -Assigned To: +Assigned To: amir
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.