将yii2从2.0.6升级到2.0.7不起作用

时间:2016-05-12 05:59:44

标签: php yii2

在我的项目目录中,我首先执行了以下两个命令

php C:\ProgramData\ComposerSetup\bin\composer.phar self-update

php C:\ProgramData\ComposerSetup\bin\composer.phar global require "fxp/composer-asset-plugin:~1.1.1"

但执行命令

composer require yiisoft/yii2 2.0.5
yields:

Your version of PHP, 5.4.7, is affected by CVE-2013-6420 and cannot safely perform certificate validation, we strongly suggest you upgrade.
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.



 Problem 1
    - Installation request for yiisoft/yii2 2.0.7 -> satisfiable by yiisoft/yii2[2.0.7].

    - Conclusion: remove bower-asset/jquery.inputmask 3.1.63
    - Conclusion: don't install bower-asset/jquery.inputmask 3.1.63
    - yiisoft/yii2 2.0.7 requires bower-asset/jquery.inputmask ~3.2.2 -> satisfiable by bower-asset/jquery.inputmask[3.2.7, 3.2.6, 3.2.5, 3.2.4, 3.2.3, 3.2.2].
    - Can only install one of: bower-asset/jquery.inputmask[3.1.63, 3.2.7].
    - Can only install one of: bower-asset/jquery.inputmask[3.1.63, 3.2.6].
    - Can only install one of: bower-asset/jquery.inputmask[3.1.63, 3.2.5].
    - Can only install one of: bower-asset/jquery.inputmask[3.1.63, 3.2.4].
    - Can only install one of: bower-asset/jquery.inputmask[3.1.63, 3.2.3].
    - Can only install one of: bower-asset/jquery.inputmask[3.1.63, 3.2.2].
    - Installation request for bower-asset/jquery.inputmask (locked at 3.1.63) -> satisfiable by bower-asset/jquery.inputmask[3.1.63].



Installation failed, reverting ./composer.json to its original content.

任何帮助?

1 个答案:

答案 0 :(得分:0)

从Yii 2.0.6升级到Yii 2.0.7,请访问this link

添加了新要求:ICU数据版本> = 49.1。请确保您的环境已安装ICU数据并保持最新,以防止意外行为或崩溃。在较旧的系统上可能不是这种情况,例如正在运行Debian Wheezy。