Page 1 of 1

Installing MagickWand for PHP fails with PHP 7

Posted: 2016-01-13T14:41:08-07:00
by Floezen
Hi,

I tried to compile MagickWand for PHP (MagickWandForPHP-1.0.9) on PHP 7.0.1 but "make" unfortunately fails with following error:

Code: Select all

In file included from /home/floezen/magickwand/MagickWandForPHP-1.0.9/magickwand.c:9:0:
/home/floezen/magickwand/MagickWandForPHP-1.0.9/magickwand_inc.h:19:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
 #include "ext/standard/php_smart_str.h"
                                        ^
compilation terminated.
make: *** [magickwand.lo] Fehler 1
php_smart_str.h only exists in my PHP 5.6 installation, but not in the PHP 7 installation. How do I get it? Or is there a other solution?

Thanks & regards
Flözen

Re: Installing MagickWand for PHP fails with PHP 7

Posted: 2016-01-14T04:22:47-07:00
by magick
Only PHP 5 is supported now. We'll look into supporting PHP 7 when we get a chance.

Re: Installing MagickWand for PHP fails with PHP 7

Posted: 2016-01-14T04:52:10-07:00
by Floezen
So, would you say MagickWand for PHP ist dead?! Viewing the number of posts within the last year, it seams like there in not much interest in it.

Would you suggest to switch to imagick or anything else to use with PHP 7?!

Re: Installing MagickWand for PHP fails with PHP 7

Posted: 2016-01-14T06:44:11-07:00
by magick
MagickWand is supported and will continue to be supported. There appears to be a more active community around IMagick. That may be the best path forward. You could of course just call the 'convert' program form PHP.

Re: Installing MagickWand for PHP fails with PHP 7

Posted: 2016-01-14T10:15:01-07:00
by fmw42
Imagick has not been well supported in the past and is missing many of the new features of command line IM. But someone is now working to improve it. However, I do not know when it will be done. I would suggest you use PHP exec() to run command lines, at least for the time being.

Re: Installing MagickWand for PHP fails with PHP 7

Posted: 2016-02-29T13:44:36-07:00
by visitor x
im in big need of this too for php7 i hope it will be supported

Re: Installing MagickWand for PHP fails with PHP 7

Posted: 2017-08-29T06:39:25-07:00
by spiderr
Are there any plans/updates for MagickWand for PHP 7?

Re: Installing MagickWand for PHP fails with PHP 7

Posted: 2017-08-29T06:46:07-07:00
by magick
Yes there are plans but we do not have an ETA on porting MagickWand for PHP 7 yet. As always, an ImageMagick user can contribute patches for the port. The ImageMagick developers are way too busy right now to work on it.

Re: Installing MagickWand for PHP fails with PHP 7

Posted: 2017-08-29T12:04:04-07:00
by spiderr
If I got spunky, would I fork here?

https://github.com/ImageMagick/MagickWandForPHP

Re: Installing MagickWand for PHP fails with PHP 7

Posted: 2017-08-30T13:11:16-07:00
by magick
That looks right. Have fun and thanks for contributing to the ImageMagick community.