Skip to content

Commit b7e1ec9

Browse files
authored
Remove unused zend_shutdown_constants() (#13657)
The zend_shutdown_constants() usage was removed in 21698c1 (memory leak) and in b80cb7b (unicode support).
1 parent f87632e commit b7e1ec9

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

Zend/zend_constants.c

-7
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,6 @@ void zend_register_standard_constants(void)
116116
null_const = zend_hash_str_find_ptr(EG(zend_constants), "NULL", sizeof("NULL")-1);
117117
}
118118

119-
120-
void zend_shutdown_constants(void)
121-
{
122-
zend_hash_destroy(EG(zend_constants));
123-
free(EG(zend_constants));
124-
}
125-
126119
ZEND_API void zend_register_null_constant(const char *name, size_t name_len, int flags, int module_number)
127120
{
128121
zend_constant c;

Zend/zend_constants.h

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ BEGIN_EXTERN_C()
7171
void clean_module_constants(int module_number);
7272
void free_zend_constant(zval *zv);
7373
void zend_startup_constants(void);
74-
void zend_shutdown_constants(void);
7574
void zend_register_standard_constants(void);
7675
ZEND_API bool zend_verify_const_access(zend_class_constant *c, zend_class_entry *ce);
7776
ZEND_API zval *zend_get_constant(zend_string *name);

0 commit comments

Comments
 (0)