shivammathur / setup-php

GitHub action to set up PHP with extensions, php.ini configuration, coverage drivers, and various tools.
https://setup-php.com
MIT License
2.91k stars 340 forks source link

Errors since PHP8.3 release : "Could not install 8.2 on PHP 8.3.0" #792

Closed pocky closed 10 months ago

pocky commented 10 months ago

Describe the bug Our pipeline don't works since the release of PHP 8.3. There is an error with PHP 8.2 setup.

Version

Runners

Operating systems ubuntu-latest

PHP versions 8.2

To Reproduce

jobs:
    static-checks:
        name: "PHP ${{ matrix.php-version }} Lint"

        runs-on: ubuntu-latest

        strategy:
            fail-fast: false
            matrix:
                include:
                    - php-version: '8.2'
                      php-extensions: 'ctype, iconv, pgsql, pdo_pgsql, gd, intl, sysvsem, imagick, :xdebug'
                      tools: 'composer:v2, symfony'

        steps:
            - name: Checkout project
              uses: actions/checkout@v2
              with:
                  path: ${{ matrix.checkout-directory }}

            - name: Setup PHP
              uses: shivammathur/setup-php@v2
              with:
                  php-version: ${{ matrix.php }}
                  ini-values: date.timezone=Europe/Paris
                  extensions: ${{ matrix.php-version }}
                  tools: ${{ matrix.tools }}
                  coverage: none

Expected behavior PHP 8.2 should be installed and usable

Screenshots/Logs

Run shivammathur/setup-php@v2
/usr/bin/bash /home/runner/work/_actions/shivammathur/setup-php/v2/src/scripts/run.sh

==> Setup PHP
✓ PHP Installed PHP 8.3.0

==> Setup Extensions
/home/runner/work/_actions/shivammathur/setup-php/v2/src/scripts/../scripts/extensions/source.sh: line 9: 8.2_CONFIGURE_PREFIX_OPTS: invalid variable name
/home/runner/work/_actions/shivammathur/setup-php/v2/src/scripts/../scripts/extensions/source.sh: line 9: 8.2_CONFIGURE_OPTS: invalid variable name
/home/runner/work/_actions/shivammathur/setup-php/v2/src/scripts/../scripts/extensions/source.sh: line 9: 8.2_CONFIGURE_SUFFIX_OPTS: invalid variable name
/home/runner/work/_actions/shivammathur/setup-php/v2/src/scripts/../scripts/extensions/source.sh: line 9: 8.2_LIBS: invalid variable name
/home/runner/work/_actions/shivammathur/setup-php/v2/src/scripts/../scripts/extensions/source.sh: line 9: 8.2_LINUX_LIBS: invalid variable name
✗ 8.2 Could not install 8.2 on PHP 8.3.0

==> Setup Tools
✓ composer Added composer 2.6.5
✓ symfony-cli Added symfony-cli 5.7.3

==> Setup Coverage
✓ none Disabled Xdebug and PCOV

==> Add php.ini values
✓ date.timezone=Europe/Paris Added to php.ini

==> Sponsor setup-php
✓ setup-php https://setup-php.com/sponsor

Additional context Everything was fine until Thursday :)

pocky commented 10 months ago

How to fix this issue: