|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-12-09 08:44 UTC] antonygraemecox at gmail dot com
Description:
------------
I am unsure whether this is a problem, or appropriate behaviour that either isn't documented, or is and I can't find where.
If you use Apache's mod_mpm_prefork then everything works as expected. If you try to use mod_mpm_event or mod_mpm_worker then Imagick is not loaded as a PHP module when Apache is restarted.
Apache version 2.4.6 using mod_php with version 7.0.0.
Test script:
---------------
With Apache mod_mpm_event or mod_mpm_worker set as the MPM module then simply:
$image = new \Imagick('/path/to/file.jpg');
Will produce an error like: PHP Fatal Error: Uncaught Error: Class 'Imagick' not found in /some/code/location.php
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 05:00:01 2025 UTC |
As I said before: "That exact behaviour would be seen, if Apache/PHP was using a different ini file that did not contain `extension=imagick.so` in it. Please can you double-check that the ini file being used does attempt to load the module." Please can you check the ini file being used. One way of doing this is to do phpinfo() in a page served by the server, and look the line: Loaded Configuration File /etc/php.ini And check that your server is attempting to load Imagick.