今天帮同事安装配置php_imagick,结果装是装上了apache也能正常启动,但是程序一new Imagick()就会导致Apache崩溃。
在google之后从Stack Overflow找到问题原因:
I’ve had the same issue today. You have to install version of Image Magick no higher than 6.6.4.0 – next builds are made using VC10 which seems to be incompatible with Apache VC9 + PHP5.3.x VC9.
ImageImagick dll for windows 在6.6.4以后用的都是VC10编译,所以不兼容vc9编译的php,虽然apache能正常启动,但是new Imagick的时候会导致apache崩溃。
解决办法就是安装低版本的ImageImagick
下载地址:http://image_magick.veidrodis.com/image_magick/binaries/
参考资料:
http://stackoverflow.com/questions/8608426/imagick-crash-with-php-5-3
http://www.elxsy.com/2009/07/installing-imagemagick-on-windows-and-using-with-php-imagick/
Read: 1173