laravel / sail

Docker files for running a basic Laravel application.
https://laravel.com/docs/sail
MIT License
1.68k stars 475 forks source link

Missing xdebug on PHP 8.3 #633

Closed loureirorg closed 1 year ago

loureirorg commented 1 year ago

Sail Version

1.26.0

Laravel Version

10.30.1

PHP Version

8.3.0RC5

Operating System

Linux

OS Version

Ubuntu 23.10

Description

XDebug is disabled on Sail's runtime 8.3 (php 8.3): https://github.com/laravel/sail/blob/1.x/runtimes/8.3/Dockerfile#L30

Besides xdebug, these other php packages have been disabled:

php8.3-msgpack php8.3-igbinary php8.3-redis php8.3-swoole
php8.3-memcached php8.3-pcov php8.3-xdebug
php8.3-imagick

Steps To Reproduce

Steps to reproduce

  1. Create a new Laravel app
  2. Add Sail
  3. Change runtime to 8.3 on docker-compose.yml:
    services:
    laravel.test:
        build:
            context: ./vendor/laravel/sail/runtimes/8.3
            dockerfile: Dockerfile
            args:
                WWWGROUP: '${WWWGROUP}'
        image: sail-8.3/app
        extra_hosts:
            - 'host.docker.internal:host-gateway'

    4.Run ./vendor/bin/sail php -i | grep xdebug

What is expected

The output:

/etc/php/8.3/cli/conf.d/20-xdebug.ini
# ... more lines ...

What happens

It outputs empty, meaning there's no xdebug installed

loureirorg commented 1 year ago

Never mind, xDebug doesn't support PHP 8.3 yet.

xdebug-php-8 3

Jubeki commented 1 year ago

The listed extensions are not yet available for PHP 8.3 and are therefor not available. As soon as they are available (with a little delay), the will be added again.