zend_extension为zend engine扩展

zend engine是php脚本解释引擎,zend engine 2(ZE2)与php 5同时发布,php 5开始使用ZE2作为脚本解释引擎;php 6目前还处于开发阶段,但已经引入zend engine 3(ZE3)。

所以,php有2种扩展,一个基于zend engine引擎的,一个是php自身的。才会出现有些扩展使用extension,有些使用zend_extension来引用。


  • zend_extension
    (non ZTS, non debug build)
  • zend_extension_ts
    ( ZTS, non debug build)
  • zend_extension_debug
    (non ZTS, debug build)
  • zend_extension_debug_ts
    ( ZTS, debug build)

ZTS全称为:ZEND Thread Safety(线程安全)

查看你的php是否为线程安全,可以检查phpinfo()中的Thread Safety的值,enable为线程安全,disable为非线程安全。

One thought on “extension,zend_extension和zend_extension_ts

  1. Pingback: PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0 | zzphp.net

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>