From e53100fc7a970b010d0eebf7a513a2b7a1b7ecdd Mon Sep 17 00:00:00 2001 From: foobar Date: Tue, 7 Aug 2001 16:35:35 +0000 Subject: [PATCH] php_sig_gd2 is only needed for GD extension. --- ext/gd/gd.c | 2 ++ ext/gd/php_gd.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.50.1