PHP各版本区别大全,包括版本号含义版本区别安装配置方法等

[php] 2024-04-19 圈点986

摘要:PHP各版本区别大全,包括版本号含义版本区别安装配置方法等。php版本号含义,各版本区别,安装配置方法PHP版本号含义,比如PHP5.3.4,设x.y.z。x版本号变化是结构改变,y版本号变动是功能增加,z版本号变动都是修正漏洞,各版本的粗略区别

PHP版本号含义

比如PHP5.3.4,设x.y.z

x版本号变化是结构改变,

y版本号变动是功能增加,

z版本号变动都是修正漏洞,


各版本的粗略区别:

5.0,zend2引擎,对象模型变化

5.1, 增加PDO数据库操作类,

5.2 内置JSON,开启滤镜

5.3 增加名字空间、延迟动态绑定、goto无条件跳转、改进win下效率,支持sqlite3等等

5.4 增加trait特征组语法,增加内置网站服务器。废除不少旧环境参数


安装环境注意

新版本的PHP5.3通过以往老方法已经不能在IIS上安装了(因为现在php 5.3已经不支持ISAPI了,而是用FastCGI了),



php配置的几种方法简介

1、CGI方式加载PHP环境,通常就是IIS里面配置解释器为php.exe,早期比较常见,目前使用较少。 

特点是:稳定,但效率太低。

2、ISAPI方式加载PHP环境,通常就是IIS里面配置解释器为php5isapi.dll,目前使用最多,应用最广。 

特点是:多线程,效率较高,但不够稳定。

3、FastCGI方式加载PHP环境,在IIS环境里并不常见,但其它系统环境应用还是有的,不过IIS7.0开始内置FastCGI了。 

特点是:高效率,高稳定性,属于将来发展趋势。


备注:

我试过其他的特别麻烦,PHP 5.3发布的Windows版已经不支持ISAPI模式了,所以我一般按微软推荐的FastCGI方式运行PHP。


windows php官方下载地址

http://windows.php.net/download/


几个需要区别的概念

VC6是什么? 

VC6就是legacy Visual Studio 6 compiler,就是使用这个编译器编译的。 

VC9是什么? 

VC9就是the Visual Studio 2008 compiler,就是用微软的VS编辑器编译的。

那我们如何选择下载哪个版本的PHP呢? 

如果你是在windows下使用Apache+PHP的,请选择VC6版本; 

如果你是在windows下使用IIS+PHP的,请选择VC9版本;

那Non Thread Safe是什么? 

Non Thread Safe就是非线程安全; 

Thread Safe 是什么? 

Non Thread Safe 是线程安全; 


IIS

If you are using PHP with IIS you should use the Non-Thread Safe (NTS) versions of PHP.


Apache

Please use the Apache builds provided by Apache Lounge. They also provide VC11 builds of Apache for x86 and x64. We use their binaries to build the Apache SAPIs.


If you are using PHP with Apache 1 or Apache2 from apache.org (not recommended) you need to use the older VC6 versions of PHP compiled with the legacy Visual Studio 6 compiler. Do NOT use VC9+ versions of PHP with the apache.org binaries.


VC9 and VC11

More recent versions of PHP are built with VC9 or VC11 (Visual Studio 2008 and 2012 compiler respectively) and include improvements in performance and stability.


The VC9 builds require you to have the Visual C++ Redistributable for Visual Studio 2008 SP1 x86 or x64 installed.


The VC11 builds require to have the Visual C++ Redistributable for Visual Studio 2012 x86 or x64 installed.




php  版本  安装  

感谢反馈,已提交成功,审核后即会显示