summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMathieu Kooiman <mathieu@php.net>2000-11-08 14:56:09 +0000
committerMathieu Kooiman <mathieu@php.net>2000-11-08 14:56:09 +0000
commit5e7041615a21fe5ae3eea37d9f57397f78d3ea4f (patch)
tree2de6d543a1f4bde21d17d886cfb22d26877d6557 /ext
parent41d83c5d958b82ea5b08c44dee0a51b76d01178c (diff)
downloadphp-git-5e7041615a21fe5ae3eea37d9f57397f78d3ea4f.tar.gz
- Made gd extension build when using gd version < 1.5
Diffstat (limited to 'ext')
-rw-r--r--ext/gd/gd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 61f4b0fefa..54c58eb45f 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -480,6 +480,7 @@ PHP_FUNCTION(imagetypes)
static int _php_image_type (char data[8])
{
+#ifdef HAVE_LIBGD15
/* Based on ext/standard/images.c */
if (data == NULL)
@@ -507,10 +508,12 @@ static int _php_image_type (char data[8])
}
#endif
return -1;
+#endif
}
gdImagePtr _php_image_create_from_string (zval **data, char *tn, gdImagePtr (*ioctx_func_p)())
{
+#ifdef HAVE_LIBGD15
gdImagePtr im;
gdIOCtx *io_ctx;
@@ -528,12 +531,14 @@ gdImagePtr _php_image_create_from_string (zval **data, char *tn, gdImagePtr (*io
}
return im;
+#endif
}
/* {{{ proto int imagecreatefromstring(string image)
Create a new image from the image stream in the string */
PHP_FUNCTION (imagecreatefromstring)
{
+#ifdef HAVE_LIBGD15
zval **data;
gdImagePtr im;
int imtype;
@@ -596,6 +601,7 @@ PHP_FUNCTION (imagecreatefromstring)
}
ZEND_REGISTER_RESOURCE(return_value, im, GDG (le_gd));
+#endif
}
/* }}} */