Bug #15945 [Opn->Csd]: improper string used to check domain dns
| From: | amirsaied at gmail dot com | Date: | Thu, 26 Feb 2009 10:42:51 +0000 |
| Subject: | Bug #15945 [Opn->Csd]: improper string used to check domain dns | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-78@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=15945&edit=1
ID: 15945
Updated by: amirsaied@gmail.com
Reported By: crmalibu at gmail dot com
Summary: improper string used to check domain dns
-Status: Open
+Status: Closed
Type: Bug
Package: Validate
Operating System: irrelevant
Package Version: 0.8.2
PHP Version: 5.2.8
-Assigned To:
+Assigned To: amir
Roadmap Versions:
New Comment:
<div id="changeset">
<span class="removed">-Status: Open</span>
<span class="added">+Status: Closed</span>
<span class="removed">-Assigned To:</span>
<span class="added">+Assigned To: amir</span>
</div>
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.
Previous Comments:
------------------------------------------------------------------------
[2009-02-25 16:41:02] crmalibu
<div id="changeset">
<span class="removed">-Package Version:</span>
<span class="added">+Package Version: 0.8.2</span>
</div>
------------------------------------------------------------------------
[2009-02-25 16:37:34] crmalibu
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'
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=15945&edit=1