php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20157 PHP don't compile with GD 2.0.x
Submitted: 2002-10-29 17:13 UTC Modified: 2002-10-29 17:22 UTC
From: arnu at fr dot st Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.3 OS: Red Hat 7.3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: arnu at fr dot st
New email:
PHP Version: OS:

 

 [2002-10-29 17:13 UTC] arnu at fr dot st
Since GD 2.0.x the struct gdIOCtx in gd_io.h has changed

It was:

typedef struct gdIOCtx {
	...
	void    (*free)(struct gdIOCtx*);

} gdIOCtx;

It is now:

typedef struct gdIOCtx {
	...
	void    (*gd_free)(struct gdIOCtx*);

} gdIOCtx;


The fix is simple:
If you want to use GD 2.0.x, the files gd_ctx.c and gd.c in the ext/gd directory should be edited in order to replace all x->free references where x is of type gdIOCtx by x->gd_free.



            cordially, Arnaud

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-29 17:22 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot 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 in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Aug 15 13:00:02 2025 UTC