]> granicus.if.org Git - php/commitdiff
ZTS fix.
authorIlia Alshanetsky <iliaa@php.net>
Tue, 16 Dec 2003 17:23:15 +0000 (17:23 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 16 Dec 2003 17:23:15 +0000 (17:23 +0000)
ext/gd/libgd/gdft.c

index c33a071619574e678e48d7ae66dddf1f097c7bb6..3c97def22caf328070ad338272b28775157629f3 100644 (file)
@@ -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