X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqcancel.c;h=0edcddeddcd034aa677f9b78ce31852b11546a84;hp=8f3d9daae6ad468211edab432fd3ad20c7c729ff;hb=a7d180348dfaa73d47a7f7019a8aead0dd2c4362;hpb=6c838021951716e5b37a0c891cd40c669268de8c diff --git a/src/php_pqcancel.c b/src/php_pqcancel.c index 8f3d9da..0edcdde 100644 --- a/src/php_pqcancel.c +++ b/src/php_pqcancel.c @@ -144,6 +144,12 @@ static zend_function_entry php_pqcancel_methods[] = { {0} }; +PHP_MSHUTDOWN_FUNCTION(pqcancel) +{ + zend_hash_destroy(&php_pqcancel_object_prophandlers); + return SUCCESS; +} + PHP_MINIT_FUNCTION(pqcancel) { zend_class_entry ce = {0}; @@ -158,6 +164,7 @@ PHP_MINIT_FUNCTION(pqcancel) php_pqcancel_object_handlers.write_property = php_pq_object_write_prop; php_pqcancel_object_handlers.clone_obj = NULL; php_pqcancel_object_handlers.get_property_ptr_ptr = NULL; + php_pqcancel_object_handlers.get_gc = NULL; php_pqcancel_object_handlers.get_properties = php_pq_object_properties; php_pqcancel_object_handlers.get_debug_info = php_pq_object_debug_info;