Bug #51844 [Opn->Asn]: checkdnsrr does not support types other than MX

From: Date: Mon, 17 May 2010 17:50:46 +0000
Subject: Bug #51844 [Opn->Asn]: checkdnsrr does not support types other than MX
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-150519@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51844&edit=1

 ID:               51844
 Updated by:       johannes@php.net
 Reported by:      a_jelly_doughnut at phpbb dot com
 Summary:          checkdnsrr does not support types other than MX
-Status:           Open
+Status:           Assigned
 Type:             Bug
 Package:          Network related
 Operating System: Windows (All)
 PHP Version:      5.3.2
-Assigned To:      
+Assigned To:      pajoye



Previous Comments:
------------------------------------------------------------------------
[2010-05-17 18:20:16] a_jelly_doughnut at phpbb dot com

Description:
------------
ext/standard/dns_win32.c:

status = DnsQuery_A(hostname, DNS_TYPE_MX, DNS_QUERY_STANDARD, NULL,
&pResult, NULL);

The calculated "type" variable is never used (it should be the second
argument to DNSQuery_A).  

The bug only affects Windows platforms.

Test script:
---------------
<?php
$domain = 'ez1.php.net';
echo "MX"; var_dump(checkdnsrr($domain, 'MX'));
echo "ANY"; var_dump(checkdnsrr($domain, 'ANY'));



Expected result:
----------------
MXbool(false)
ANYbool(true)

Actual result:
--------------
MXbool(false)
ANYbool(false)


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51844&edit=1


Thread (3 messages)

« previous php.bugs (#150519) next »