Re: [PATCH] php4/configure.in.patch & php4/ext/standard/dns_get_record.patch
| From: | Derick Rethans | Date: | Mon, 18 Nov 2002 06:49:54 +0000 |
| Subject: | Re: [PATCH] php4/configure.in.patch & php4/ext/standard/dns_get_record.patch | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-91216@lists.php.net to get a copy of this message | ||
On Mon, 18 Nov 2002, Marcus Börger wrote:
> The last patch had some minor problems. Here is a reworked one attached.
> I did:
> -change php_error to php_error_docref
> -added some error messages which should be rewritten again
> i only wanted to point us to the problems.
> -collected the autoconf information into one single define which
> can be tested
> -ws fixes
> -minor fixes
> -made the old functions alias names to the new dns_xxx functions
>
> For me this stuff works now but i would expect dns_get_error(name,DNS_ANY)
> to return all possible records. But when i use the call with DNS_ANY i receive
> the NS records. To receive the A and MX entries i have to call the function
> with the DNS_A and DNS_MX respectively. See example below
Maybe it's a good idea to make the type a bitfield so that you can do
something like:
dns_get_record("php.net", DNS_A | DNS_MX); and then get something along
this back:
array(2) {
["A"]=>
["MX"]=>
}
I think that would be the most useful API.
Derick
--
---------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
JDI Media Solutions
--------------[ if you hold a unix shell to your ear, do you hear the c? ]-