fix pqcur minit and mshutdown
[m6w6/ext-pq] / src / php_pqcancel.c
index 326cbcd3ecab97d8732dcd2f384fc78ff6a9571e..0edcddeddcd034aa677f9b78ce31852b11546a84 100644 (file)
@@ -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,8 @@ 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;
 
        zend_hash_init(&php_pqcancel_object_prophandlers, 1, NULL, NULL, 1);