From: foobar Date: Tue, 7 Aug 2001 16:35:35 +0000 (+0000) Subject: php_sig_gd2 is only needed for GD extension. X-Git-Tag: BEFORE_PARAM_PARSING_CHANGE~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e53100fc7a970b010d0eebf7a513a2b7a1b7ecdd;p=php php_sig_gd2 is only needed for GD extension. --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 51ac436b1f..9e3b507880 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -937,6 +937,8 @@ PHP_FUNCTION(imagetypes) /* {{{ _php_image_type */ +static const char php_sig_gd2[3] = {'g', 'd', '2'}; + static int _php_image_type (char data[8]) { #ifdef HAVE_LIBGD15 diff --git a/ext/gd/php_gd.h b/ext/gd/php_gd.h index 416a45b3af..f29695831b 100644 --- a/ext/gd/php_gd.h +++ b/ext/gd/php_gd.h @@ -56,7 +56,6 @@ PHPAPI extern const char php_sig_gif[3]; PHPAPI extern const char php_sig_jpg[3]; PHPAPI extern const char php_sig_png[3]; -PHPAPI extern const char php_sig_gd2[3] = {'g', 'd', '2'}; extern zend_module_entry gd_module_entry; #define phpext_gd_ptr &gd_module_entry