File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1091,16 +1091,14 @@ zend_result zend_post_startup(void) /* {{{ */
1091
1091
}
1092
1092
/* }}} */
1093
1093
1094
- /* Returns a NULL-terminated array of module entries that were dynamically loaded . */
1095
- static zend_module_entry * * zend_collect_dl_loaded_module_entries (void )
1094
+ /* Returns a NULL-terminated array of module entries. */
1095
+ static zend_module_entry * * zend_collect_module_entries (void )
1096
1096
{
1097
1097
zend_module_entry * * modules = malloc (sizeof (zend_module_entry * ) * (zend_hash_num_elements (& module_registry ) + 1 ));
1098
1098
zend_module_entry * module ;
1099
1099
unsigned int index = 0 ;
1100
1100
ZEND_HASH_MAP_REVERSE_FOREACH_PTR (& module_registry , module ) {
1101
- if (module -> handle ) {
1102
- modules [index ++ ] = module ;
1103
- }
1101
+ modules [index ++ ] = module ;
1104
1102
} ZEND_HASH_FOREACH_END ();
1105
1103
modules [index ] = NULL ;
1106
1104
return modules ;
@@ -1116,7 +1114,7 @@ static void zend_unload_modules(zend_module_entry **modules)
1116
1114
1117
1115
void zend_shutdown (void ) /* {{{ */
1118
1116
{
1119
- zend_module_entry * * modules = zend_collect_dl_loaded_module_entries ();
1117
+ zend_module_entry * * modules = zend_collect_module_entries ();
1120
1118
1121
1119
zend_vm_dtor ();
1122
1120
You can’t perform that action at this time.
0 commit comments