From: Ilia Alshanetsky Date: Tue, 16 Dec 2003 17:23:15 +0000 (+0000) Subject: ZTS fix. X-Git-Tag: php-5.0.0b3RC1~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45cd627569ba59f093cdc5dbb2b6f6c696ae9851;p=php ZTS fix. --- diff --git a/ext/gd/libgd/gdft.c b/ext/gd/libgd/gdft.c index c33a071619..3c97def22c 100644 --- a/ext/gd/libgd/gdft.c +++ b/ext/gd/libgd/gdft.c @@ -349,7 +349,7 @@ fontTest (void *element, void *key) return (strcmp (a->fontlist, b->fontlist) == 0); } -static void *fontFetch (char **error, void *key TSRMLS_DC) +static void *fontFetch (char **error, void *key) { font_t *a; fontkey_t *b = (fontkey_t *) key; @@ -394,6 +394,7 @@ static void *fontFetch (char **error, void *key TSRMLS_DC) } for (dir = strtok (path, PATHSEPARATOR); dir; dir = strtok (0, PATHSEPARATOR)) { if (!strcmp(dir, ".")) { + TSRMLS_FETCH(); #if HAVE_GETCWD dir = VCWD_GETCWD(cur_dir, MAXPATHLEN); #elif HAVE_GETWD