php56-imagick的奇怪错误

时间:2015-10-27 21:27:29

标签: php imagick

我已经因为这个问题而心烦意乱!请帮忙)

版本

MacOS版本(El Capitan)

$ sw_vers -productVersion

10.11.1

PHP版

$ php -v

PHP 5.6.14 (cli) (built: Oct  3 2015 14:54:13) 
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
    with Xdebug v2.3.3, Copyright (c) 2002-2015, by Derick Rethans

IMagick版本

$ php -i | grep imagick

imagick
imagick module => enabled
imagick module version => 3.1.2
imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
imagick.locale_fix => 0 => 0
imagick.progress_monitor => 0 => 0

ImageMagick版

$ identify -version

Version: ImageMagick 6.9.2-4 Q16 x86_64 2015-10-11 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules 
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib

问题

这个简单的PHP脚本有3行 run.php

<?php

$img = '/Users/vkulikov/Downloads/1444827520-120x60.gif';
$imagick = new \Imagick();
$imagick->readImage($img);

当我试图在控制台中执行它时,我有这个奇怪的输出

$ php run.php 

Assertion failed: (wand->signature == WandSignature), function MagickClearException, file wand/magick-wand.c, line 246.
Magick: abort due to signal 6 (SIGABRT) "Abort"...
Abort trap: 6

有任何想法吗?

0 个答案:

没有答案