RE: [PHP-QA] RE: gd still broken

From: Date: Sat, 14 Dec 2002 00:14:00 +0000
Subject: RE: [PHP-QA] RE: gd still broken
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-7262@lists.php.net to get a copy of this message
for now i had to remove freetype as its linked to the external gd which gets broken on the compile coz i am using the internal gd, trying out php-4.4 -----Original Message----- From: Derick Rethans [mailto:derick@php.net] Sent: Friday, December 13, 2002 8:07 PM To: Dan Rossi Cc: Melvyn Sopacua; php-qa@lists.php.net Subject: Re: [PHP-QA] RE: gd still broken On Fri, 13 Dec 2002, Dan Rossi wrote: > i can honestly say checking for a particular version will not help instead > check for versions less than the version that requires gd_free which is > gd-2.0.8 > > #if HAVE_LIBGD204 > io_ctx->gd_free(io_ctx); > #else > io_ctx->free(io_ctx); > #endif > > i cant see where this define is coming from HAVE_LIBGD204 ?? From configure: AC_TRY_COMPILE( [ #include <gd.h> #include <stdlib.h> ], [ gdIOCtx *ctx; ctx = malloc(sizeof(gdIOCtx)); ctx->gd_free = 1; ], [ AC_DEFINE(HAVE_LIBGD204, 1, [ ]) ]) It defines it if the check finds gd_free to be part of the struct instead of just 'free'. Derick -- ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ ------------------------------------------------------------------------- -- PHP Quality Assurance Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.qa (#7262) next »