You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
update-alternatives: error: alternative /usr/bin/php8.2 for php not registered; not setting
update-alternatives: error: alternative /usr/bin/phar8.2 for phar not registered; not setting
update-alternatives: error: alternative /usr/bin/phpdbg8.2 for phpdbg not registered; not setting
update-alternatives: error: alternative /usr/bin/php-cgi8.2 for php-cgi not registered; not setting
update-alternatives: error: alternative /usr/bin/phar.phar8.2 for phar.phar not registered; not setting
PHP 8.1.2-1ubuntu2.11 (cli) (built: Feb 22 2023 22:56:18) (NTS)
The text was updated successfully, but these errors were encountered:
PHP 8.2 Is missing in official Ubuntu22 apt repository. GitHub recommends using the setup-php action for any customers who want to use any other (non-installed) versions of PHP or want to get latest PHP faster. You can find additional information in this tread.
Description
As of currently, if a user needs to use PHP8.2 on a Microsoft hosted runner image, the only option they have is Ubuntu 20.
Ubuntu 22 should also support the most recent version of PHP.
Platforms affected
Runner images affected
Image version and build link
20230426.1
Is it regression?
No
Expected behavior
PHP8.2 is included as a supported version in the runner image
Actual behavior
PHP 8.2 is not supported, and any PHP8.2 features (such as readonly classes) fail.
Repro steps
Use the following settings:
The runner will throw the following errors:
The text was updated successfully, but these errors were encountered: