imagick icon indicating copy to clipboard operation
imagick copied to clipboard

Module Version Not Set

Open adam1010 opened this issue 7 years ago • 4 comments

The compiled dll on PECL for 7.2 Windows doesn't have the module version set. Not sure if it's a Windows problem or a 7.2 problem.

When I run php -i

imagick module => enabled imagick module version => @PACKAGE_VERSION@ Imagick compiled with ImageMagick version => ImageMagick 7.0.7-11 Q16 x64 2017-11-23 Imagick using ImageMagick library version => ImageMagick 7.0.7-35 Q16 x64 2018-05-21

It's causing other libraries to fail when they run checks on the imagick version.

http://windows.php.net/downloads/pecl/snaps/imagick/3.4.3/php_imagick-3.4.3-7.2-ts-vc15-x64.zip https://mlocati.github.io/articles/php-windows-imagick.html

adam1010 avatar Jun 02 '18 06:06 adam1010

@Danack Any ideas here? Do I have to compile imagick myself? Or is there a way to force the imagick extension to report the version number?

adam1010 avatar Jun 05 '18 08:06 adam1010

Sorry not really.

This library could really do with someone stepping up to help maintain it, particularly on windows issues, which I just don't have time for.

Danack avatar Jun 07 '18 21:06 Danack

I was able to correct this locally by opening php_imagick.dll in a HEX editor and searching for @PACKAGE_VERSION@ and replacing it with 3.4.3 (there was only one occurrence). It's not ideal but I wanted to post here about a quick fix if anyone else is in the same boat.

adam1010 avatar Jun 29 '18 08:06 adam1010

Thanks @adam1010 for mentioning this. Was able to use Notepad++ with the HEX Editor plugin to do this. For those wondering, changed "@PACK" to "3.4.3" and the rest to HEX "0" and it worked.

MarkRH avatar Aug 13 '18 08:08 MarkRH