Edit report at http://bugs.php.net/bug.php?id=51844&edit=1
ID: 51844 Updated by: johan...@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