#5311 [Com]: implement checkdnsrr() and getmxrr() on windows

From: Date: Mon, 14 Apr 2008 06:07:52 +0000
Subject: #5311 [Com]: implement checkdnsrr() and getmxrr() on windows
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-124203@lists.php.net to get a copy of this message
ID: 5311 Comment by: dsfsd at hotmail dot com Reported By: steve at tradinglinx dot com Status: Analyzed Bug Type: Feature/Change Request Operating System: W2000 PHP Version: 4.0.1 New Comment: sdasdasds Previous Comments: ------------------------------------------------------------------------ [2007-06-10 15:43:48] john at naevius dot com i like it :) http://www.naevius.com/ ------------------------------------------------------------------------ [2003-01-28 18:28:49] pollita@php.net Windows users can get this functionality from the PEAR class Net_DNS. http://pear.php.net/net_dns ------------------------------------------------------------------------ [2001-02-24 13:47:02] jmoore@php.net Both of these are #Defined out in the source code.. someone needs too look for a win32 implmentation of these at some point (dns.c:170 #if HAVE_BINDLIB && !(defined(__BEOS__)||defined(PHP_WIN32))). Changing to Feature Change Request. ------------------------------------------------------------------------ [2000-08-12 13:50:49] waldschrott@php.net user comment: Neither checkdnsrr nor getmxrr appear work under Windows NT 4/SP6a with IIS 4. I'm running with the downloaded Windows binary 4.0.1pl2 and the provided .ini file. OS is NT 4.0/sp6a, IIS 4. Under Windows, checkdnsrr always returns "true" (no matter whether the provided domain name could even possibly be valid) and getmxrr returns 0 hosts. (append ?domain=domaintotest.com to the URL when calling this script) <? echo("<p>checkdnsrr: ".(checkdnsrr($domain,"MX")?"true":"false")); getmxrr($domain,$mxhosts); echo("<p>getmxrr: [".count($mxhosts)."] "); for ( $i = 0; $i < count ( $mxhosts ); $i++ ) { echo($mxhosts[$i]." "); } ?> ------------------------------------------------------------------------ [2000-07-01 16:36:45] steve at tradinglinx dot com OS : Windows 2000 Pro Server : Apache 1.3.12 Win32 PHP4 : PHP 4.01 Win32 Script : --------------------------------- list($user,$domain)=split("@",$email,2); echo "<P>$user @ $domain if (checkdnsrr($domain,"MX")){ echo "<P>Valid Domain</P>" } else{ echo "<P>UnValid Domain</P>" } ------------------------------------------- Test is already Unvalid Domain, But split is OK. I supposed that it's checkdnsrr not working. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=5311&edit=1

« previous php.bugs (#124203) next »