X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fphp_pqcopy.c;h=a427f07a869b84e38db781ddd6eb2921366fe717;hb=0a542746bae981b2f44973b1b6ae8399ab8699eb;hp=1ea8a50618919990ac0bf2603c2f2ede6c554581;hpb=6c838021951716e5b37a0c891cd40c669268de8c;p=m6w6%2Fext-pq diff --git a/src/php_pqcopy.c b/src/php_pqcopy.c index 1ea8a50..a427f07 100644 --- a/src/php_pqcopy.c +++ b/src/php_pqcopy.c @@ -308,6 +308,12 @@ static zend_function_entry php_pqcopy_methods[] = { {0} }; +PHP_MSHUTDOWN_FUNCTION(pqcopy) +{ + zend_hash_destroy(&php_pqcopy_object_prophandlers); + return SUCCESS; +} + PHP_MINIT_FUNCTION(pqcopy) { zend_class_entry ce = {0}; @@ -322,6 +328,7 @@ PHP_MINIT_FUNCTION(pqcopy) php_pqcopy_object_handlers.write_property = php_pq_object_write_prop; php_pqcopy_object_handlers.clone_obj = NULL; php_pqcopy_object_handlers.get_property_ptr_ptr = NULL; + php_pqcopy_object_handlers.get_gc = NULL; php_pqcopy_object_handlers.get_properties = php_pq_object_properties; php_pqcopy_object_handlers.get_debug_info = php_pq_object_debug_info;