PHP 5.3向后兼容PHP 5.2吗? [英] Is PHP 5.3 backwards-compatible with PHP 5.2?

查看:117
本文介绍了PHP 5.3向后兼容PHP 5.2吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始学习PHP.我想使用PHP 5.3,因为它是到目前为止的最新版本.我正在一个项目中,我将使用有人给我的PHP 5.2脚本.

I'm starting to learn PHP. I would like to use PHP 5.3 because it's the newest version so far. I'm working on a project in which I'll use PHP 5.2 scripts that someone gave me.

即使我使用的是PHP 5.3,它们也可以正常运行吗?

Are they going to run just fine even though I'm using PHP 5.3?

推荐答案

PHP.net具有指南从PHP 5.2.x升级到PHP 5.3.其中包括有关向后兼容性的部分.

PHP.net features a guide for upgrading from PHP 5.2.x to PHP 5.3. This includes a section on backwards compatibility.

根据我的经验,从5.2到5.3的过渡非常顺利.我的应用程序唯一的问题是,确保我的DateTime设置是在php.ini中配置的属性,并过滤掉一些开始出现的过于激进的弃用警告.

From my experience, the transition from 5.2 to 5.3 went pretty smoothly smoothly. The only problems I had with my app was to ensure my DateTime setting were property configured in my php.ini, and filter out some overly-agressive deprecation warnings that started showing up.

这篇关于PHP 5.3向后兼容PHP 5.2吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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