Installing MagickWand for PHP fails with PHP 7

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
Floezen
Posts: 5
Joined: 2013-09-16T11:47:51-07:00
Authentication code: 6789

Installing MagickWand for PHP fails with PHP 7

Post by Floezen » 2016-01-13T14:41:08-07:00

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

User avatar
magick
Site Admin
Posts: 10690
Joined: 2003-05-31T11:32:55-07:00

Re: Installing MagickWand for PHP fails with PHP 7

Post by magick » 2016-01-14T04:22:47-07:00

Only PHP 5 is supported now. We'll look into supporting PHP 7 when we get a chance.

Floezen
Posts: 5
Joined: 2013-09-16T11:47:51-07:00
Authentication code: 6789

Re: Installing MagickWand for PHP fails with PHP 7

Post by Floezen » 2016-01-14T04:52:10-07:00

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?!

User avatar
magick
Site Admin
Posts: 10690
Joined: 2003-05-31T11:32:55-07:00

Re: Installing MagickWand for PHP fails with PHP 7

Post by magick » 2016-01-14T06:44:11-07:00

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.

User avatar
fmw42
Posts: 22080
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: Installing MagickWand for PHP fails with PHP 7

Post by fmw42 » 2016-01-14T10:15:01-07:00

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.

visitor x
Posts: 16
Joined: 2013-07-27T13:26:38-07:00
Authentication code: 6789

Re: Installing MagickWand for PHP fails with PHP 7

Post by visitor x » 2016-02-29T13:44:36-07:00

im in big need of this too for php7 i hope it will be supported

spiderr
Posts: 4
Joined: 2015-06-12T13:19:21-07:00
Authentication code: 6789

Re: Installing MagickWand for PHP fails with PHP 7

Post by spiderr » 2017-08-29T06:39:25-07:00

Are there any plans/updates for MagickWand for PHP 7?

User avatar
magick
Site Admin
Posts: 10690
Joined: 2003-05-31T11:32:55-07:00

Re: Installing MagickWand for PHP fails with PHP 7

Post by magick » 2017-08-29T06:46:07-07:00

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.

spiderr
Posts: 4
Joined: 2015-06-12T13:19:21-07:00
Authentication code: 6789

Re: Installing MagickWand for PHP fails with PHP 7

Post by spiderr » 2017-08-29T12:04:04-07:00

If I got spunky, would I fork here?

https://github.com/ImageMagick/MagickWandForPHP

User avatar
magick
Site Admin
Posts: 10690
Joined: 2003-05-31T11:32:55-07:00

Re: Installing MagickWand for PHP fails with PHP 7

Post by magick » 2017-08-30T13:11:16-07:00

That looks right. Have fun and thanks for contributing to the ImageMagick community.

Post Reply