Home  >  Article  >  Backend Development  >  PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0 解决方法

PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0 解决方法

WBOY
WBOYOriginal
2016-06-13 13:11:261961browse

PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0 解决办法

;extension=php_xdebug.dll

zend_extension_ts= "X:\php\ext\php_xdebug.dll"

?

另:根据 PHP 版本,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

?

可通过phpinfo()查看ZTS是否启用,从而决定用zend_extension还是zend_extension_ts。

?

extension意为基于php引擎的扩展

?

zend_extension意为基于zend引擎的扩展

?

注:php是基于zend引擎的

?

不同的扩展安装后,在php.ini里是用extension还是zend_extension,是取决于该扩展,

有的扩展可能只能用zend_extension,如xdebug,

也有的扩展可以用extension或zend_extension,如mmcache。?

?

注:上面的结论不保证准确。

?

zend_extension加载php扩展时需用全路径,而extension加载时可以用相对extension_dir的路径。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn