pajoye          Tue Apr  7 13:07:04 2009 UTC

  Modified files:              
    /php-src/ext/gd/libgd       gd.h gd_jpeg.c 
  Log:
  - missing implementation gdJpegGetVersionString (thanks Rob)
  
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gd.h?r1=1.36&r2=1.37&diff_format=u
Index: php-src/ext/gd/libgd/gd.h
diff -u php-src/ext/gd/libgd/gd.h:1.36 php-src/ext/gd/libgd/gd.h:1.37
--- php-src/ext/gd/libgd/gd.h:1.36      Wed Jan 14 18:57:51 2009
+++ php-src/ext/gd/libgd/gd.h   Tue Apr  7 13:07:04 2009
@@ -249,6 +249,9 @@
 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! */
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gd_jpeg.c?r1=1.22&r2=1.23&diff_format=u
Index: php-src/ext/gd/libgd/gd_jpeg.c
diff -u php-src/ext/gd/libgd/gd_jpeg.c:1.22 php-src/ext/gd/libgd/gd_jpeg.c:1.23
--- php-src/ext/gd/libgd/gd_jpeg.c:1.22 Thu Nov  6 10:23:52 2008
+++ php-src/ext/gd/libgd/gd_jpeg.c      Tue Apr  7 13:07:04 2009
@@ -107,6 +107,18 @@
        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



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to