Imagick扩展显示在phpinfo上,但在命令提示符

时间:2016-06-26 17:51:36

标签: php windows apache imagick

成功地将imagick安装到我的系统中并能够加载imagick extentsion(出现在phpinfo中)但是当在我的命令提示符中运行简单的php命令(例如php -v时),它会显示错误

  

PHP警告:PHP启动:无法加载动态库' [MY_SERVER_PATH] \ PHP \ ext \ php_imagick.dll' - 找不到指定的模块。

我的系统信息如下:

  • 操作系统:Windows 10 Pro 64Bit
  • PHP:5.6.19
  • ImageMagick:ImageMagick-6.9.4-10-Q16-x64-dll
  • PHP Imagick:php_imagick-3.3.0-5.6-ts-vc11-x64

My Error screenshot... 我跑     print_r(get_loaded_extensions()); 结果是:

  

数组([0] =>核心1 => bcmath [2] =>日历[3] => ctype [4] =>日期[5] => ereg [ 6] => filter [7] => ftp [8] => hash [9] => iconv [10] => json [11] => mcrypt [12] => SPL [13 ] => odbc [14] => pcre [15] =>反射[16] =>会话[17] =>标准[18] => mysqlnd [19] => tokenizer [20] => zip [21] => zlib [22] => libxml [23] => dom [24] => PDO [25] => openssl [26] => SimpleXML [27] = > wddx [28] => xml [29] => xmlreader [30] => xmlwriter [31] => apache2handler [32] => curl [33] => fileinfo [34] =&gt ; gd [35] => intl [36] => imap [37] => mbstring [38] => mysql [39] => mysqli [40] => Phar [41] => pdo_mysql [42] => soap [43] => xmlrpc [44] => imagick [45] => mhash)

我只是不明白为什么php命令提示符总是显示错误。

P.S:我没有使用任何XAMPP或WAMPP包...

更新

我想知道CLI加载了什么扩展,所以我运行一个简单的PHP脚本,这就是结果:

  

D:> php -r" print_r(get_loaded_extensions());"

Warning: PHP Startup: Unable to load dynamic library 'D:\Eric\web\PHP\ext\php_imagick.dll' - The specified module coul d not be found. in Unknown on line 0 Array ( [0] => Core [1] => bcmath [2] => calendar [3] => ctype [4] => date [5] => ereg [6] => filter [7] => ftp [8] => hash [9] => iconv [10] => json [11] => mcrypt [12] => SPL [13] => odbc [14] => pcre [15] => Reflection [16] => session [17] => standard [18] => mysqlnd [19] => tokenizer [20] => zip [21] => zlib [22] => libxml [23] => dom [24] => PDO [25] => openssl [26] => SimpleXML [27] => wddx [28] => xml [29] => xmlreader [30] => xmlwriter [31] => curl [32] => fileinfo [33] => gd [34] => intl [35] => imap [36] => mbstring [37] => mysql [38] => mysqli [39] => Phar [40] => pdo_mysql [41] => soap [42] => xmlrpc [43] => mhash )

0 个答案:

没有答案