Bug #15945 [Opn]: improper string used to check domain dns
| From: | crmalibu at gmail dot com | Date: | Wed, 25 Feb 2009 16:41:02 +0000 |
| Subject: | Bug #15945 [Opn]: improper string used to check domain dns | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-73@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: crmalibu@gmail.com
Reported By: crmalibu at gmail dot com
Summary: improper string used to check domain dns
Status: Open
Type: Bug
Package: Validate
Operating System: irrelevant
-Package Version:
+Package Version: 0.8.2
PHP Version: 5.2.8
Roadmap Versions:
New Comment:
<div id="changeset">
<span class="removed">-Package Version:</span>
<span class="added">+Package Version: 0.8.2</span>
</div>
Previous Comments:
------------------------------------------------------------------------
[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