PHP_FE(imagecolorallocate, NULL)
#if HAVE_LIBGD15
PHP_FE(imagepalettecopy, NULL)
+ PHP_FE(imagecreatefromstring, NULL)
#endif
PHP_FE(imagecolorat, NULL)
PHP_FE(imagecolorclosest, NULL)
PHP_FE(imagesetstyle, NULL)
- PHP_FE(imagecreatefromstring, NULL)
#ifdef HAVE_GD_PNG
PHP_FE(imagecreatefrompng, NULL)
#endif
}
/* }}} */
+#ifdef HAVE_LIBGD15
/* {{{ _php_image_create_from_string
*/
gdImagePtr _php_image_create_from_string(zval **data, char *tn, gdImagePtr (*ioctx_func_p)() TSRMLS_DC)
{
-#ifdef HAVE_LIBGD15
gdImagePtr im;
gdIOCtx *io_ctx;
}
return im;
-#else
- return NULL;
-#endif
}
/* }}} */
Create a new image from the image stream in the string */
PHP_FUNCTION(imagecreatefromstring)
{
-#ifdef HAVE_LIBGD15
zval **data;
gdImagePtr im;
int imtype;
}
ZEND_REGISTER_RESOURCE(return_value, im, le_gd);
-#else
- php_error(E_WARNING, "ImageCreateFromString: Only available with GD 1.5+");
-#endif
}
/* }}} */
+#endif
/* {{{ _php_image_create_from
*/