I'm trying to get XDebug to work with PHP 5.2.11 installed with MacPorts on OSX Snow Leopard. I installed Pear with go-pear, then used PECL to install XDebug. I copied xdebug.so that it compiled to the extension_dir, /opt/local/lib/php/extensions/no-debug-non-zts-20060613/. I have an xdebug.ini file which (according to phpinfo) is loading correctly. xdebug.ini calls:
zend_extension="/opt/local/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"
It seems to show a stack trace on errors, but if I try to add any xdebug settings, like xdebug.collect_params, it doesn't even do that. And my PHP error log shows:
PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20060613//opt/local/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so'
Note that it has extension_dir twice there. It appears correctly in phpinfo. I've tried using 'extension' instead of 'zend_extension' and 'xdebug.so' instead of the full path, but it does the same thing.
Does anyone know why the path is being doubled in the module lookup, or what else might be wrong here? Thank you!