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] [EMAIL PROTECTED] 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