summaryrefslogtreecommitdiff
path: root/ext/gd/gd.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2019-12-09 15:05:24 +0300
committerDmitry Stogov <dmitry@zend.com>2019-12-09 15:05:24 +0300
commit92c23e1fd36b89bcc835fcd3e49e6ff33d1b1ca8 (patch)
tree256b3738e73d6dc1aaa37b6d474532ee5874864b /ext/gd/gd.c
parent42a2fb8411848236d0cd56b5efd05e352e62ee3d (diff)
downloadphp-git-92c23e1fd36b89bcc835fcd3e49e6ff33d1b1ca8.tar.gz
Call zend_unregister_ini_entries() when unload extension loaded through dl() without MSHUTDOWN callback.
Extensions with MSHUTDOWN should use UNREGISTER_INI_ENTRIES().
Diffstat (limited to 'ext/gd/gd.c')
-rw-r--r--ext/gd/gd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index b6868f53eb..3480699a70 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -1235,6 +1235,7 @@ PHP_MSHUTDOWN_FUNCTION(gd)
#if defined(HAVE_GD_FREETYPE) && defined(HAVE_GD_BUNDLED)
gdFontCacheMutexShutdown();
#endif
+ UNREGISTER_INI_ENTRIES();
return SUCCESS;
}
/* }}} */