X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqlob.c;h=96b495ec5e90c7e2afee81c44316d032f346300c;hp=9f3717d6c91940455eb75dc1c86b26269d5575c8;hb=280761d6fe87cb4ee24eb750398af80dfb96781f;hpb=9f5cecf26bd70a92ed013f31afec59e272623ac1 diff --git a/src/php_pqlob.c b/src/php_pqlob.c index 9f3717d..96b495e 100644 --- a/src/php_pqlob.c +++ b/src/php_pqlob.c @@ -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);