更改PHP版本后无法使用的软件

发布于 2025-01-20 20:33:01 字数 238 浏览 1 评论 0原文

我的服务器上有一个商业会员网站php程序,但服务器升级后它不再工作。该提供商已停止运营,因此没有支持。我正在使用 php 7.0.15,但服务器希望我升级到更新的版本 7.4。这会破坏程序/我得到的只是一个空白屏幕) 我的PHP水平不允许我调试这么复杂的程序。我的问题是: 有什么方法可以指示 php 只使用旧版本吗?我想这必须在服务器上的 php.ini 文件中完成? 我想在服务器上升级到 php 7.4,但让这个软件在 php 7.0 中运行。 这可能吗?

I have a commercial membership site php program on the server, but after the server upgrade it no longer works. The provider has ceased to operate so there is no support. I am using php 7.0.15, but the server wants me to upgrade to a more recent version, 7.4. This breaks the program /all I get is a blank screen)
My level of PHP does not allow me to debug such a complicated program. My question is:
is there any way of instructing php to only use the older version? I imagine that this would have to be done in the php.ini file on the server?
I would like to upgrade to php 7.4 on the server, but have this software run in php 7.0.
Is this possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一萌ing 2025-01-27 20:33:01

简单的答案是否定的 - PHP 不提供任何选项来模拟以前版本的行为。

部分原因是某些功能有时会被删除,因为它们阻止了引擎的更改,或者需要大量工作来操作它们;部分原因是可用于 PHP 核心的资源有限,并且维护每个功能的多个版本以实现这种兼容性将花费精力改进当前版本。

您的短期选择是找到一种方法在服务器上运行 PHP 7.0 的实际副本,或者允许您运行它的不同服务器。您可能需要向为旧版本提供非官方长期支持的人员付费,因为最后一个官方安全补丁该版本是 3 年前的。即使是 PHP 7.4 直到今年年底才会收到官方安全补丁

从长远来看,您唯一的选择是雇用某人来更新应用程序以在现代版本的 PHP 上运行,或者迁移到仍然有供应商支持的其他应用程序。

The simple answer is No - PHP does not offer any options to emulate the behaviour of previous versions.

Partly because features are sometimes removed because they prevented changes in the engine, or would need a lot of work to operate with them; partly just because there is only a limited amount of resources available to work on the core of PHP, and maintaining multiple versions of each feature to enable such compatibility would take effort away from improving the current version.

Your short-term option is to find a way to run an actual copy of PHP 7.0 on the server, or a different server that will allow you to run it. You may need to pay someone who provides unofficial long-term support for old versions, since the last official security patch for that version was over 3 years ago. Even PHP 7.4 will only receive official security patches until the end of this year.

In the long term, your only options are to hire someone to update the application to run on a modern version of PHP, or to migrate to a different application which still has a vendor supporting it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文