Browse Source

- #40578, fix the 2nd race condition on shutdown when the cache is freed

experimental/5.2-WITH_DRCP
Pierre Joye 20 years ago
parent
commit
b5e6c78eda
  1. 2
      NEWS
  2. 3
      ext/gd/libgd/gdft.c

2
NEWS

@ -9,7 +9,7 @@ PHP NEWS
- Added --ri switch to CLI which allows to check extension information. (Marcus)
- Added tidyNode::getParent() method (John, Nuno)
- Fixed zend_llist_remove_tail (Michael Wallner, Dmitry)
- Fixed bug #40578 (imagettftext() multithreading issue). (Tony)
- Fixed bug #40578 (imagettftext() multithreading issue). (Tony, Pierre)
- Fixed bug #40576 (double values are truncated to 6 decimal digits when
encoding). (Tony)
- Fixed bug #40560 (DIR functions do not work on root UNC path). (Dmitry)

3
ext/gd/libgd/gdft.c

@ -718,9 +718,10 @@ gdroundupdown (FT_F26Dot6 v1, int updown)
void gdFontCacheShutdown()
{
if (fontCache) {
gdMutexShutdown(gdFontCacheMutex);
gdMutexLock(gdFontCacheMutex);
gdCacheDelete(fontCache);
fontCache = NULL;
gdMutexShutdown(gdFontCacheMutex);
FT_Done_FreeType(library);
}
}

Loading…
Cancel
Save