Req #29337 [Asn->Fbk]: dns_get_record() unavailable on *BSD
| From: | felipe@php.net | Date: | Sun, 13 Jun 2010 12:52:57 +0000 |
| Subject: | Req #29337 [Asn->Fbk]: dns_get_record() unavailable on *BSD | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-151430@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=29337&edit=1
ID: 29337
Updated by: felipe@php.net
Reported by: php at to-the-max dot net
Summary: dns_get_record() unavailable on *BSD
-Status: Assigned
+Status: Feedback
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: FreeBSD
PHP Version: 5.0.0
-Assigned To: pollita
+Assigned To:
New Comment:
Please try using this snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2008-04-18 12:00:06] manuel at mausz dot at
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.
------------------------------------------------------------------------
[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/bug.php?id=29337&edit=1