duanfang7270 2018-04-07 22:33
浏览 380
已采纳

在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!

  • 写回答

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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思