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

Bug #15945 improper string used to check domain dns
Submitted: 2009-02-25 21:37 UTC
From: crmalibu Assigned: amir
Status: Closed Package: Validate (version 0.8.2)
PHP Version: 5.2.8 OS: irrelevant
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


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 : 12 - 11 = ?

 
 [2009-02-25 21: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 21:41 UTC] crmalibu (john doe)
-Package Version: +Package Version: 0.8.2
 [2009-02-26 15: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.