D
D
driverx182021-04-23 13:38:57
xdebug
driverx18, 2021-04-23 13:38:57

Xdebug when loading Apache gives an error on Mac OS - what's the problem?

I installed php 7.4 (on versions before it, I used xdebug that came with the system), now I installed it via PECL, and when I start Apache, I get this error:

Failed loading /usr/local/lib/php/pecl/20190902/xdebug.so: dlopen(/usr/local/lib/php/pecl/20190902/xdebug.so, 9): no suitable image found. Did find:
/usr/local/lib/php/pecl/20190902/xdebug.so: code signature in (/usr/local/lib/php/pecl/20190902/xdebug.so) not valid for use in process using Library Validation : mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.

I climbed the whole stackoverflow - I did not find the answer. Maybe someone here knows how to overcome the error?
in php.ini is the following:
[xdebug]
zend_extension = "/usr/local/lib/php/pecl/20190902/xdebug.so"

This file 100% exists, even though it says no suitable image found

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question