[getdns-users] [PATCH] remove GETDNS_COMPILATION_COMMENT

Hollenbeck, Scott shollenbeck at verisign.com
Wed Jul 8 18:19:11 UTC 2015


> -----Original Message-----
> From: Users [mailto:users-bounces at getdnsapi.net] On Behalf Of Melinda
> Shore
> Sent: Wednesday, July 08, 2015 2:07 PM
> To: users at getdnsapi.net
> Subject: Re: [getdns-users] [PATCH] remove GETDNS_COMPILATION_COMMENT
> 
> On 7/8/15 9:58 AM, Hollenbeck, Scott wrote:
> > I'm currently using GETDNS_COMPILATION_COMMENT in the PHP language
> > bindings to display the getdns library version used to build the PHP
> > extension. If GETDNS_COMPILATION_COMMENT goes away is there another
> > way of retrieving the getdns library version information at
> > compilation time?
> 
> Yes, you can pull version_string out of what's returned by
> context_get_api_info().  That's what I'm doing in the Python
> bindings.

That means I would need to create a context, send a query, parse the returned dictionary, and destroy the context every time PHP loads the extension. I'd much rather use a defined constant (just the version number would be useful) that could be available when the extension is compiled.

Scott




More information about the Users mailing list