composer.phar和ionCube 4.0.7

时间:2013-04-23 09:53:54

标签: symfony composer-php ioncube

我试图让作曲家为init一个symfony2项目 但是,当我尝试这个命令时

$ curl -s https://getcomposer.org/installer | php

我收到此错误:

Some settings on your machine make Composer unable to work properly.Make sure that you fix the issues listed below and run this script again:

Your ionCube Loader extension (4.0) is incompatible with Phar files.
Upgrade to ionCube 4.0.9 or higher or remove this line (path may be different) from your `php.ini` to disable it:
    zend_extension = /usr/lib/php5/20090626+lfs/ioncube_loader_lin_5.3.so

The php.ini used by your command-line PHP is: /etc/php.ini
If you can not modify the ini file, you can also run `php -d option=value` to modify ini values on the fly. You can use -d multiple times.

我只是看看我的php.ini,发现我的ionCube Loader版本是4.0.7。
有没有办法让composer.phar使用这个版本的ionCube Loader来避免PHP更新?

1 个答案:

答案 0 :(得分:1)

正如错误所述,旧的ionCube版本只会使phar文件失败,因此它们与composer.phar不兼容。但是你可以安装一个新版本的ioncube loader而不用完全更新我想象的PHP。