Fatal Error Call To Undefined Function Checkdnsrr
UTC Votes:1 Avg. Score:3.0 ± 0.0 Reproduced:1 of 1 (100.0%) Same Version:1 (100.0%) Same OS:0 (0.0%) From: frew dot robert at gmail dot com Assigned: fa Status: Closed Package: *Network Functions PHP Version: 5.3.0RC1 OS: Linux Private report: No CVE-ID: View Add Comment Developer Edit [2009-05-06 16:32 UTC] frew dot robert at gmail dot com Description: ------------ When using function checkdnsrr(), I get a Fatal error: Call to undefined function checkdnsrr() in test.php. You can view this error live at http://www.mxxm.com/test.php. Reproduce code: --------------- $ip = $_SERVER['REMOTE_ADDR']; if (checkdnsrr($ip, "MX")) { echo 'Yes'; } else { echo 'No'; } ?> Expected result: ---------------- True or false. Actual result: -------------- Fatal error: Call to undefined function checkdnsrr() Patches Add a PatchPull Requests Add a Pull RequestHistoryAllCommentsChangesGit/SVN commitsRelated reports [2009-05-06 16:41 UTC] scottmac@php.net This function is only available if the configure script can find bind on your system. If you look at your config.log you'll probably find that its missing. [2009-05-06 19:30 UTC] fa@php.net That's not mentioned in the documentation, shouldn't this be converted to a documentation bug then? [2009-05-06 19:34 UTC] pajoye@php.net Yes, set it as to be documented. Please not that as in 5.3, it is always available on windows. [2009-05-06 21:19 UTC] frew dot robert at gmail dot com Recompiled PHP and the problem went away. [2009-05-11 09:38 UTC] kalle@php.net Alot of functions may not be available if the configure script does not find them on Unix, wheres on Windows they are either available or not, not *maybe*. We really need to list these in the manual [2009-11-25 10:37 UTC] svn@php.net Automatic comment from SVN on behalf of vrana Revision: http://svn.php.net/viewvc/?view=revision&revision=291298 Log: Requires Bind (bug #48167) [2009-11-25 10:37 UTC] vrana@php.net This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Copyright © 2001-2016 The PHP Group All rights reserved. Last updated: Sat Oct 15 14:01
Message List New Topic mkohan Call to undefined function: checkdnsrr() February 18, 2005 07:21PM Registered: 11 years ago Posts: 2 I installed phorum-5.0_1.14 on windows. I read install.txt file and i did what named it " Phorum 5 Basic Instalation". I login as a admin and created a forum. After that I clicked on my forum and choosed the New Topic, in the new Topic enterd my data then post it. I got this error: Fatal error: Call to undefined function: checkdnsrr() in C:\Program Files\Apache Group\Apache2\htdocs\phorum\include\email_functions.php on line 23 any https://bugs.php.net/bug.php?id=48167 help. Thanks, Massoud Reply Quote Krang Re: Call to undefined function: checkdnsrr() February 18, 2005 08:32PM Registered: 11 years ago Posts: 264 Disable DNS setting in admin general settings. I had the same thing. I think its a conflict with windows. but I didn't look in to detail. http://www.krang.org Reply Quote mkohan Re: Call to undefined function: checkdnsrr() February 18, 2005 09:35PM Registered: 11 http://www.phorum.org/phorum5/read.php?12,14231 years ago Posts: 2 Thanks, It worked. Massoud Reply Quote Panu Re: Call to undefined function: checkdnsrr() February 18, 2005 11:18PM Registered: 15 years ago Posts: 1,076 This seems to be one of the most asked questions with Windows installations. I think that DNS lookup should be disabled by default (generates other questions?) or the function should be expanded/changed to be compatible with Windows. I can make a patch but I can't test because I'm not willing to use IIS in any circumstances. hmm, is this enough, does this work? if (!function_exists('checkdnsrr')){ $ret = false; } else { if(checkdnsrr($fulldomain, "MX")){ $ret = true; } } edit2: So this is to get rid of the error (I hope) Do you want to use equivalent funtionality as unixes with Win? Q: Does Phorum know what platfom it's running? --- -=[ Panu ]=- Edited 2 time(s). Last edit at 02/18/2005 11:38PM by Panu. Reply Quote Krang Re: Call to undefined function: checkdnsrr() February 18, 2005 11:30PM Registered: 11 years ago Posts: 264 I'll test it I run Windows XP SP2 and IIS 5 with the most recent update as of Monday. http://www.krang.o
Detected You currently have javascript disabled. Several functions may not work. Please re-enable javascript to access https://forums.phpfreaks.com/topic/144402-checkdnsrr-error/ full functionality. checkdnsrr() error Started by mbrown, Feb 08 2009 11:33 PM Please log in to reply 5 replies to this topic #1 mbrown mbrown Advanced Member Members 128 posts Posted 08 February 2009 - 11:33 PM list($emailusername,$domain)=split('@',$email); if(!checkdnsrr($domain, 'MX')) { $errorMessage .= "
The domain entered, $domain, does not have a valid mail server"; } fatal error Error Message: Fatal error: Call to undefined function checkdnsrr() in C:\xampp\htdocs\seniorProject\register\validation.php on line 125 Server is running off of Windows Vista SP1 x64 with XAMPP Back to top #2 btherl btherl Advanced Member Staff Alumni 3,893 posts LocationAustralia Posted 09 February 2009 - 01:22 AM The function was available in windows from php 5.3.0. If your fatal error call php is older than that, you can use the pear package Net_DNS. Details are in the manual: checkdnsrr() Your php questions answered at Flingbits Back to top #3 mbrown mbrown Advanced Member Members 128 posts Posted 12 February 2009 - 06:46 PM I am using 5.2.8. I am using xampp so it is for a linux distro. I do not see any other version of php other than the version i have on their site. Back to top #4 premiso premiso Trollololol Members 6,969 posts LocationHairy Beaverville Posted 12 February 2009 - 06:52 PM It maybe for a linux distro, but versions before 5.3 did not have the right functionality of that function for windows, unfortunately. function win_checkdnsrr($host, $type='MX') { if (strtoupper(substr(PHP_OS, 0, 3)) != 'WIN') { return; } if (empty($host)) { return; } $types=array('A', 'MX', 'NS', 'SOA', 'PTR', 'CNAME', 'AAAA', 'A6', 'SRV', 'NAPTR', 'TXT', 'ANY'); if (!in_array($type,$types)) { user_error("checkdnsrr() Type '$type' not suppo