summaryrefslogtreecommitdiff
path: root/ext/gd/gd_ctx.c
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2001-05-18 20:32:47 +0000
committerSterling Hughes <sterling@php.net>2001-05-18 20:32:47 +0000
commitfd3eb2544a1c571718f44fef53cdb53d6d2c4f53 (patch)
tree5aadee88a7a445f8795eaad39ef577eeb19fdd9f /ext/gd/gd_ctx.c
parent4812388278423062e760f78ec7605a7272038b19 (diff)
downloadphp-git-fd3eb2544a1c571718f44fef53cdb53d6d2c4f53.tar.gz
should be using the function here.
Diffstat (limited to 'ext/gd/gd_ctx.c')
-rw-r--r--ext/gd/gd_ctx.c5
1 files changed, 4 insertions, 1 deletions
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);