duanfang7270
2018-04-07 22:33
浏览 365

在osx上使用php 7.2配置xdebug 2.6

I'm trying to install xdebug but after a lot of effort still can't, I've tried this https://medium.com/@roberto.b/how-to-install-xdebug-with-my-php-7-on-my-macosx-f85dbac91e59 and a lot of stackoverflow question and still nothing,

I'm doing something wrong but can't figure out whats, any help on this please... This is what i get on my error.log

[Sat Apr 07 19:21:35.785293 2018] [so:warn] [pid 28523] AH01574: module php7_module is already loaded, skipping
Failed loading /usr/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so:  dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so, 9): Symbol not found: _zend_pass_function
  Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so
  Expected in: flat namespace
 in /usr/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so
Failed loading /usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/opcache.so:  dlopen(/usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/opcache.so, 9): Symbol not found: _zend_empty_string
  Referenced from: /usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/opcache.so
  Expected in: flat namespace
 in /usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/opcache.so
[Sat Apr 07 19:21:35.904894 2018] [mpm_prefork:notice] [pid 28523] AH00163: Apache/2.4.28 (Unix) PHP/7.0.2 configured -- resuming normal operations
[Sat Apr 07 19:21:35.905015 2018] [core:notice] [pid 28523] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

hope you can help guys! Regards!

图片转代码服务由CSDN问答提供 功能建议

我正在尝试安装xdebug但是经过很多努力仍然不能,我试过这个< a href =“https://medium.com/@roberto.b/how-to-install-xdebug-with-my-php-7-on-my-macosx-f85dbac91e59"rel =”nofollow noreferrer“> https: //medium.com/@roberto.b/how-to-install-xdebug-with-my-php-7-on-my-macosx-f85dbac91e59 和很多stackoverflow问题仍然没有,

我做错了什么但无法弄清楚什么,请给我任何帮助...... 这就是我在错误上得到的结果。 \ n

  [Sat Apr 07 19:21:35.785293 2018] [so:warn] [pid 28523] AH01574:模块php7_module已经加载,跳过
Failed loading / usr / lib / php / extensions / no-  debug-non-zts-20160303 / xdebug.so:dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so,9):找不到符号:_zend_pass_function 
引自:  /usr/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so
预期在:/ namespace / lib / php / extensions /中的平面命名空间
  no-debug-non-zts-20160303 / xdebug.so 
加载/usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/opcache.so:dlopen(/ usr / local /  php5 / lib / php / extensions / no-debug-non-zts-20170718 / opcache.so,9):找不到符号:_zend_empty_string 
引自:/ usr / local / php5 / lib / php / extensions / no-  debug-non-zts-20170718 / opcache.so 
预期:平面命名空间
在/usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/opcache.so
 [  7月7日星期六19:21:35.904894 2018] [mpm_prefork:notice] [pid 28523] AH00163:配置Apache / 2.4.28(Unix)PHP / 7.0.2  - 恢复正常操作
 [星期六07:19 19:21:  35.905015 2018] [核心:通知] [pid 28523] AH00094:命令行:'/ usr / sbin / httpd -D FOREGROUND'
   
 
 

希望你能帮助伙计们 ! Regards!

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • douchun2158 2018-04-08 13:13
    已采纳

    I managed to have it working with instructions from the official Xdebug site.

    It provides tailored installation instructions based on your current php setup, retrieved from phpinfo() or from php -i : https://xdebug.org/wizard.php

    The instructions you will get are almost the same as the one described in the article you mentioned, but the versions are different. FYI, my setup is PHP 7.2, Xdebug 2.6.0 on Mac OS X.

    Good luck.

    已采纳该答案
    打赏 评论
  • doubi4814 2018-04-09 15:52

    FYI, if you have this error, you have to check your cli php version versus your browser or apache php version, that's where i have problems and after that it's easy to fix so regards for helping me.

    打赏 评论