getdns Functions
PHP Manual

php_getdns_context_destroy

(PECL getdns >= 0.10.0)

php_getdns_context_destroyDestroy an existing DNS context.

Description

NULL php_getdns_context_destroy ( int $context )

This function cleans up the context, including cleaning up all outstanding transactions that were called using this context. When getdns_context_destroy() returns, the application knows that all outstanding transactions associated with this context will have been called; callbacks that had not been called before getdns_context_destroy() was called will be called with a callback_type of GETDNS_CALLBACK_CANCEL. getdns_context_destroy() returns after all of the needed cleanup is done and callbacks are made.

Parameters

context

The context to be destroyed.

Return Values

This function does not return any values. The context will be invalid after the function returns.


getdns Functions
PHP Manual