fix package.xml
[m6w6/ext-pq] / src / php_pqlob.c
index 9f3717d6c91940455eb75dc1c86b26269d5575c8..96b495ec5e90c7e2afee81c44316d032f346300c 100644 (file)
@@ -449,6 +449,12 @@ static zend_function_entry php_pqlob_methods[] = {
        {0}
 };
 
+PHP_MSHUTDOWN_FUNCTION(pqlob)
+{
+       zend_hash_destroy(&php_pqlob_object_prophandlers);
+       return SUCCESS;
+}
+
 PHP_MINIT_FUNCTION(pqlob)
 {
        zend_class_entry ce = {0};
@@ -463,6 +469,8 @@ PHP_MINIT_FUNCTION(pqlob)
        php_pqlob_object_handlers.write_property = php_pq_object_write_prop;
        php_pqlob_object_handlers.clone_obj = NULL;
        php_pqlob_object_handlers.get_property_ptr_ptr = NULL;
+       php_pqlob_object_handlers.get_gc = NULL;
+       php_pqlob_object_handlers.get_properties = php_pq_object_properties;
        php_pqlob_object_handlers.get_debug_info = php_pq_object_debug_info;
 
        zend_hash_init(&php_pqlob_object_prophandlers, 3, NULL, NULL, 1);