pajoye          Tue Apr  7 09:43:54 2009 UTC

  Modified files:              
    /php-src/ext/gd/libgd       gd_compat.c gd_compat.h 
  Log:
   - MFB: initial import, support for external gd library while keeping bug 
fixes or features (more will be activated later)
  
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gd_compat.c?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/gd/libgd/gd_compat.c
diff -u /dev/null php-src/ext/gd/libgd/gd_compat.c:1.2
--- /dev/null   Tue Apr  7 09:43:54 2009
+++ php-src/ext/gd/libgd/gd_compat.c    Tue Apr  7 09:43:53 2009
@@ -0,0 +1,35 @@
+#include "php_config.h" 
+#ifdef HAVE_GD_PNG
+/* needs to be first */
+# include <png.h>
+#endif
+
+#ifdef HAVE_GD_JPG
+# include <jpeglib.h>
+#endif
+
+#ifdef HAVE_GD_JPG
+int gdJpegGetVersionInt()
+{
+       return JPEG_LIB_VERSION;
+}
+
+int gdJpegGetVersionString()
+{
+       switch(JPEG_LIB_VERSION) {
+               case 62:
+                       return "6b";
+                       break;
+               default:
+                       return "unknown";
+       }
+}
+#endif
+
+#ifdef HAVE_GD_PNG
+const char * gdPngGetVersionString()
+{
+       return PNG_LIBPNG_VER_STRING;
+}
+#endif
+
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gd_compat.h?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/gd/libgd/gd_compat.h
diff -u /dev/null php-src/ext/gd/libgd/gd_compat.h:1.2
--- /dev/null   Tue Apr  7 09:43:54 2009
+++ php-src/ext/gd/libgd/gd_compat.h    Tue Apr  7 09:43:53 2009
@@ -0,0 +1,5 @@
+const char * gdPngGetVersionString();
+int gdJpegGetVersionString();
+int gdJpegGetVersionInt();
+int overflow2(int a, int b);
+



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

Reply via email to