[getdns-users] [PATCH] remove GETDNS_COMPILATION_COMMENT

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Jul 8 18:26:29 UTC 2015


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 ?

          --dkg



More information about the Users mailing list