PHP 版本升级 5.3.25 到 5.6 [英] PHP version upgrade 5.3.25 to 5.6

查看:28
本文介绍了PHP 版本升级 5.3.25 到 5.6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要将 PHP 版本 (5.3.25) 升级到当前的稳定版本 5.6.17.因此,为此我们需要找到最好的方法.

We have a requirement for upgrading the PHP version (5.3.25) to current stable version which is 5.6.17. So, for this we need to find which approach would be best.

  1. 循序渐进的方法,其中我们可以从 5.3.X 升级到 5.4.X、5.4.X 到 5.5.X 等等.
  2. 直接升级,这里我们直接从5.3.X升级到5.6.X.

除了升级之外,我们在做这件事时应该记住的所有事情.

Apart from the upgrade, what all things we should keep in mind while doing this.

如果你们有任何我们可以参考的文件就好了.

It would be good, if any of you have any documents which we can refer to.

推荐答案

PHP 维护者上传每个版本的不兼容更改列表.以下是您可能想要阅读的文档:

PHP maintainers upload list of incompatible changes of every release. Here are the documents you may want to read:

如果你有回归测试,你就是幸运的人;如果你不这样做,我强烈建议在主服务器上的真实环境更新之前测试虚拟环境中的每一个变化.如果你足够勇敢,你可以尝试设置 vagrant - 这将允许开发人员轻松共享他们的环境并重现升级到 5.6 后的服务器状态.

If you have regression tests, you're the lucky man; if you don't, i strongly recommend test every change in virtual environment before real environment update on main server. If you're brave enough, you can try to setup vagrant - this will allow developers to easily share their environment and to reproduce server state as it should be after upgrade to 5.6.

我也不推荐部分升级,我认为最好在第一个(也是唯一的)迁移步骤中针对 5.6.

I also wouldn't recommend partial upgrades, i think it's better to target for 5.6 at the first (and only) migration step.

这篇关于PHP 版本升级 5.3.25 到 5.6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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