At 9:22 AM +0100 14/3/02, David Brannlund wrote:

>This configuration works with GD 1.3-6 and Freetype 1.x.
>
>When we try to upgrade to PHP 4.1.2 with the same configuration, we can't
>use the ImageTTF* functions. We tried to add --with-ttf to the configuration
>with the result that apache wouldn't start (complained about
>gdImageResolveColor). We use apache 1.3.20, btw.

The following patch fixed it for me:

diff -r -U3 php-4.1.2/ext/gd/php_gd.h php-4.1.2.gd/ext/gd/php_gd.h
--- php-4.1.2/ext/gd/php_gd.h   Sat Aug 25 06:07:07 2001
+++ php-4.1.2.gd/ext/gd/php_gd.h        Thu Feb 28 15:03:02 2002
@@ -66,7 +66,7 @@
 PHP_MSHUTDOWN_FUNCTION(gd);

 #ifndef HAVE_GDIMAGECOLORRESOLVE
-static int gdImageColorResolve(gdImagePtr, int, int, int);
+extern int gdImageColorResolve(gdImagePtr, int, int, int);
 #endif
 PHP_FUNCTION(imagearc);
 PHP_FUNCTION(imagechar);


 ...R.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to