#29337 [Com]: dns_get_record() unavailable on *BSD
| From: | manuel at mausz dot at | Date: | Fri, 18 Apr 2008 12:00:07 +0000 |
| Subject: | #29337 [Com]: dns_get_record() unavailable on *BSD | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-124353@lists.php.net to get a copy of this message | ||
ID: 29337
Comment by: manuel at mausz dot at
Reported By: php at to-the-max dot net
Status: Assigned
Bug Type: Feature/Change Request
Operating System: FreeBSD
PHP Version: 5.0.0
Assigned To: pollita
New Comment:
I ran into the same problem yesterday. So I decided to modify the
source to fallback to the deprecated ns_mkquery/ns_send if the newer
functions aren't available.
Patch for 5.3 and HEAD:
http://manuel.mausz.at/coding/patches/php/5.3.0/php-5.3.0-dns_get_record.patch
Tested on FreeBSD but should work on other BSDs and probably on OS X
too.
Previous Comments:
------------------------------------------------------------------------
[2004-08-02 11:08:39] derick@php.net
Assigning to the person who last touched this.
------------------------------------------------------------------------
[2004-07-22 19:30:31] php at to-the-max dot net
Description:
------------
dns_get_record() is not available when PHP is compiled under BSD.
/ext/standard/dns.c uses the res_nmkquery() and res_nsearch() functions
present in newer versions of BIND's libresolv.
However those functions are not present on *BSD (and probably other)
systems.
Please consider using the older res_mkquery(), res_search() fuctions,
to maximize compatibility.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29337&edit=1