Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xdebug extension binary missing on php 8.1 #178

Open
yaronuliel opened this issue Nov 3, 2022 · 1 comment
Open

Xdebug extension binary missing on php 8.1 #178

yaronuliel opened this issue Nov 3, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@yaronuliel
Copy link

When configuring a platformsh recipe for project with php:8.1 runtime to have xdebug enabled -
The xdebug.ini file is being loaded, but the extension binary (xdebug.so) is missing

❯ lando php -v
PHP Warning:  Failed loading Zend extension 'xdebug.so' (tried: /usr/lib/php/20210902-zts/xdebug.so (/usr/lib/php/20210902-zts/xdebug.so: cannot open shared object file: No such file or directory), /usr/lib/php/20210902-zts/xdebug.so.so (/usr/lib/php/20210902-zts/xdebug.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Warning: Failed loading Zend extension 'xdebug.so' (tried: /usr/lib/php/20210902-zts/xdebug.so (/usr/lib/php/20210902-zts/xdebug.so: cannot open shared object file: No such file or directory), /usr/lib/php/20210902-zts/xdebug.so.so (/usr/lib/php/20210902-zts/xdebug.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 8.1.0 (cli) ( ZTS)
Copyright (c) The PHP Group
Zend Engine v4.1.0, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.0, Copyright (c), by Zend Technologies

I used configuration override in my .lando.yml file:

name: 1111-some-project
recipe: platformsh
config:
  id: 111122223333444
  overrides:
    app:
      runtime:
        extensions:
          - xdebug

When I run the same thing with php:7.4 application runtime - everything works as expected

@yaronuliel yaronuliel added the bug Something isn't working label Nov 3, 2022
@keviny86
Copy link

keviny86 commented Dec 7, 2022

services:
  app:
    overrides:
      image: docker.registry.platform.sh/php-8.1:stable

Add this to your lando file will fix this issue, would be great if this could be solved without overriding image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants