Edit report at http://bugs.php.net/bug.php?id=51844&edit=1
ID: 51844 Updated by: paj...@php.net Reported by: a_jelly_doughnut at phpbb dot com Summary: checkdnsrr does not support types other than MX -Status: Assigned +Status: Closed Type: Bug Package: Network related Operating System: Windows (All) PHP Version: 5.3.2 Assigned To: pajoye New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2010-05-17 20:55:37] paj...@php.net Automatic comment from SVN on behalf of pajoye Revision: http://svn.php.net/viewvc/?view=revision&revision=299432 Log: - #51844, checkdnsrr does not support types other than MX ------------------------------------------------------------------------ [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