PHP Warning: Xdebug MUST be loaded as a Zend extension
2018-02-09 11:37
671 查看
最近在编译扩展Xdebug 时出现了这样的警告⚠️ ,作为强迫症实在是难以忍受,决定把这个警告消除掉。
相关问答:https://stackoverflow.com/questions/26221690/php-warning-xdebug-must-be-loaded-as-a-zend-extension
主要是编译路径要写全路径,名称为zend_extension
PHP版本 :php -v
PHP 7.0.26 (cli) (built: Dec 2 2017 13:11:21) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans
Xdebug版本: v2.5.5 在上面已经有显示了
资源下载地址是:https://pecl.php.net/package/xdebug
然后他提示你 添加扩展到php.ini里,并且显示了该扩展在哪个文件夹里
//查看 php.ini 位置
php –ini
在 php.ini文件的对应位置添加下面这一行
然后php -m 查看扩展情况
相关问答:https://stackoverflow.com/questions/26221690/php-warning-xdebug-must-be-loaded-as-a-zend-extension
主要是编译路径要写全路径,名称为zend_extension
1、环境介绍
操作系统:mac airPHP版本 :php -v
PHP 7.0.26 (cli) (built: Dec 2 2017 13:11:21) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans
Xdebug版本: v2.5.5 在上面已经有显示了
2、编译过程
编译扩展参考教程是 http://blog.csdn.net/abel004/article/details/53957431资源下载地址是:https://pecl.php.net/package/xdebug
tar -zxvf xdebug****.tgz cd xdebug*** phpize ./configure make && make install
然后他提示你 添加扩展到php.ini里,并且显示了该扩展在哪个文件夹里
//查看 php.ini 位置
php –ini
在 php.ini文件的对应位置添加下面这一行
zend_extension="/****/xdebug.so"
然后php -m 查看扩展情况
相关文章推荐
- PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0 解决办法
- 解决linux 下php中xdebug的报错 :Xdebug MUST be loaded as a Zend extension in Unknown on line 0
- 解决: Xdebug MUST be loaded as a Zend extension in Unknown on line 0
- PHP Warning: Xdebug MUST be loaded as a Zend extension
- Magento安装出现<PHP Extension "curl" must be loaded>解决方法
- PHP Extension “pdo_mysql” must be loaded
- magento安装 “PHP Extension "curl" must be loaded”
- magento安装出现 PHP extension "soap" must be loaded.错误
- Magento安装错误:PHP extension ‘mcrypt’ ‘curl’ must be loaded.
- Magento PHP Extension "curl" must be loaded解决方法
- magento安装 “PHP Extension "curl" must be loaded”
- magento安装 “PHP Extension "curl" must be loaded”
- Magento PHP Extension "curl" must be loaded解决方法
- magento学习1:PHP extension "curl" must be loaded.
- 安装 magento PHP extension "curl" must be loaded.
- The PHP cURL extension must be installed to use Guzzle 错误: ubuntu 安装 php-curl 拓展
- 安装magento配置完数据库后出现: PHP Extensions "0" must be loaded. 解决方案
- mail from address must be same as authorization user
- "参数或变量中有语法错误. 服务器响应为: mail from address must be same as authorization user"
- The AnimationClip 'Walk' used by the Animation component 'Pig' must be marked as Legacy.