PHP版本中的VC6,VC9,VC11,TS,NTS區別

來源:互聯網
上載者:User

標籤:ast   stc   進程   效能   線程   需要   ted   mod   detail   

原文
 http://www.cnblogs.com/codersay/p/4301783.html
主題 PHP

以windows為例,看看下載到得php zip的檔案名稱

php-5.4.4-nts-Win32-VC9-x86.zip

VC6:legacy Visual Studio 6 compiler,是使用這個編譯器編譯的。

VC9:Visual Studio 2008 compiler,就是這個編譯器編譯的。

 

VC9和VC11是PHP的最新版本(這兩個版本分別通過Visual Studio 2008和Visual Studio 2012編譯),其中包含了對於效能和穩定性的改進。

VC9版本要求使用者安裝Microsoft Visual C++ 2008 SP1 Redistributable Package(x86 | x64)

VC11版本要求使用者安裝Visual C++ Redistributable for Visual Studio 2012(x86 | x64)

 

這個其實沒有什麼太大的影響,因為從php 5.3,已經沒有vc6版本提供下載了

TS:Thread Safe 安全執行緒, 執行時會進行線程(Thread)安全檢查

NTS:Non Thread Safe 非安全執行緒, 在執行時不進行線程(Thread)安全檢查

我使用Apache+PHP的模式下,一般是把PHP作為一個Module load到apache中,那麼以apache父進程-多子進程的工作模式,是需要進行安全執行緒檢查的,所以如果是以這種方式執行php,選擇ts版本

那麼如果是使用fastcgi,比如說用php-fpm管理php執行,則不需要進行安全執行緒檢查,則選擇nts版本的php

PHP版本中的VC6,VC9,VC11,TS,NTS區別

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.