]> granicus.if.org Git - php/commitdiff
- missing implementation gdJpegGetVersionString (thanks Rob)
authorPierre Joye <pajoye@php.net>
Tue, 7 Apr 2009 13:07:04 +0000 (13:07 +0000)
committerPierre Joye <pajoye@php.net>
Tue, 7 Apr 2009 13:07:04 +0000 (13:07 +0000)
ext/gd/libgd/gd.h
ext/gd/libgd/gd_jpeg.c

index a1862470569abd8e2848c0bfba16cefa7bbf196f..03ed098d8e417fb5cfdcd01b8d36b1d91e4080e9 100644 (file)
@@ -249,6 +249,9 @@ gdImagePtr gdImageCreateFromJpegCtx(gdIOCtx *infile, int ignore_warning);
 int gdJpegGetVersionInt();
 const char * gdPngGetVersionString();
 
+int gdJpegGetVersionInt();
+const char * gdJpegGetVersionString();
+
 /* A custom data source. */
 /* The source function must return -1 on error, otherwise the number
         of bytes fetched. 0 is EOF, not an error! */
index a71469137f2870363ee29c7ed08de169e919db2a..0d9bae151cc38eda52e3df9667d818ff168a62bb 100644 (file)
@@ -107,6 +107,18 @@ int gdJpegGetVersionInt()
        return JPEG_LIB_VERSION;
 }
 
+const char * gdJpegGetVersionString()
+{
+       switch(JPEG_LIB_VERSION) {
+               case 62:
+                       return "6b";
+                       break;
+               default:
+                       return "unknown";
+       }
+}
+
+
 /*
  * Write IM to OUTFILE as a JFIF-formatted JPEG image, using quality
  * QUALITY.  If QUALITY is in the range 0-100, increasing values