首页 > 后端开发 > php教程 > 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
发布: 2016-08-08 09:32:20
原创
1222 人浏览过

andy@AndyMacBookPro:~$ php -v
PHP Warning:  Xdebug MUST be loaded as a Zend extension in Unknown on line 0
PHP 5.4.30 (cli) (built: Jul 29 2014 23:43:29)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

编辑php.ini

sudo vim /private/php.ini

将:

extension=/usr/local/Cellar/php54-xdebug/2.2.5/xdebug.so

修改为:

zend_extension=/usr/local/Cellar/php54-xdebug/2.2.5/xdebug.so

然后我们再看下,就好了:

andy@AndyMacBookPro:/private/etc$ php -v
PHP 5.4.30 (cli) (built: Jul 29 2014 23:43:29)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
    with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans
andy@AndyMacBookPro:/private/etc$

关于更多:http://blog.163.com/lgh_2002/blog/static/440175262010910103342213/

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

以上就介绍了PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板