Building PHP 4.2.3 against GD 2.0.4

From: Date: Sat, 26 Oct 2002 00:44:02 +0000
Subject: Building PHP 4.2.3 against GD 2.0.4
Groups: php.dev 
Request: Send a blank email to php-dev+get-90126@lists.php.net to get a copy of this message
Hello, I've just joined the list to send this patch hoping this helps with the development of PHP... I wanted to build PHP 4.2.3 against gd 2.0.4 (latest version) and it would compile. I found the problem is one member of the gdIOCtx struct in gd_io.h has been renamed from "free" to "gd_free". Dunno if this change is present in gd 2.0.2 and 2.0.3 but it is in 2.0.4 and it wasn't in 2.0.1 So the solution is straightforward, just replace ->free with ->gd_free and it'll compile... I was wondering if someone else got this issue and also wondering how to properly fix it.. How should the source of the gd extension be hacked to allow compilation against GD 2.0.1 and GD 2.0.4??? I'm attaching a patch, the changes are in gd_ctx.c and gd.c under ../ext/gd in the PHP 4.2.3 tree. Thanks Antonio Ognio Lima,Peru

« previous php.dev (#90126) next »