Edit 2023-12-08: The upstream issues are resolved. For DDEV v1.22.5, just add this to .ddev/config.yaml:
webimage_extra_packages: [php8.3-xdebug]
For versions after v1.22.5, nothing needs to be done.
DDEV v1.22.5 has support for PHP 8.3.0, but it does not yet have xdebug. How can I get xdebug before it’s released in the upstream repositories?
2
Answers
Edit 2023-12-08: The upstream issues are resolved. For DDEV v1.22.5, just add this to .ddev/config.yaml:
For versions after v1.22.5, nothing needs to be done.
Leaving the discussion below because it's great for any needed PECL package.
You can use
pecl
in a custom.ddev/web-build/Dockerfile
to install anyPECL
extension.Add this
.ddev/web-build/Dockerfile
to your project andddev restart
:After it starts up (it takes a little bit to build the image),
This can be adapted pretty easily for almost any extension in
PECL
.Resources:
Thanks @rfay !
What I’m about to say is more of a comment than an answer, but I’m writing it here for readability.
Based on your answer, I was able to add the 3 extensions that are still temporarily missing for PHP 8.3 (
xdebug
,redis
andmemcached
) using aDockerfile.83missing
file with the following content:Thanks again