summaryrefslogtreecommitdiff
path: root/Zend/zend_attributes.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-06-05 10:36:35 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-06-05 10:36:35 +0200
commit5b4c4bbe3ba5961c8cc96504c01eadecd6fa6853 (patch)
treee8763131e985733386510951e86d531cbdc25de1 /Zend/zend_attributes.c
parentd3eeeb688204320c9825924bc300901470cdb87b (diff)
downloadphp-git-5b4c4bbe3ba5961c8cc96504c01eadecd6fa6853.tar.gz
Free attribute validators on shutdown
Diffstat (limited to 'Zend/zend_attributes.c')
-rw-r--r--Zend/zend_attributes.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Zend/zend_attributes.c b/Zend/zend_attributes.c
index 12a997e72f..b9bd467acf 100644
--- a/Zend/zend_attributes.c
+++ b/Zend/zend_attributes.c
@@ -144,3 +144,8 @@ void zend_register_attribute_ce(void)
zend_compiler_attribute_register(zend_ce_php_attribute, zend_attribute_validate_phpattribute);
}
+
+void zend_attributes_shutdown(void)
+{
+ zend_hash_destroy(&internal_validators);
+}