Heim  >  Artikel  >  Backend-Entwicklung  >  PHP学习笔记-1-PHP版本有关问题

PHP学习笔记-1-PHP版本有关问题

WBOY
WBOYOriginal
2016-06-13 10:47:37768Durchsuche

PHP学习笔记-1-PHP版本问题
一、从PHP5.2.10版本开始,有None-Thread Safe与Thread Safe两种版本的可供选择
1、None-Thread Safe就是非线程安全,在执行时不进行线程(thread)安全检查;
2、Thread Safe就是线程安全,执行时会进行线程(thread)安全检查,以防止有新要求就启动     新线程的 CGI 执行方式耗尽系统资源。

二、PHP的两种执行方式:ISAPI和FastCGI。
1.FastCGI执行方式是以单一线程来执行操作,所以不需要进行线程的安全检查,除去线程安全检查的防护反而可以提高执行效率,
所以,如果是以 FastCGI(无论搭配 IIS 6 或 IIS 7)执行 PHP ,
都建议下载、执行 non-thread safe 的 PHP (PHP 的二進位檔有兩種包裝方式:msi 、zip ,請下載 zip 套件)。

2.而线程安全检查正是为ISAPI方式的PHP准备的,因为有许多php模块都不是线程安全的,所以需要使用Thread Safe的PHP。

3. VC9版        是专门为IIS定制的脚本支持最新的微软组件从而提高效率 

4. VC6版        是为了其他WEB服务软件提供的脚本,如  Apache

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn