1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Remove unused zend_shutdown_constants() (#13657)

The zend_shutdown_constants() usage was removed in
21698c12fe (memory leak)
and in b80cb7bd2f (unicode support).
This commit is contained in:
Peter Kokot
2024-03-20 14:12:45 +01:00
committed by GitHub
parent f87632e7ca
commit b7e1ec9108
2 changed files with 0 additions and 8 deletions

View File

@@ -116,13 +116,6 @@ void zend_register_standard_constants(void)
null_const = zend_hash_str_find_ptr(EG(zend_constants), "NULL", sizeof("NULL")-1);
}
void zend_shutdown_constants(void)
{
zend_hash_destroy(EG(zend_constants));
free(EG(zend_constants));
}
ZEND_API void zend_register_null_constant(const char *name, size_t name_len, int flags, int module_number)
{
zend_constant c;

View File

@@ -71,7 +71,6 @@ BEGIN_EXTERN_C()
void clean_module_constants(int module_number);
void free_zend_constant(zval *zv);
void zend_startup_constants(void);
void zend_shutdown_constants(void);
void zend_register_standard_constants(void);
ZEND_API bool zend_verify_const_access(zend_class_constant *c, zend_class_entry *ce);
ZEND_API zval *zend_get_constant(zend_string *name);