]> granicus.if.org Git - php/commitdiff
MFH: - Fixed bug #31060 (imageftbbox() does not use linespacing parameter)
authorfoobar <sniper@php.net>
Fri, 14 Jan 2005 23:08:48 +0000 (23:08 +0000)
committerfoobar <sniper@php.net>
Fri, 14 Jan 2005 23:08:48 +0000 (23:08 +0000)
NEWS
ext/gd/gd.c

diff --git a/NEWS b/NEWS
index d905c5bbf603fbe93b6af331cf22b92519fbd954..999bc98f8a5421f406d9e9d44822ce66c49df016 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -20,6 +20,7 @@ PHP 4                                                                      NEWS
 - Fixed bug #31101 (missing kerberos header file path with --with-openssl). (Jani)
 - 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
index 9f7cff8f1e060bd8007d555a800cfaf73b005cae..34ad32727a0cf1ce06c2f2f4c22dcd76b4a6023a 100644 (file)
@@ -3033,9 +3033,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;
@@ -3065,8 +3066,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 */