|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2014-01-06 17:15 UTC] ars4843 at gmail dot com
Description: ------------ Apparently, php_imagick.dll will only work if all appropriate libraries and modules are placed into root folder of PHP. Because of this user loses flexibility to keep ImageMagick files separate from PHP. Request/Suggestion: To think over the usefulness of implementation of Runtime Configuration that would let user to change default (currently PHP root) folder(s) for libraries and modules. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 21 10:00:01 2025 UTC |
Environment (1): Apache/2.4.4 (Win64) mod_fcgid/2.3.7; All libraries and modules in PHP root folder; Test file (testIM.php) in htdocs folder; testIM.php <?php $im = new imagick( 'rose.jpg' ); $im->thumbnailImage( 200, 0); $im->writeImage( 'rose.gif' ); ?> Running testIM.php from web browser – NO ERRORS. Command line: C:\Users\user>php E:\host\phpTest\phpinfo.php – NO ERRORS. Command line: C:\Users\user>php E:\host\phpTest\testIM.php – ERRORs as follows: C:\Users\aras>php E:\wwhost\phpTest\testIM.php PHP Fatal error: Uncaught exception 'ImagickException' with message 'unable to open image `rose.jpg': No such file or directory @ error/blob.c/OpenBlob/2643' in E:\wwhost\phpTest\testIM.php:2 Stack trace: #0 E:\wwhost\phpTest\testIM.php(2): Imagick->__construct('rose.jpg') #1 {main} thrown in E:\wwhost\phpTest\testIM.php on line 2 Fatal error: Uncaught exception 'ImagickException' with message 'unable to open image `rose.jpg': No such file or directory @ error/blob.c/OpenBlob/2643' in E:\wwhost\phpTest\testIM.php:2 Stack trace: #0 E:\wwhost\phpTest\testIM.php(2): Imagick->__construct('rose.jpg') #1 {main} thrown in E:\wwhost\phpTest\testIM.php on line 2 Environment (2): Libraries and modules absent in PHP root folder. Test from browser ERROR: Fatal error: Class 'imagick' not found in E:\wwhost\phpTest\testIM.php on line 2 phpinfo() - no imagick is loaded.