[getdns-users] [PATCH] remove GETDNS_COMPILATION_COMMENT

Hollenbeck, Scott shollenbeck at verisign.com
Wed Jul 8 18:37:08 UTC 2015


> -----Original Message-----
> From: Daniel Kahn Gillmor [mailto:dkg at fifthhorseman.net]
> Sent: Wednesday, July 08, 2015 2:26 PM
> To: Hollenbeck, Scott; libgetdns users list
> Subject: Re: [getdns-users] [PATCH] remove GETDNS_COMPILATION_COMMENT
> 
> On Wed 2015-07-08 14:19:11 -0400, Hollenbeck, Scott wrote:
> > [Melinda Shore wrote:]
> >> 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.
> 
> Is there any circumstance where two separate contexts could return a
> different api_info ?

I don't think so, at least not with two contexts created with the same loaded instance of my extension.

Scott




More information about the Users mailing list