Open marcos1954 opened 5 years ago
As a workaround; theoretically you don't need to use our xdebug.so for this to work, you could use an official one or one from homebrew.
Is this a newly downloaded xdebug binary or could this be corrupted/effected by the update?
Also have this issue, compiled my own xdebug.so (2.6) for php 7.1
I just faced the same problem yesterday. I downloaded new xdebug and tried to configure it, I reinstall xcode command line tools, I placed xdebug.so in different locations etc...
The solution was so simple, I just use xdebug provided with my system in "/usr/lib/php/extensions/no-debug-non-zts-20160303".
Now it's working like before updating to Mojave.
config php.ini (mojave uses php7.1) for xdebug
[xdebug] ; xdebug config for Linux and Mac OS X zend_extension="/Users/markpage/Developer/xdebug.so" xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000 xdebug.idekey=
restart apache and xdebug does not appear in phpinfo
typing "php -m" gives
Failed loading /Users/markpage/Developer/xdebug.so: dlopen(/Users/markpage/Developer/xdebug.so, 0x0009): code signature in (/Users/markpage/Developer/xdebug.so) not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
using the mojave supplied xdebug.so has no problem. I think the xdebug.so at active state needs to be rebuilt on mojave.