|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64561 new GD ext functions missing from gd_compat.h
Submitted: 2013-04-02 07:02 UTC Modified: 2016-10-17 12:11 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: Assigned: cmb (profile)
Status: Closed Package: GD related
PHP Version: 5.5.0beta1 OS: Any
Private report: No CVE-ID: None
 [2013-04-02 07:02 UTC]
php5 fails to load gd extension due to using symbol only available from bundled 

libgd/gd_compat.h misses the definition of gdImagePaletteToTrueColor and the 
function needs to be moved from gd.c to gd_color.c.  (Or something like that.)

And it definitely needs a test in the test suite (or you can finally take over the 
libgd2 and release a new version for everyone, pretty please).

Expected result:
# php5

Actual result:
# php5
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/lib/php5/20121212+lfs/' - /usr/lib/php5/20121212+lfs/ undefined 
symbol: gdImagePaletteToTrueColor in Unknown on line 0


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-04-03 06:44 UTC]
Same applies for gdImageRotateInterpolated and probably many other new functions 
 [2013-04-03 06:44 UTC]
-Summary: gdImagePaletteToTrueColor missing from gd_compat.h +Summary: new GD ext functions missing from gd_compat.h
 [2013-04-03 07:13 UTC]
Quick note, only the generic functions (affine, rotate, scale and set 
interpolation method) will be added to userland.
 [2016-10-17 11:51 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2016-10-17 11:51 UTC]
Ondřej, hasn't this issue been already resolved?
 [2016-10-17 12:11 UTC]
-Status: Feedback +Status: Closed
 [2016-10-17 12:11 UTC]
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 22 13:01:29 2024 UTC