cvs: php4(PHP_4_0_7) /ext/gd config.m4 gd.c php_gd.h

From: Date: Fri, 24 Aug 2001 20:07:07 +0000
Subject: cvs: php4(PHP_4_0_7) /ext/gd config.m4 gd.c php_gd.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-7050@lists.php.net to get a copy of this message
sniper Fri Aug 24 16:07:07 2001 EDT Modified files: (Branch: PHP_4_0_7) /php4/ext/gd config.m4 gd.c php_gd.h Log: MFH Index: php4/ext/gd/config.m4 diff -u php4/ext/gd/config.m4:1.71 php4/ext/gd/config.m4:1.71.2.1 --- php4/ext/gd/config.m4:1.71 Tue Jul 3 17:09:16 2001 +++ php4/ext/gd/config.m4 Fri Aug 24 16:07:07 2001 @@ -1,5 +1,5 @@ dnl -dnl $Id: config.m4,v 1.71 2001/07/03 21:09:16 sniper Exp $ +dnl $Id: config.m4,v 1.71.2.1 2001/08/24 20:07:07 sniper Exp $ dnl AC_DEFUN(PHP_GD_JPEG,[ @@ -172,7 +172,8 @@ AC_CHECK_LIB(gd, gdImageString16, [AC_DEFINE(HAVE_LIBGD13, 1, [ ])]) AC_CHECK_LIB(gd, gdImagePaletteCopy, [AC_DEFINE(HAVE_LIBGD15, 1, [ ])]) AC_CHECK_LIB(gd, gdImageCreateFromPng, [AC_DEFINE(HAVE_GD_PNG, 1, [ ])]) - AC_CHECK_LIB(gd, gdImageCreateFromGif, [AC_DEFINE(HAVE_GD_GIF, 1, [ ])]) + AC_CHECK_LIB(gd, gdImageCreateFromGif, [AC_DEFINE(HAVE_GD_GIF_READ, 1, [ ])]) + AC_CHECK_LIB(gd, gdImageGif, [AC_DEFINE(HAVE_GD_GIF_CREATE, 1, [ ])]) AC_CHECK_LIB(gd, gdImageWBMP, [AC_DEFINE(HAVE_GD_WBMP, 1, [ ])]) AC_CHECK_LIB(gd, gdImageCreateFromJpeg, [AC_DEFINE(HAVE_GD_JPG, 1, [ ])]) AC_CHECK_LIB(gd, gdImageCreateFromXpm, [AC_DEFINE(HAVE_GD_XPM, 1, [ ])]) Index: php4/ext/gd/gd.c diff -u php4/ext/gd/gd.c:1.154 php4/ext/gd/gd.c:1.154.2.1 --- php4/ext/gd/gd.c:1.154 Mon Aug 13 03:55:32 2001 +++ php4/ext/gd/gd.c Fri Aug 24 16:07:07 2001 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.154 2001/08/13 07:55:32 rasmus Exp $ */ +/* $Id: gd.c,v 1.154.2.1 2001/08/24 20:07:07 sniper Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -305,8 +305,11 @@ /* this next part is stupid ... if I knew better, I'd put them all on one row (cmv) */ -#ifdef HAVE_GD_GIF - php_info_print_table_row(2, "GIF Support", "enabled"); +#ifdef HAVE_GD_GIF_READ + php_info_print_table_row(2, "GIF Read Support", "enabled"); +#endif +#ifdef(HAVE_GD_GID_CREATE) + php_info_print_table_row(2, "GIF Create Support", "enabled"); #endif #ifdef HAVE_GD_JPG php_info_print_table_row(2, "JPG Support", "enabled"); @@ -1045,7 +1048,7 @@ break; case PHP_GDIMG_TYPE_GIF: -#ifdef HAVE_GD_GIF +#ifdef HAVE_GD_GIF_READ im = _php_image_create_from_string (data, "GIF", gdImageCreateFromGifCtx TSRMLS_CC); #else php_error(E_WARNING, "No GIF support in this PHP build"); @@ -1187,10 +1190,10 @@ Create a new image from GIF file or URL */ PHP_FUNCTION(imagecreatefromgif) { -#ifdef HAVE_GD_GIF +#ifdef HAVE_GD_GIF_READ _php_image_create_from(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GIF, "GIF", gdImageCreateFromGif, gdImageCreateFromGifCtx); -#else /* HAVE_GD_GIF */ - php_error(E_WARNING, "ImageCreateFromGif: No GIF support in this PHP build"); +#else /* HAVE_GD_GIF_READ */ + php_error(E_WARNING, "ImageCreateFromGif: No GIF read support in this PHP build"); RETURN_FALSE; #endif /* HAVE_GD_GIF */ } @@ -1413,14 +1416,14 @@ Output GIF image to browser or file */ PHP_FUNCTION(imagegif) { -#ifdef HAVE_GD_GIF +#ifdef HAVE_GD_GIF_CREATE #ifdef HAVE_GD_GIF_CTX _php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GIF, "GIF", gdImageGifCtx); #else _php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GIF, "GIF", gdImageGif); #endif #else /* HAVE_GD_GIF */ - php_error(E_WARNING, "ImageGif: No GIF support in this PHP build"); + php_error(E_WARNING, "ImageGif: No GIF create support in this PHP build"); RETURN_FALSE; #endif /* HAVE_GD_GIF */ } @@ -2257,7 +2260,7 @@ /* {{{ php_gdimagecharup * workaround for a bug in gd 1.2 */ -void php_gdimagecharup(gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) +static void php_gdimagecharup(gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) { int cx, cy, px, py, fline; cx = 0; @@ -3447,7 +3450,7 @@ } switch (image_type) { -#ifdef HAVE_GD_GIF +#ifdef HAVE_GD_GIF_READ case PHP_GDIMG_TYPE_GIF: im_org = gdImageCreateFromGif (org); if (im_org == NULL) { @@ -3455,7 +3458,7 @@ RETURN_FALSE; } break; -#endif /* HAVE_GD_GIF */ +#endif /* HAVE_GD_GIF_READ */ #ifdef HAVE_GD_JPG case PHP_GDIMG_TYPE_JPG: Index: php4/ext/gd/php_gd.h diff -u php4/ext/gd/php_gd.h:1.35 php4/ext/gd/php_gd.h:1.35.2.1 --- php4/ext/gd/php_gd.h:1.35 Tue Aug 7 12:35:35 2001 +++ php4/ext/gd/php_gd.h Fri Aug 24 16:07:07 2001 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_gd.h,v 1.35 2001/08/07 16:35:35 sniper Exp $ */ +/* $Id: php_gd.h,v 1.35.2.1 2001/08/24 20:07:07 sniper Exp $ */ #ifndef PHP_GD_H #define PHP_GD_H @@ -146,7 +146,6 @@ PHP_FUNCTION(imagestringup); PHP_FUNCTION(imagesx); PHP_FUNCTION(imagesy); -static void php_gdimagecharup(gdImagePtr, gdFontPtr, int, int, int, int); PHP_FUNCTION(imagedashedline); PHP_FUNCTION(imagettfbbox); PHP_FUNCTION(imagettftext);

« previous php.cvs (#7050) next »