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 »

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: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Installing MagickWand for PHP fails with PHP 7

Post by magick »

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 »

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: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Installing MagickWand for PHP fails with PHP 7

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Installing MagickWand for PHP fails with PHP 7

Post 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.
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 »

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 »

Are there any plans/updates for MagickWand for PHP 7?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Installing MagickWand for PHP fails with PHP 7

Post 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.
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 »

If I got spunky, would I fork here?

https://github.com/ImageMagick/MagickWandForPHP
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Installing MagickWand for PHP fails with PHP 7

Post by magick »

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