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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php