mirror of
https://github.com/php/php-src.git
synced 2026-03-27 09:42:22 +01:00
Don't forget to unload t1lib.
This commit is contained in:
14
ext/gd/gd.c
14
ext/gd/gd.c
@@ -335,7 +335,7 @@ zend_module_entry gd_module_entry = {
|
||||
"gd",
|
||||
gd_functions,
|
||||
PHP_MINIT(gd),
|
||||
NULL,
|
||||
PHP_MSHUTDOWN(gd),
|
||||
NULL,
|
||||
#if HAVE_LIBGD20 && HAVE_GD_STRINGFT
|
||||
PHP_RSHUTDOWN(gd),
|
||||
@@ -373,6 +373,18 @@ static void php_free_gd_font(zend_rsrc_list_entry *rsrc TSRMLS_DC)
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/* {{{ PHP_MSHUTDOWN_FUNCTION
|
||||
*/
|
||||
PHP_MSHUTDOWN_FUNCTION(gd)
|
||||
{
|
||||
#if HAVE_LIBT1
|
||||
T1_CloseLib();
|
||||
#endif
|
||||
return SUCCESS;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
/* {{{ PHP_MINIT_FUNCTION
|
||||
*/
|
||||
PHP_MINIT_FUNCTION(gd)
|
||||
|
||||
Reference in New Issue
Block a user