jeffcott
V2EX  ›  问与答

homebrew 怎么安装 php5.6 和 7.1 之外的版本呢?

  •  
  •   jeffcott · Jun 12, 2018 · 2760 views
    This topic created in 2982 days ago, the information mentioned may be changed or developed.

    homebrew/php 弃用之后,用 homebrew 还能安装其他版本的 php 吗?

    5 replies    2018-06-12 10:02:59 +08:00
    U7Q5tLAex2FI0o0g
        1
    U7Q5tLAex2FI0o0g  
       Jun 12, 2018
    你不看官方说明的吗?
    brew install php 是 7.2
    其他就是 brew install [email protected] / [email protected] / [email protected]
    jeffcott
        2
    jeffcott  
    OP
       Jun 12, 2018
    @littleylv 那我要是想安装 php5.5 的话,就没办法了吗
    U7Q5tLAex2FI0o0g
        3
    U7Q5tLAex2FI0o0g  
       Jun 12, 2018
    @jeffcott #2
    brew search php 一下
    他们早抛弃 5.5 了,都 8102 年了
    jeffcott
        4
    jeffcott  
    OP
       Jun 12, 2018
    @littleylv 那只能重构一下项目了,现在手上的这份代码,5.6 都跑不成;
    rmb1222
        5
    rmb1222  
       Jun 12, 2018 via iPhone
    如果想跑旧版 php 的话可以试试 docker 镜像, 不过旧版 php 有几个漏洞, 楼主小心点
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4578 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 10:04 · PVG 18:04 · LAX 03:04 · JFK 06:04
    ♥ Do have faith in what you're doing.