Browse Source

php_sig_gd2 is only needed for GD extension.

migration/unlabaled-1.67.2
foobar 25 years ago
parent
commit
e53100fc7a
  1. 2
      ext/gd/gd.c
  2. 1
      ext/gd/php_gd.h

2
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

1
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

Loading…
Cancel
Save