typo
[m6w6/ext-pq] / src / php_pqtxn.c
index 5c2695f61d1ab24335c6d1a2626362af96cb5b1f..7d4b8b73cd9ac885780e67a391f2888765e2d8c8 100644 (file)
@@ -872,6 +872,12 @@ static zend_function_entry php_pqtxn_methods[] = {
        {0}
 };
 
+PHP_MSHUTDOWN_FUNCTION(pqtxn)
+{
+       zend_hash_destroy(&php_pqtxn_object_prophandlers);
+       return SUCCESS;
+}
+
 PHP_MINIT_FUNCTION(pqtxn)
 {
        zend_class_entry ce = {0};
@@ -886,6 +892,8 @@ PHP_MINIT_FUNCTION(pqtxn)
        php_pqtxn_object_handlers.write_property = php_pq_object_write_prop;
        php_pqtxn_object_handlers.clone_obj = NULL;
        php_pqtxn_object_handlers.get_property_ptr_ptr = NULL;
+       php_pqtxn_object_handlers.get_gc = NULL;
+       php_pqtxn_object_handlers.get_properties = php_pq_object_properties;
        php_pqtxn_object_handlers.get_debug_info = php_pq_object_debug_info;
 
        zend_hash_init(&php_pqtxn_object_prophandlers, 4, NULL, NULL, 1);