How to use imagick with PHP 7.2?
Posted: 2017-12-26T08:19:52-07:00
In PHP 7.2, the extensions definitions in the php.ini file do not require the initial "php_" nor the extension ".dll". So, for the php_imagick.dll file to be specified as an extension in the php.ini file, in theory you only need to add:
Not:
...although, for backward compatibility, the instructions at the top of the file indicate that the older, full-name specification will still work but will be deprecated at some point.
Using either form above does not work. When using the new form () and when I start my XAMPP Apache server, I receive this error:
), the error message becomes:
Can anyone else reproduce this error and/or provide a solution? I can't use PHP 7.2 until this is solved (imagick works in PHP 7.1).
Code: Select all
extension=imagick
Code: Select all
extension=php_imagick.dll
Using either form above does not work. When using the new form (
Code: Select all
extension=imagick
Using the older form of the extension initialization, ([23-Dec-2017 15:55:49 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'imagick' (tried: C:\xampp\php\ext\imagick (The specified module could not be found.
), C:\xampp\php\ext\php_imagick.dll (The specified procedure could not be found.
)) in Unknown on line 0
Code: Select all
extension=php_imagick.dll
I do have the file in the right location for XAMMP (C:\xampp\php\ext).[23-Dec-2017 15:55:49 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'imagick' (tried: C:\xampp\php\ext\php_imagick.dll (The specified module could not be found.
), C:\xampp\php\ext\php_php_imagick.dll.dll (The specified procedure could not be found.
)) in Unknown on line 0
Can anyone else reproduce this error and/or provide a solution? I can't use PHP 7.2 until this is solved (imagick works in PHP 7.1).