kabel / homebrew-pecl

🐘🌐 PHP extension formulae from the pecl.php.net repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

php-xdebug for php 8.0

glensc opened this issue · comments

seems something is broken with the migration, for example xdebug is not loading:

$ brew reinstall php-xdebug php
==> Downloading https://dl.bintray.com/kabel/bottles-pecl/php-xdebug-3.0.0.catalina.bottle.tar.gz
Already downloaded: /Users/glen/Library/Caches/Homebrew/downloads/a33c74dbe6b99d366ce4d49c570e6c42e19bb0ea6be66cc8053f12d70620bcdf--php-xdebug-3.0.0.catalina.bottle.tar.gz
==> Reinstalling kabel/pecl/php-xdebug
==> Pouring php-xdebug-3.0.0.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/php-xdebug/3.0.0: 5 files, 305.5KB

==> Downloading https://homebrew.bintray.com/bottles/php-8.0.0_1.catalina.bottle.tar.gz
Already downloaded: /Users/glen/Library/Caches/Homebrew/downloads/c47ebcfaae9cf697d0f2a5629d7fb14f75039df8e6fe34ba8d2dfac4c60d14a3--php-8.0.0_1.catalina.bottle.tar.gz
==> Reinstalling php
==> Pouring php-8.0.0_1.catalina.bottle.tar.gz
[snip]

$ php -m|grep xdebug
Failed loading /usr/local/opt/php-xdebug/lib/php/20200930/xdebug.so:  dlopen(/usr/local/opt/php-xdebug/lib/php/20200930/xdebug.so, 9): image not found

$ brew ls php-xdebug
/usr/local/Cellar/php-xdebug/3.0.0/include/php/ (2 files)
/usr/local/Cellar/php-xdebug/3.0.0/lib/php/20190902/xdebug.so

$ ls -ld /usr/local/opt/php-xdebug
lrwxr-xr-x 1 glen admin 26 dets   8 16:14 /usr/local/opt/php-xdebug -> ../Cellar/php-xdebug/3.0.0/

$ ls -lh /usr/local/opt/php-xdebug/lib/php/*/xdebug.so
-r--r--r-- 1 glen staff 289K nov   25 13:52 /usr/local/opt/php-xdebug/lib/php/20190902/xdebug.so

Seems to me that php-xdebug is built for php74?

for now, re-install from source helped

$ brew reinstall php-xdebug -s
==> Downloading https://pecl.php.net/get/xdebug-3.0.0.tgz
######################################################################## 100.0%
==> Reinstalling kabel/pecl/php-xdebug
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you an update run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.

==> /usr/local/opt/php/bin/phpize
==> ./configure --with-php-config=/usr/local/opt/php/bin/php-config
==> make
🍺  /usr/local/Cellar/php-xdebug/3.0.0: 5 files, 305.5KB, built in 24 seconds

$ php -m|grep xdebug
xdebug

I guess the problem goes away once #16 is merged.