先升级 symfony 2.8 还是 php 5.4? [英] Upgrade symfony 2.8 or php 5.4 first?

查看:36
本文介绍了先升级 symfony 2.8 还是 php 5.4?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很快就会参与一个项目,之前我只是想问这个问题.该项目在 symfony 2.8 和 php 5.4 上.目标是将 symfony 升级到 3.4(以后可能是 4.x),将 php 升级到 7.x(可能是 7.2).所以这是我的问题:有没有更好的顺序来做到这一点?首先是 PHP 5.4 到 7.2 还是 symfony 2.8 到 3.4(或者没关系)?感谢您的建议.

I'll be working soon on a project and I just wanted to ask this before. The project is on symfony 2.8 with php 5.4. The goal is to upgrade symfony to 3.4 (maybe 4.x later) and php to 7.x (probably 7.2). So here is my question : is there a better order to do this? Php 5.4 to 7.2 first or symfony 2.8 to 3.4 (or it doesn't matter)? Thanks for your advices.

推荐答案

首先——你将无法在 PHP5.4 上运行 Symfony 3.4 项目.

First of all – you won't be able to run Symfony 3.4 project on PHP5.4.

截至 2018 年 11 月 26 日

最新的Symfony ^3.4 版本是v3.4.19,它需要php: ^5.5.9|>=7.0.8.

The latest Symfony ^3.4 version is v3.4.19 which requires php: ^5.5.9|>=7.0.8.

另一方面,最新的 Symfony ^2.8 版本是 v2.8.48,它需要 php: >=5.3.9.

On the other hand latest Symfony ^2.8 version is v2.8.48 which requires php: >=5.3.9.

结论

您将无法在 PHP 5.4 上运行 Symfony 3.4 项目,但理论上您将能够使用 PHP 7.2 运行 Symfony 2.8 项目.

You won't be able to run Symfony 3.4 project on PHP 5.4, but in theory you will be able to run Symfony 2.8 project with PHP 7.2.

您还应该考虑查看:http://php.net/manual/en/migration70.incompatible.php

这篇关于先升级 symfony 2.8 还是 php 5.4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆