Re: [PATH] update to earlier proposed patch for getanyrr() function addition

From: Date: Sun, 17 Nov 2002 11:38:27 +0000
Subject: Re: [PATH] update to earlier proposed patch for getanyrr() function addition
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-91166@lists.php.net to get a copy of this message
On Sun, 17 Nov 2002 nicos@php.net wrote: > Hello, > > Who can commit that now? I don't think it's ready yet. I agree with Marcus that the name of the function should be different then getanyrr(), it definitely doesn't fit into the naming things we have (with that getmxrr() doesn't fit either). I also think that the selection of the type of record to fetch should be made a constant so that we don't need to strncasecmp it everytime, and I would favor an implementation with zend_parse_parameters() to get rid of the (IMO) ugly parameter handling. Also, a lot of lines don't follow coding standards, like: n = res_nmkquery(&res,QUERY,Z_STRVAL_P(host),C_IN,type_to_fetch,NULL,0,NULL,buf.qb2,sizeof buf); instead of: n = res_nmkquery(&res, QUERY, Z_STRVAL_P(host), C_IN, type_to_fetch, NULL, 0, NULL, buf.qb2, sizeof(buf)); And I miss autoconf checks for all those DNS functions (like res_mkquery, dn_expand) which might not exist on all platforms. regards, Derick > "Marcus Börger" <marcus.boerger@t-online.de> a écrit dans le message de > news: 5.1.0.14.2.20021117011641.01fd4fd0@pop.t-online.de... > > Function is nice but the function name is not. > > Attached is a second revised patch that fixes the build problems. > > > > marcus > > > > At 00:11 17.11.2002, Pollita wrote: > > >Per corrections suggested by nicos@php.net, attached is a revised pacth > to > > >ext/standard/dns.c for addition of getanyrr() function. > > > > > > > > >-- > > >PHP Development Mailing List > > ><http://www.php.net/> > > >To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > -- --------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ JDI Media Solutions --------------[ if you hold a unix shell to your ear, do you hear the c? ]-

« previous php.dev (#91166) next »