php.ini中的Extension和zend_extension有什么区别? [英] What's the Difference Between Extension and zend_extension in php.ini?

查看:597
本文介绍了php.ini中的Extension和zend_extension有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我通过pecl安装Xdebug时,它在我的php.ini文件中添加了以下行.

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

extension="xdebug.so"

,我使用的所有方法都有效.直到今天.

and everything I used worked. Until today.

今天,我在设置Xdebug进行交互式调试时遇到了麻烦.在将以上内容更改为

Today I was having trouble setting up Xdebug for interactive debugging. I couldn't get anything working until I changed the above to

zend_extension="/usr/local/lib/php/extensions/xdebug.so"

(注意:我认为这就是让我工作的原因,但我不是100%确信)

(Caveat: I think this is what got me working, but I'm not 100% sure)

这使我想到了一个问题.通过extension=zend_extension加载扩展名有什么区别?

This raised the question in my mind. What's the difference in loading an extension via extension= vs. zend_extension?

推荐答案

PHP语言的核心(更像解释器,因为语言只是一种规范)是称为"Zend"的软件(解释器,字节码编译器)引擎"由Zend开发.

At the core of the PHP language (more like the interpreter, because a language is just a specification) is a software (interpreter, bytecode compiler) called "Zend Engine" developed by Zend.

每个与此内核相关的模块都应作为"zend_extension"安装.

Every module which messes with this core should be installed as a "zend_extension".

但是,要解决您的问题,请忽略此解释说明,并咨询您正在配置的扩展程序的文档-

And yet, to solve your problem, ignore this attempt at explanation and consult the docs of the extension you're configuring - http://www.xdebug.org/docs/install.

这篇关于php.ini中的Extension和zend_extension有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆