]> granicus.if.org Git - php/commitdiff
temporary disable WBM detection with system libgd, as gdGetC, getmbi and skipheader...
authorRemi Collet <remi@php.net>
Mon, 22 Apr 2013 15:48:28 +0000 (17:48 +0200)
committerRemi Collet <remi@php.net>
Mon, 22 Apr 2013 15:48:28 +0000 (17:48 +0200)
ext/gd/gd.c

index ba18b854dc827be610e21bc230346477d11e2b2c..6cafb51f20f0c5df8f44268757f9dffbab7c625b 100644 (file)
@@ -2403,6 +2403,8 @@ static int _php_image_type (char data[8])
        } else if (!memcmp(data, php_sig_gif, 3)) {
                return PHP_GDIMG_TYPE_GIF;
        }
+/* Temporary disabled, as gdGetC, getmbi and skipheader not exported in system libgd */
+#if HAVE_GD_BUNDLED
 #ifdef HAVE_GD_WBMP
        else {
                gdIOCtx *io_ctx;
@@ -2424,6 +2426,7 @@ static int _php_image_type (char data[8])
                        }
                }
        }
+#endif
 #endif
        return -1;
 #endif