From 5436f9f38deb3b7df16025b946f5600b116eab0d Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Wed, 14 Dec 2005 19:10:52 +0000 Subject: [PATCH] - remove HAVE_GD_GD2, always valid now (2.0.33 or bundled) --- ext/gd/config.m4 | 1 - ext/gd/gd.c | 13 ------------- 2 files changed, 14 deletions(-) diff --git a/ext/gd/config.m4 b/ext/gd/config.m4 index d034fc0b9d..879a850782 100644 --- a/ext/gd/config.m4 +++ b/ext/gd/config.m4 @@ -327,7 +327,6 @@ if test "$PHP_GD" != "no"; then dnl These defines are always available dnl FIXME: Cleanup the sources so that these are not needed! - AC_DEFINE(HAVE_GD_GD2, 1, [ ]) AC_DEFINE(HAVE_GD_WBMP, 1, [ ]) AC_DEFINE(HAVE_LIBGD13, 1, [ ]) AC_DEFINE(HAVE_LIBGD15, 1, [ ]) diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 3c1a7aa2c1..84c477e5f2 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -239,10 +239,8 @@ zend_function_entry gd_functions[] = { PHP_FE(imagecreatefromxpm, NULL) #endif PHP_FE(imagecreatefromgd, NULL) -#ifdef HAVE_GD_GD2 PHP_FE(imagecreatefromgd2, NULL) PHP_FE(imagecreatefromgd2part, NULL) -#endif #ifdef HAVE_GD_PNG PHP_FE(imagepng, NULL) #endif @@ -256,9 +254,7 @@ zend_function_entry gd_functions[] = { PHP_FE(imagewbmp, NULL) #endif PHP_FE(imagegd, NULL) -#ifdef HAVE_GD_GD2 PHP_FE(imagegd2, NULL) -#endif PHP_FE(imagedestroy, NULL) PHP_FE(imagegammacorrect, NULL) @@ -1449,12 +1445,7 @@ PHP_FUNCTION(imagecreatefromstring) break; case PHP_GDIMG_TYPE_GD2: -#ifdef HAVE_GD_GD2 im = _php_image_create_from_string(data, "GD2", gdImageCreateFromGd2Ctx TSRMLS_CC); -#else - php_error_docref(NULL TSRMLS_CC, E_WARNING, "No GD2 support in this PHP build"); - RETURN_FALSE; -#endif break; default: @@ -1652,7 +1643,6 @@ PHP_FUNCTION(imagecreatefromgd) } /* }}} */ -#ifdef HAVE_GD_GD2 /* {{{ proto resource imagecreatefromgd2(string filename) Create a new image from GD2 file or URL */ PHP_FUNCTION(imagecreatefromgd2) @@ -1668,7 +1658,6 @@ PHP_FUNCTION(imagecreatefromgd2part) _php_image_create_from(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GD2PART, "GD2", gdImageCreateFromGd2Part, gdImageCreateFromGd2PartCtx); } /* }}} */ -#endif /* HAVE_GD_GD2 */ /* {{{ _php_image_output */ @@ -1887,7 +1876,6 @@ PHP_FUNCTION(imagegd) } /* }}} */ -#ifdef HAVE_GD_GD2 /* {{{ proto bool imagegd2(resource im [, string filename, [, int chunk_size, [, int type]]]) Output GD2 image to browser or file */ PHP_FUNCTION(imagegd2) @@ -1895,7 +1883,6 @@ PHP_FUNCTION(imagegd2) _php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GD2, "GD2", gdImageGd2); } /* }}} */ -#endif /* HAVE_GD_GD2 */ /* {{{ proto bool imagedestroy(resource im) Destroy an image */ -- 2.50.1