From: Sterling Hughes Date: Fri, 18 May 2001 20:32:47 +0000 (+0000) Subject: should be using the function here. X-Git-Tag: PRE_GRANULAR_GARBAGE_FIX~360 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd3eb2544a1c571718f44fef53cdb53d6d2c4f53;p=php should be using the function here. --- diff --git a/ext/gd/gd_ctx.c b/ext/gd/gd_ctx.c index 74378885bc..c7a321cda8 100644 --- a/ext/gd/gd_ctx.c +++ b/ext/gd/gd_ctx.c @@ -1,3 +1,6 @@ +#include "php_gd.h" + + #define CTX_PUTC(c,ctx) ctx->putC(ctx, c) static void _php_image_output_putc(struct gdIOCtx *ctx, int c) @@ -34,7 +37,7 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type, WRONG_PARAM_COUNT; } - ZEND_FETCH_RESOURCE(im, gdImagePtr, imgind, -1, "Image", le_gd); + ZEND_FETCH_RESOURCE(im, gdImagePtr, imgind, -1, "Image", phpi_get_le_gd()); if (argc > 1) { convert_to_string_ex(file);