mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-7.4'
* PHP-7.4: Properly shut down font cache mutex
This commit is contained in:
commit
611c57eaf7
2 changed files with 13 additions and 1 deletions
13
ext/gd/gd.c
13
ext/gd/gd.c
|
@ -995,7 +995,7 @@ zend_module_entry gd_module_entry = {
|
|||
"gd",
|
||||
gd_functions,
|
||||
PHP_MINIT(gd),
|
||||
NULL,
|
||||
PHP_MSHUTDOWN(gd),
|
||||
NULL,
|
||||
#if HAVE_GD_FREETYPE && HAVE_LIBFREETYPE
|
||||
PHP_RSHUTDOWN(gd),
|
||||
|
@ -1204,6 +1204,17 @@ PHP_MINIT_FUNCTION(gd)
|
|||
}
|
||||
/* }}} */
|
||||
|
||||
/* {{{ PHP_MSHUTDOWN_FUNCTION
|
||||
*/
|
||||
PHP_MSHUTDOWN_FUNCTION(gd)
|
||||
{
|
||||
#if HAVE_GD_BUNDLED && HAVE_LIBFREETYPE
|
||||
gdFontCacheMutexShutdown();
|
||||
#endif
|
||||
return SUCCESS;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/* {{{ PHP_RSHUTDOWN_FUNCTION
|
||||
*/
|
||||
#if HAVE_GD_FREETYPE && HAVE_LIBFREETYPE
|
||||
|
|
|
@ -83,6 +83,7 @@ extern zend_module_entry gd_module_entry;
|
|||
/* gd.c functions */
|
||||
PHP_MINFO_FUNCTION(gd);
|
||||
PHP_MINIT_FUNCTION(gd);
|
||||
PHP_MSHUTDOWN_FUNCTION(gd);
|
||||
#if HAVE_GD_FREETYPE && HAVE_LIBFREETYPE
|
||||
PHP_RSHUTDOWN_FUNCTION(gd);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue