#48167 [Tbd]: undefined function checkdnsrr()
| From: | kalle@php.net | Date: | Mon, 11 May 2009 09:38:09 +0000 |
| Subject: | #48167 [Tbd]: undefined function checkdnsrr() | ||
| References: | 1 | Groups: | php.bugs php.doc.bugs |
| Request: | Send a blank email to php-bugs+get-137147@lists.php.net to get a copy of this message | ||
ID: 48167
Updated by: kalle@php.net
Reported By: frew dot robert at gmail dot com
Status: To be documented
Bug Type: *Network Functions
Operating System: Linux
PHP Version: 5.3.0RC1
Assigned To: fa
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2009-05-06 21:19:11] frew dot robert at gmail dot com
Recompiled PHP and the problem went away.
------------------------------------------------------------------------
[2009-05-06 19:34:39] 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 19:30:46] fa@php.net
That's not mentioned in the documentation, shouldn't this be converted
to a documentation bug then?
------------------------------------------------------------------------
[2009-05-06 16:41:58] 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 16:32:48] 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()
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48167&edit=1