doushi6947 2016-04-22 12:55
浏览 665
已采纳

Composer需要ext-redis

I'm trying to set phpredis extension as a requirement for my application. Here is my composer.json:

"ext-redis": ">=2.2.7"

A've also tried these options: "^2.2.7", 2.2.7@dev

But all the time I'm getting the error below:

  Problem 1
    - The requested PHP extension ext-redis >=2.2.7 has the wrong version (2.2.8-devphp7) installed. Install or enable PHP's redis extension.

hy my requirement of >=2.2.7 doesn't stack with an actual version 2.2.8-devphp7 which seems to fit into this version constraint?

  • 写回答

1条回答

  • douju6542 2016-05-04 18:22
    关注

    The version 2.2.8-devphp7 is simply not supported and resolves to 0:

    We simply cannot parse it. This means that the installed version ends up being unrecognized, and thus it defaults to 0

    and will never be supported:

    You have to treat that version as a 0 and allow it by the discouraged * constraint.


    Update: It is now supported since composer-1.1.1

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集
  • ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)
  • ¥15 电力市场出清matlab yalmip kkt 双层优化问题
  • ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)