]> granicus.if.org Git - php/commitdiff
should be using the function here.
authorSterling Hughes <sterling@php.net>
Fri, 18 May 2001 20:32:47 +0000 (20:32 +0000)
committerSterling Hughes <sterling@php.net>
Fri, 18 May 2001 20:32:47 +0000 (20:32 +0000)
ext/gd/gd_ctx.c

index 74378885bc41e74dc2950d0c56bc984e3300855e..c7a321cda8087331d5ab6805ec4f3abb9814d183 100644 (file)
@@ -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);