summaryrefslogtreecommitdiff
path: root/ext/gd
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-08-05 01:43:02 +0000
committerZeev Suraski <zeev@php.net>2001-08-05 01:43:02 +0000
commit1159c84ab7849099d4a717cd05c2d920102040ed (patch)
treeed4e48bb27e2ce5de5972fc3a29c1d24c818467a /ext/gd
parentfcc035108f7b8d2e169c5a592227b3df84d0573e (diff)
downloadphp-git-1159c84ab7849099d4a717cd05c2d920102040ed.tar.gz
- TSRMLS_FETCH work
- whitespace fixes
Diffstat (limited to 'ext/gd')
-rw-r--r--ext/gd/gd.c2
-rw-r--r--ext/gd/gdttf.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 6e44cb74f3..eafac5858d 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -2712,7 +2712,7 @@ void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int mode, int extende
l = strlen(str);
#ifdef VIRTUAL_DIR
- if(virtual_filepath(Z_STRVAL_PP(FONTNAME), &fontname)) {
+ if(virtual_filepath(Z_STRVAL_PP(FONTNAME), &fontname TSRMLS_CC)) {
fontname = (unsigned char*)Z_STRVAL_PP(FONTNAME);
}
#else
diff --git a/ext/gd/gdttf.c b/ext/gd/gdttf.c
index 0be895fb7b..89907c5d28 100644
--- a/ext/gd/gdttf.c
+++ b/ext/gd/gdttf.c
@@ -332,11 +332,12 @@ fontFetch ( char **error, void *key )
fontkey_t *b=(fontkey_t *)key;
int i, n, map_found;
short platform, encoding;
+ TSRMLS_FETCH();
a = (font_t *)malloc(sizeof(font_t));
#ifdef VIRTUAL_DIR
/* a->fontname will be freed in fontRelease() later on */
- if (virtual_filepath(b->fontname, &a->fontname)) {
+ if (virtual_filepath(b->fontname, &a->fontname TSRMLS_CC)) {
*error = "Could not find/open font";
return NULL;
}