What's the Difference Between Extension and zend_extension in php.ini?

前端 未结 2 1736
南方客
南方客 2020-12-24 05:43

When I installed Xdebug through pecl, it added the following line to my php.ini file.

extension=\"xdebug.so\"

and everything I

2条回答
  •  渐次进展
    2020-12-24 06:06

    Zend_extentions are extensions that are built into the Zend engine itself. The engine parses, interprets and executes PHP script. Changing the engine changes the way that PHP works.

    The included diagram will describe the main difference between an extension and a zend_extension.

    Both types of extensions share lots of functionality. The difference between both types is mainly with the hooks that they register into the Engine. Despite it being very uncommon, an extension can be both a PHP extension and a Zend extension. Xdebug is a good example.

    Find below image for main schema Comparison of extensions and zend_extensions

    For more details refer to this link

提交回复
热议问题