Commits

Anthony Ramine authored 4c66369d27a
Create new port php5-FreeImage

This extension is a wrapper for the FreeImage library that allows PHP to support popular graphics image formats like GIF, PNG, BMP, JPEG, TIFF, PSD, XPM and others as needed by today's multimedia applications. git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@62707 d073be05-634f-4543-b044-5fe20cf6d1d6
No tags

php/php5-FreeImage/files/patch-freeimage.c.diff

Added
1 +--- freeimage.c.orig 2010-01-13 22:48:39.000000000 +0100
2 ++++ freeimage.c 2010-01-13 22:49:08.000000000 +0100
3 +@@ -1828,7 +1828,7 @@
4 + if (zend_parse_parameters(argc TSRMLS_CC, "lsbb|b", &fif, &filename, &filename_len, &create_new, &read_only, &keep_cache_in_memory) == FAILURE)
5 + return;
6 + multibitmap = (FIMULTIBITMAP *)emalloc(sizeof(FIMULTIBITMAP));
7 +- multibitmap = FreeImage_OpenMultiBitmap((FREE_IMAGE_FORMAT)fif, filename, create_new, read_only, keep_cache_in_memory);
8 ++ multibitmap = FreeImage_OpenMultiBitmap((FREE_IMAGE_FORMAT)fif, filename, create_new, read_only, keep_cache_in_memory, /* int flags FI_DEFAULT(0) */ 0);
9 + if (multibitmap != NULL) {
10 + ZEND_REGISTER_RESOURCE(return_value, multibitmap, le_freeimage_multibitmap);
11 + } else {

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut