diff options
| author | foobar <sniper@php.net> | 2005-01-14 23:08:02 +0000 |
|---|---|---|
| committer | foobar <sniper@php.net> | 2005-01-14 23:08:02 +0000 |
| commit | a819cbc8691e7c0ce00b56bfd9e41cc0f7cc2732 (patch) | |
| tree | 44bc20348b949065b20acb95d3620f629d5359b9 | |
| parent | 310a945151f6f32a2020433a195df1247f9f0bba (diff) | |
| download | php-git-a819cbc8691e7c0ce00b56bfd9e41cc0f7cc2732.tar.gz | |
MFH: - Fixed bug #31060 (imageftbbox() does not use linespacing parameter)
| -rw-r--r-- | NEWS | 1 | ||||
| -rw-r--r-- | ext/gd/gd.c | 5 |
2 files changed, 3 insertions, 3 deletions
@@ -22,6 +22,7 @@ PHP NEWS - Fixed bug #31087 (broken php_url_encode_hash macro). (Ilia) - Fixed bug #31072 (var_export() does not output an array element with an empty string key). (Derick) +- Fixed bug #31060 (imageftbbox() does not use linespacing parameter). (Jani) - Fixed bug #31056 (php_std_date() returns invalid formatted date if y2k_compliance is On). (Ilia) - Fixed bug #31055 (apache2filter: per request leak proportional to the full diff --git a/ext/gd/gd.c b/ext/gd/gd.c index f099f1b2bd..a96a453b7f 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -3150,9 +3150,10 @@ static void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int mode, int col = Z_LVAL_PP(COL); y = Z_LVAL_PP(Y); x = Z_LVAL_PP(X); + } #if HAVE_GD_STRINGFTEX - if (EXT) { + if (extended && EXT) { /* parse extended info */ HashPosition pos; @@ -3184,8 +3185,6 @@ static void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int mode, int } #endif - } - ptsize = Z_DVAL_PP(PTSIZE); angle = Z_DVAL_PP(ANGLE) * (M_PI / 180); /* convert to radians */ |
