Re: ext/gd/gd_ctx.c: In function '_php_image_stream_putc': error: 'struct gdIOCtx' has no member named 'data'

From: Date: Sun, 10 Feb 2013 22:54:16 +0000
Subject: Re: ext/gd/gd_ctx.c: In function '_php_image_stream_putc': error: 'struct gdIOCtx' has no member named 'data'
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-65764@lists.php.net to get a copy of this message
Dennis Clarke in php.internals (Sun, 10 Feb 2013 14:50:25 -0500): > >libJPEG Version unknown > >Not sure why libJPEG is an unknown version but other than that .. looks great. Because you are using version 9.0 and ext/gd/libgd/gd_jpeg.c does not know anything about that version. There should be a generic check for the libJPEG version. Something like char jpegstr[12]; const char * gdJpegGetVersionString() { switch(JPEG_LIB_VERSION) { case 62: return "6b"; break; case 70: return "7"; break; case 80: return "8"; break; default: snprintf(jpegstr, sizeof(jpegstr), "%d", JPEG_LIB_VERSION); return jpegstr; } } But I know there are better solutions (looking at ext/gd/gd.c). Jan

« previous php.internals (#65764) next »