CircleCI-Public / CircleCI-Public/cimg-php
Bug Report: current docker-php-extension-installer does not officialy support PHP 8.2
- Dominant language
- Dockerfile
- Stars
- 14
- Forks
- 20
- Avg merge
- 18h 48m
- Merged PRs (30d)
- 1
Description
*Note: We also welcome PRs to fix bugs! This helps us take action faster where a bug has been identified!*
For our official CircleCI Docker Convenience Image support policy, please see [CircleCI docs](https://circleci.com/docs/convenience-images-support-policy).
This policy outlines the release, update, and deprecation policy for CircleCI Docker Convenience Images.
---
**Describe the bug**
Running the current docker-php-extension-installer script in the PHP 8.2 base image, e.g. `sudo -E install-php-extensions xdebug`, yields the following message:
```
### ERROR: Unsupported PHP version: 8.2 ###
```
Altough technically it continues and works for the cases I've found, an update to the extension would probably be appropriate.
**To Reproduce**
`docker container run --rm -it cimg/php:8.2 /bin/bash -c "sudo -E install-php-extensions xdebug"`
**Expected behavior**
No error message appears.
**Workarounds**
Ignore the error message as it appears unharmful in most cases.
**Screenshots and Build Links**
n/a
**Additional context**
With the PHP 8.3 release coming up, it might be good to update the extension in such a manner it officialy supports that as well. Given that the current origin repository supports it (see https://github.com/mlocati/docker-php-extension-installer/pull/810), getting up to date with this should be sufficient.
Contributor guide
Research direction
Start by running the reported cimg/php:8.2 command and locate the bundled docker-php-extension-installer version and its PHP-version support check. Compare it with the upstream repository and referenced pull request; done means installing xdebug on PHP 8.2 no longer prints the unsupported-version error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, php
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100