Closed stasadev closed 2 weeks ago
I will make a new build of the Docker image only after the next PR goes in:
And it can be tested manually using .ddev/web-build/Dockerfile
Please open an issue with https://bugs.xdebug.org/my_view_page.php explaining your results with php 8.3, thanks!
Please open an issue with bugs.xdebug.org/my_view_page.php explaining your results with php 8.3, thanks!
It's not compatible (see https://xdebug.org/docs/compat) so they won't fix it.
Oh, I understand now, thanks.
I added a new stage for Xdebug, because the size of the Docker image ddev-php-base
has grown significantly:
linux/amd64 333.86 MB => 426.51 MB linux/arm64 327.2 MB => 414 MB
Also I added cleanup for /tmp/*
, because there were leftovers from platformsh:
$ docker run --rm -it ddev/ddev-webserver:v1.23.0-1 ls -la /tmp
total 40
drwxrwxrwt 2 root root 4096 Apr 16 18:31 .
drwxr-xr-x 1 root root 4096 May 14 10:54 ..
-rw-r--r-- 1 root root 4891 Apr 16 18:30 platformsh-install-20240416-183042.log
-rw-r--r-- 1 root root 4862 Apr 16 18:30 platformsh-install-20240416-183049.log
-rw-r--r-- 1 root root 14880 Apr 16 18:30 setup.deb.sh
Building a new image.
I was thinking about that last night, about build-essential getting into the final image. Thanks for catching that!
You have done so well!
There is a question remaining: If we can't downgrade for PHP8.3... should we still be downgrading for PHP8.1/2?
If we can't downgrade for PHP8.3... should we still be downgrading for PHP8.1/2?
It is still supported https://www.php.net/supported-versions.php If this PR works, it could make life easier for people who have PHP8.0/1/2.
Oh, dear, I didn't look at the right thing, did I? That was a previous push. The current ddev-php-base is much too big:
Oh, I see you were already building as we spoke.
Yes, but it failed after 30 minutes (connection timeout to php repo), I just restarted it again.
Download the artifacts for this pull request:
I ran a basic debugging session with a single breakpoint and step over, using PHP 8.0, 8.1, 8.2.
Used Linux amd64 with PhpStorm 2023.3.6.
And tested Xdebug 3.3.2 with PHP 8.3 to make sure it works the same for me.
So much better, thanks!:
And this works too, so we don't limit everyone to 3.2.2:
webimage_extra_packages: ['php${DDEV_PHP_VERSION}-xdebug']
The Issue
6159
How This PR Solves The Issue
Compiles Xdebug 3.2.2 library for PHP 8.0, 8.1, 8.2.
Unfortunately we can't build Xdebug 3.2.2 for PHP 8.3:
Xdebug Compatibility https://xdebug.org/docs/compat
Manual Testing Instructions
Automated Testing Overview
Related Issue Link(s)
Release/Deployment Notes