Bug #15944 [Opn->Dup]: improper string used to check domain dns
| From: | amirsaied at gmail dot com | Date: | Thu, 26 Feb 2009 03:30:11 +0000 |
| Subject: | Bug #15944 [Opn->Dup]: improper string used to check domain dns | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-74@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=15944&edit=1
ID: 15944
Updated by: amirsaied@gmail.com
Reported By: foo at example dot com
Summary: improper string used to check domain dns
-Status: Open
+Status: Duplicate
Type: Bug
Package: Validate
Operating System: irrelevant
PHP Version: 5.2.8
Roadmap Versions:
New Comment:
<div id="changeset">
<span class="removed">-Status: Open</span>
<span class="added">+Status: Duplicate</span>
</div>
Duplicate #15945
Previous Comments:
------------------------------------------------------------------------
[2009-02-25 16:30:47] #668b8567f42359120fd
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=15944&edit=1