At 11:23 18.11.2002, Derick Rethans wrote:
On Mon, 18 Nov 2002, Melvyn Sopacua wrote:

> At 07:52 18-11-2002, Derick Rethans wrote:
>
> >On Mon, 18 Nov 2002, Marcus Börger wrote:
> >
> > > I don't think so. It is only a small extension to the functionality we
> > > have already. If there would be more functionality to add during the
> > > next release cycle i would agree to move this to a new extension.
> > >
> > > But let's here the others.
> >
> >It's only 2 functions for now, IMO it doesn't warrant a new extention
> >yet.
>
> Actually - I think it should be PHP_API'd. Any extension needing DNS lookups
> doesn't have to rewrite it's own routine then.
> Especially now that you can get any record type, I can see the usefullness.
>
> And of course a central place for all those different implemenations to
> maintain.

Makes sense to me...

Derick
The first step should be making it a woring function with an agreed
prototype and behaviour. I guess we would need some new datatype
definitions to make this happen. So this would require some more
work not needed directly.

I made a new version which allows the use of a bitmask for the type
parameter as suggested by Derick.

You can now do

dns_get_resord(...,DNS_ANY)
dns_get_resord(...,DNS_ALL)
dns_get_resord(...,DNS_MX)
dns_get_resord(...,DNS_MX|DNS_SOA|...)

DNS_ANY|DNS_xxx  is not allowed.

http://marcus-boerger.de/dns_get_record.diff

marcus


--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to