summaryrefslogtreecommitdiff
path: root/ext/gd/gd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gd/gd.c')
-rw-r--r--ext/gd/gd.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 6b655d553c..4b8e34d55a 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -195,12 +195,10 @@ ZEND_BEGIN_ARG_INFO(arginfo_imagetruecolortopalette, 0)
ZEND_ARG_INFO(0, colorsWanted)
ZEND_END_ARG_INFO()
-#if HAVE_GD_BUNDLED
ZEND_BEGIN_ARG_INFO(arginfo_imagecolormatch, 0)
ZEND_ARG_INFO(0, im1)
ZEND_ARG_INFO(0, im2)
ZEND_END_ARG_INFO()
-#endif
ZEND_BEGIN_ARG_INFO(arginfo_imagesetthickness, 0)
ZEND_ARG_INFO(0, im)
@@ -1038,9 +1036,11 @@ const zend_function_entry gd_functions[] = {
#endif
#if HAVE_GD_BUNDLED
PHP_FE(imagelayereffect, arginfo_imagelayereffect)
- PHP_FE(imagecolormatch, arginfo_imagecolormatch)
PHP_FE(imagexbm, arginfo_imagexbm)
#endif
+
+ PHP_FE(imagecolormatch, arginfo_imagecolormatch)
+
/* gd filters */
PHP_FE(imagefilter, arginfo_imagefilter)
PHP_FE(imageconvolution, arginfo_imageconvolution)
@@ -1674,7 +1674,6 @@ PHP_FUNCTION(imagetruecolortopalette)
}
/* }}} */
-#if HAVE_GD_BUNDLED
/* {{{ proto bool imagecolormatch(resource im1, resource im2)
Makes the colors of the palette version of an image more closely match the true color version */
PHP_FUNCTION(imagecolormatch)
@@ -1713,7 +1712,6 @@ PHP_FUNCTION(imagecolormatch)
RETURN_TRUE;
}
/* }}} */
-#endif
/* {{{ proto bool imagesetthickness(resource im, int thickness)
Set line thickness for drawing lines, ellipses, rectangles, polygons etc. */