(PECL getdns >= 0.10.0)
php_getdns_context_get_api_information — Get information about the getdns API and a specific context.
This function describes getdns library parameters and a specific context in dictionary format. The dictionary can then be converted into a string or accessed using the php_getdns_dict_get_*() functions.
The previously created DNS context that is to be used with this request.
Returns the integer value of a getdns dictionary. The returned dictionary will contain the following name/value pairs:
version_string, a bindata string that represents the version of the getdns library.
implementation_string, a bindata string set by the getdns library implementer. It might be human-readable, and it might have information in it useful to an application developer, but it doesn't have to.
resolution_type, an int that represents the type of resolver that the getdns library is acting as in this context. The value will be either GETDNS_RESOLUTION_RECURSING or GETDNS_RESOLUTION_STUB. GETDNS_RESOLUTION_RECURSING is the default.
all_context, a dictionary with names for all of the context types. This can be used with php_getdns_pretty_print_dict() for debugging.
Note that the returned dictionary should be freed using php_getdns_dict_destroy() when it is no longer needed.