php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17205 GD1.3 not working with ttf
Submitted: 2002-05-14 08:10 UTC Modified: 2002-06-28 02:58 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: ta at sot dot com Assigned:
Status: Closed Package: GD related
PHP Version: 4.2.1 OS: Linux 2.2.14
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ta at sot dot com
New email:
PHP Version: OS:

 

 [2002-05-14 08:10 UTC] ta at sot dot com
When php >=4.1 is configured with --with-gd and --with-ttf options while you are having gd1.3 and freetype1 on your system, it will result an unresolved link to "gdImageColorResolve()" function as you start the apache daemon.

Also when you try to compile the gd extension separately by running gcc, a warning will be produced saying that no definition can be found for that function. I tried to use php without --with-ttf option and then everything was ok.

The problem could be in declaring the function as "static" in ext/gd/php_gd.h. I managed to solve the problem by simply copy-pasting gdImageColorResolve() definition from ext/gd/gd.c to ext/gd/gdttf.c and then everything worked out for me.

I also suspect that ext/gd/gdt1.c can also be problematic since this function is called from this file as well.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-28 02:58 UTC] sniper@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC