Skip to content

Commit 89d0115

Browse files
committed
Remove zend_cleanup_internal_classes()
If fast_shutdown is used, then we don't need to destroy static members at all. If fast_shutdown is not used, then we already loop over classes to destroy static members and static variables in methods.
1 parent 8befb6d commit 89d0115

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

Zend/zend_API.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3010,17 +3010,6 @@ ZEND_API void zend_deactivate_modules(void) /* {{{ */
30103010
}
30113011
/* }}} */
30123012

3013-
ZEND_API void zend_cleanup_internal_classes(void) /* {{{ */
3014-
{
3015-
zend_class_entry **p = class_cleanup_handlers;
3016-
3017-
while (*p) {
3018-
zend_cleanup_internal_class_data(*p);
3019-
p++;
3020-
}
3021-
}
3022-
/* }}} */
3023-
30243013
ZEND_API void zend_post_deactivate_modules(void) /* {{{ */
30253014
{
30263015
if (EG(full_tables_cleanup)) {

Zend/zend_compile.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,6 @@ ZEND_API void zend_destroy_static_vars(zend_op_array *op_array);
835835
ZEND_API void zend_destroy_file_handle(zend_file_handle *file_handle);
836836
ZEND_API void zend_cleanup_mutable_class_data(zend_class_entry *ce);
837837
ZEND_API void zend_cleanup_internal_class_data(zend_class_entry *ce);
838-
ZEND_API void zend_cleanup_internal_classes(void);
839838
ZEND_API void zend_type_release(zend_type type, bool persistent);
840839
ZEND_API zend_string *zend_create_member_string(zend_string *class_name, zend_string *member_name);
841840

Zend/zend_execute_API.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,6 @@ void shutdown_executor(void) /* {{{ */
394394
*/
395395
zend_hash_discard(EG(function_table), EG(persistent_functions_count));
396396
zend_hash_discard(EG(class_table), EG(persistent_classes_count));
397-
zend_cleanup_internal_classes();
398397
} else {
399398
zend_vm_stack_destroy();
400399

0 commit comments

Comments
 (0)