php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51844 checkdnsrr does not support types other than MX
Submitted: 2010-05-17 18:20 UTC Modified: 2010-05-17 20:58 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: a_jelly_doughnut at phpbb dot com Assigned: pajoye
Status: Closed Package: Network related
PHP Version: 5.3.2 OS: Windows (All)
Private report: No CVE-ID:
 [2010-05-17 18:20 UTC] 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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-17 19:50 UTC] johannes@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: pajoye
 [2010-05-17 20:55 UTC] pajoye@php.net
Automatic comment from SVN on behalf of pajoye
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=299432
Log: - #51844, checkdnsrr does not support types other than MX
 [2010-05-17 20:58 UTC] pajoye@php.net
-Status: Assigned +Status: Closed
 [2010-05-17 20:58 UTC] pajoye@php.net
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.


 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Mon Apr 21 04:01:57 2014 UTC