基于 PHP 4.4.9 的应用程序能否在 PHP 5.2.0 上完美运行?
我需要将 PHP 版本升级到至少 5.2.0,以便安装新的 magento OS Commerce,但这会扰乱我当前在 4.4.9 (PHPCart) 上运行的商店吗?
真正的问题是,我可以在不损坏旧车的情况下升级吗?
I need to change upgrade the PHP version to at least 5.2.0 for my new magento OS Commerce installation, but would it mess up my current store which runs on 4.4.9 (PHPCart)?
The real question is, can I upgrade without harming the old cart?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
一切都取决于您运行的脚本,但在正常情况下,如果您采用迁移指南<,一切都应该没问题/a> 考虑在内。另外值得一提的是,php 安装的配置可能会导致最多的问题,因为许多 php4 应用程序倾向于使用在 php5 中被认为是不好的做法或已弃用的东西(register_globals、魔术引号...)。
由于 Magento 是一个如此出色且高质量的产品,您在 php5.2 服务器上使用它应该不会有任何问题,但无论如何我都会小心。
我的建议是保持 PHPCart 系统的托管不变,并使用 php5.2 设置一个单独的(本地)开发/临时服务器来开始实施 Magento。一旦实施完成,您就可以忘记 phpcart 并转移到 magento,而无需将现有应用程序升级或迁移到新的 php 版本。
All depends on the scripts you run but under normal circumstances everything should be fine if you take the migration guide into account. Also worth mentioning is that the configuration of the php installation might cause the most problems since a lot of php4 applications tend to make use of things that are either considered bad practice or deprecated in php5 (register_globals, magic quotes, ...).
Since Magento is such a wonderful and high quality product you shouldn't have any problems using that on a php5.2 server but I'd be careful anyway.
My advise would be to leave the hosting for the PHPCart system intact and set up a separate (local) dev/staging server with php5.2 to start implementing Magento. Once the implementation is complete you can forget about phpcart and move to magento without the hassle of upgrading or migrating existing applications to a new php version.
有某些向后不兼容的更改,但大多数软件已经修复了它们可能存在的问题已经发生了变化。但唯一真正的判断方法是在升级后的 PHP 上试用该软件,或者可能检查软件主页上的注释(或直接联系他们)。
There are certain backward incompatible changes, but most software have already fixed issues they might have had with the changes. But the only real way to tell is to try the software on the upgraded PHP, or possibly check the home page of software for notes (or contact them directly).
https://www.php.net/manual/en/migration5.php
https://www.php.net/manual/en/migration5.php