File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -2562,6 +2562,12 @@ void module_destructor(zend_module_entry *module) /* {{{ */
2562
2562
module -> module_shutdown_func (module -> type , module -> module_number );
2563
2563
}
2564
2564
2565
+ if (module -> module_started
2566
+ && !module -> module_shutdown_func
2567
+ && module -> type == MODULE_TEMPORARY ) {
2568
+ zend_unregister_ini_entries (module -> module_number );
2569
+ }
2570
+
2565
2571
/* Deinitilaise module globals */
2566
2572
if (module -> globals_size ) {
2567
2573
#ifdef ZTS
Original file line number Diff line number Diff line change @@ -1235,6 +1235,7 @@ PHP_MSHUTDOWN_FUNCTION(gd)
1235
1235
#if defined(HAVE_GD_FREETYPE ) && defined(HAVE_GD_BUNDLED )
1236
1236
gdFontCacheMutexShutdown ();
1237
1237
#endif
1238
+ UNREGISTER_INI_ENTRIES ();
1238
1239
return SUCCESS ;
1239
1240
}
1240
1241
/* }}} */
Original file line number Diff line number Diff line change @@ -3428,6 +3428,7 @@ PHP_MSHUTDOWN_FUNCTION(phar) /* {{{ */
3428
3428
zend_hash_destroy (& (cached_alias ));
3429
3429
}
3430
3430
3431
+ UNREGISTER_INI_ENTRIES ();
3431
3432
return SUCCESS ;
3432
3433
}
3433
3434
/* }}} */
You can’t perform that action at this time.
0 commit comments