System Information
- macOS 13.2.1 (22D68) (Intel Processor)
- PHP versions installed via homebrew
- Xdebug installed via pecl
- Xdebug Version 3.2.0 (should be supported -> see https://xdebug.org/docs/compat)
Error Description
I am trying to get Xdebug running on PHP 8.1.
While it works fine for PHP 8.2
PHP 8.2.4 (cli) (built: Mar 16 2023 16:46:52) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.4, Copyright (c) Zend Technologies
with Xdebug v3.2.0, Copyright (c) 2002-2022, by Derick Rethans
with Zend OPcache v8.2.4, Copyright (c), by Zend Technologies
I get the following error message when using it with php8.1
Failed loading /usr/local/lib/php/pecl/20220829/xdebug.so: dlopen(/usr/local/lib/php/pecl/20220829/xdebug.so, 0x0009): symbol not found in flat namespace '_zend_get_parameters_array_ex'
PHP 8.1.17 (cli) (built: Mar 16 2023 13:19:00) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.17, Copyright (c) Zend Technologies
with Zend OPcache v8.1.17, Copyright (c), by Zend Technologies
The following line has been added to the php.ini
.
zend_extension="/usr/local/lib/php/pecl/20220829/xdebug.so"
What I have tried/done
- Reinstalling Xdebug (pecl uninstall and then install)
- using
extension=xdebug.so
(Unable to load dynamic library - which works on 8.2) - brew update / upgrade
Does someone have any idea what else I could try?