#include <zend_API.h>
RETURN_RESOURCE() sets the return_value of the given function to r and returns control to the calling function.
The resource to be returned.