Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.14k stars 299 forks source link

xdebug.so from active state no longer loads on macos mojave #3612

Open marcos1954 opened 5 years ago

marcos1954 commented 5 years ago

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.

Naatan commented 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.

th3coop commented 5 years ago

Is this a newly downloaded xdebug binary or could this be corrupted/effected by the update?

Thomasvc1 commented 5 years ago

Also have this issue, compiled my own xdebug.so (2.6) for php 7.1

gunner121 commented 5 years ago

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.