【问题标题】:Unable to install Zend using composer无法使用 composer 安装 Zend
【发布时间】:2015-12-29 19:52:39
【问题描述】:

我使用 Zend 已有 2 年多了,并且已经设置了大约 10-12 次环境,但我从未成功使用 composer 安装 zend。错误说我应该有相同或高于所需版本的 PHP 版本,情况总是如此。我什至尝试更改作曲家中的版本以与我的 PHP 版本完全匹配,并且有时安装完全相同版本的 PHP 以匹配 zend 要求,但我总是得到相同的错误。

我该如何处理?

错误:

Your requirements could not be resolved to an installable set of packages.

zendframework/zendframework 2.3.9 requires php >=5.3.23 -> your PHP version (5.3.6) or "config.platform.php" value does not satisfy that requirement

PHP 5.3.6 (cli) (built: Mar 17 2011 10:48:37)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

【问题讨论】:

    标签: zend-framework installation composer-php


    【解决方案1】:

    您拥有的 PHP 5.3.6 早于 5.3.23,因为您的版本的最后一个数字 6 低于所需的最低值的最后一个数字 23您要安装的 Zend 框架的版本。

    更新您的 PHP。 PHP 5.3 不再维护。 PHP 5.3.6 存在严重的安全漏洞,这些漏洞已在后续版本中得到修复,但在您的版本中仍然存在。

    当前的 PHP 版本是 5.6。从 5.3 升级到较新版本可能会在更改和弃用功能方面遇到一些问题,但要面对事实:您将永远无法通过 Composer 使用任何最新的 PHP 库,因为它们都需要较新的 PHP 版本。

    【讨论】:

      猜你喜欢
      • 2013-09-02
      • 2016-03-08
      • 2018-01-06
      • 2018-04-17
      • 1970-01-01
      • 2017-10-26
      • 1970-01-01
      • 1970-01-01
      • 2015-04-03
      相关资源
      最近更新 更多