#37433 [Fbk->Opn]: dns_get_record() is not defined, if --disable-all is set
| From: | sy at go2panel dot com | Date: | Sun, 14 May 2006 15:54:49 +0000 |
| Subject: | #37433 [Fbk->Opn]: dns_get_record() is not defined, if --disable-all is set | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-97069@lists.php.net to get a copy of this message | ||
ID: 37433
User updated by: sy at go2panel dot com
Reported By: sy at go2panel dot com
-Status: Feedback
+Status: Open
Bug Type: Network related
Operating System: RHEL 4.0
PHP Version: 5.1.4
New Comment:
I do not see a logical explanation WHERE
php version = 5.1.4 AND
gethostbyname is working AND
dns_get_record is NOT
Previous Comments:
------------------------------------------------------------------------
[2006-05-14 13:00:51] tony2001@php.net
This function doesn't depend on configure options and enabled when
possible.
------------------------------------------------------------------------
[2006-05-14 02:30:29] sy at go2panel dot com
Description:
------------
PHP 5.1.4 is compiled with minimum options using --disable-all
Function dns_get_record() gives this error:
PHP Fatal error: Call to undefined function dns_get_record() in
Here is CODE:
=================
echo phpversion() ."\n";
echo gethostbyname('damla.net') ."\n";
var_dump(dns_get_record('damla.net')) ."\n";
die();
Here is OUTPUT:
===============
5.1.4
216.71.156.144
PHP Fatal error: Call to undefined function dns_get_record() in
Reproduce code:
---------------
echo phpversion() ."\n";
echo gethostbyname('damla.net') ."\n";
var_dump(dns_get_record('damla.net')) ."\n";
die();
Expected result:
----------------
dns_get_record() should be defined
OR
Enable directive to enable it should be document, apparently disabled
by --disable-all
I have tested the same thing using 5.1.2 WITHOUT --disable-all and it
works.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37433&edit=1