November 2021 and on cimg/PHP Changes

Hey Everyone!

For anyone using the cimg/php Convenience Images, I wanted to share a change on how PHP is made available in the images. We use to use an Ubuntu PPA to install the PHP versions. This means PHP itself and many extension were (and could be) installed via apt-get. Starting with November releases, this has changed.

Now in cimg/php the PHP version is compiled into the image itself from source. There were a few reasons for this change but ultimately, this will allow CircleCI to better maintain these images moving forward. For some people, this change won’t mean much. What’s very different is how extensions are handled.

Many, many extensions are now pre-installed by default when we compile PHP. For anything that you still need to install, you won’t use apt-get anymore. Instead, you’ll want to use PEAR/PECL. Please see the readme for more information.