php-developer-list | 2002112
Date: 11/18/02
- Next message: Derick Rethans: "Re: [PHP-DEV] [PATH] update to earlier proposed patch for getanyrr() function addition"
- Previous message: Rasmus Lerdorf: "Re: [PHP-DEV] Re: #20461 [Opn->Bgs]: Unable to access $PHP_AUTH_USER or $PHP_AUTH_PW"
- In reply to: Marcus Börger: "Re: [PHP-DEV] [PATCH] php4/configure.in.patch & php4/ext/standard/dns_get_record.patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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? ]-
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Derick Rethans: "Re: [PHP-DEV] [PATH] update to earlier proposed patch for getanyrr() function addition"
- Previous message: Rasmus Lerdorf: "Re: [PHP-DEV] Re: #20461 [Opn->Bgs]: Unable to access $PHP_AUTH_USER or $PHP_AUTH_PW"
- In reply to: Marcus Börger: "Re: [PHP-DEV] [PATCH] php4/configure.in.patch & php4/ext/standard/dns_get_record.patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

