简体   繁体   English

如何将 PHP 5.6 降级到 PHP 5.3?

[英]How to downgrade PHP 5.6 to PHP 5.3?

Do you know how to downgrade php from 5.6 to 5.3 ?你知道如何将 php 从 5.6 降级到 5.3吗?

I created a website with PHP 5.6 but when my client uploaded on their server some functions on my website are not compatible and they say that the problem is because their PHP version is 5.3 and I don't know about it, so they want me to downgrade my PHP version.我用 PHP 5.6 创建了一个网站,但是当我的客户端上传到他们的服务器时,我网站上的某些功能不兼容,他们说问题是因为他们的 PHP 版本是 5.3 而我不知道,所以他们希望我降级我的 PHP 版本。 Can you help me?你能帮助我吗?

Or any solution to my problem?或者我的问题有什么解决方案? So, my website can be compatible on their server.所以,我的网站可以在他们的服务器上兼容。

You're most likely talking not about downgrading of the PHP executables, but about downgrading language level from 5.6 to 5.3您很可能不是在谈论 PHP 可执行文件的降级,而是在谈论将语言级别从 5.6 降级到 5.3

There is no automatic way to do it, but you can study syntax changes between versions (information can be found into official manual ) and update your code accordingly.没有自动的方法来做到这一点,但您可以研究版本之间的语法变化(信息可以在官方手册中找到)并相应地更新您的代码。

Also it may be good idea to remind customer that PHP 5.3 is not supported anymore so it may be good idea to upgrade PHP version instead of downgrading site.此外,提醒客户不再支持PHP 5.3 可能是个好主意,因此升级 PHP 版本而不是降级站点可能是个好主意。 5.3 -> 5.6 upgrade is relatively plainless. 5.3 -> 5.6 升级比较平淡。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM