There are two different kinds of resource destruction handlers you can pass to this function: a handler for normal resources and a handler for persistent resources.
There are two different kinds of resource destruction handlers you can pass to this function: a handler for normal resources and a handler for persistent resources. Persistent resources are for example used for database connection. When registering a resource, either of these handlers must be given. For the other handler just pass NULL.