Skip to content

Bug: 2.36.0 fails on https://runs-on.com/ runners #1033

Closed

Description

@zoispag

Describe the bug

Since the release of 2.36.0, shivammathur/setup-php@v2 fails on runs-on runners.

Image

It happens for both 8.4 and 8.5

Debug run didn't shed any light:

##[debug]Evaluating condition for step: 'Setup PHP'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Setup PHP
##[debug]Loading inputs
##[debug]Evaluating: github.token
##[debug]Evaluating Index:
##[debug]..Evaluating github:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'token'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Loading env
Run shivammathur/setup-php@v2
  with:
    php-version: 8.4
    ini-values: date.timezone = Europe/Amsterdam, display_errors = Off, error_reporting = E_ALL, log_errors = On, max_file_uploads = 30, max_input_vars = 10000, memory_limit = 4096M, opcache.enable = 0, post_max_size = 200M, short_open_tag = On, upload_max_filesize = 200M
    tools: composer:v2
    coverage: none
    extensions: ssh2
    ini-file: production
    github-token: ***
  env:
    OUTPUT_FILE: /tmp/testsOutput.log
    RUNNER_TOOL_CACHE: /opt/hostedtoolcache
    RUNS_ON_HOME: /runs-on
    RUNS_ON_VERSION: v2.10.0
    RUNS_ON_AGENT_BINARY: /runs-on/agent
    RUNS_ON_AGENT_ARCH: x64
    RUNS_ON_AGENT_USER: runner
    RUNS_ON_AMI_ID: ami-[redacted]
    RUNS_ON_AWS_REGION: eu-central-1
    RUNS_ON_AWS_AZ: eu-central-1a
    RUNS_ON_ENV_CUSTOM_FILE: /runs-on/env.custom
    RUNS_ON_INSTANCE_ID: i-[redacted]
    RUNS_ON_INSTANCE_LIFECYCLE: on-demand
    RUNS_ON_INSTANCE_TYPE: i7ie.large
    RUNS_ON_STACK_NAME: runs-on
    RUNS_ON_S3_BUCKET_CACHE: runs-on-s3bucketcache-[redacted]
    ACTIONS_RUNNER_HOOK_JOB_STARTED: /runs-on/pre.sh
    ACTIONS_RUNNER_HOOK_JOB_COMPLETED: /runs-on/post.sh
    RUNS_ON_RUNNER_NAME: runs-on--i-[redacted]--DheZxxrZIo
    RUNS_ON_INSTANCE_LAUNCHED_AT: 2025-11-26T12:38:43Z
/usr/bin/bash /home/runner/_work/_actions/shivammathur/setup-php/v2/src/scripts/run.sh
==> Setup PHP
✗ PHP Could not setup PHP 8.4
Error: The process '/usr/bin/bash' failed with exit code 1
##[debug]Node Action run completed with exit code 1
##[debug]RUNNER_TOOL_CACHE='/opt/hostedtoolcache'
##[debug]Finishing: Setup PHP

Pinning to 2.35.5 works.

Version

  • v2
  • v1

Runners

Self Hosted

Operating systems

Ubuntu arm

PHP versions

8.4, 8.5

To Reproduce

  phplint:
    name: PHP lint
    runs-on: runs-on=${{ github.run_id }}/runner=phplint

    strategy:
      fail-fast: false
      matrix:
        php-versions: [8.4, 8.5]

    steps:
      - uses: actions/checkout@v6

      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php-versions }}
          ini-values: error_reporting=E_ALL
          tools: composer:v2
          coverage: none

      - name: Perform lint check
        run: composer lint

Expected behavior

It should

Screenshots/Logs

No response

Additional context

Should work as 2.35.5 does.

Are you willing to submit a PR?

Yes

Activity

  1. changed the title [-]Bug: 2.35.6 fails on https://runs-on.com/ runners[/-] [+]Bug: 2.36.0 fails on https://runs-on.com/ runners[/+] on Nov 26, 2025
  2. shivammathur commented on Nov 26, 2025

    @shivammathur
    Owner

    @zoispag Can you run it with shivammathur/setup-php@more-verbose and provide me the logs.

  3. williamjulianvicary commented on Nov 26, 2025

    @williamjulianvicary

    Confirming same issue with Ubicloud runners

  4. zoispag commented on Nov 26, 2025

    @zoispag
    Author

    @shivammathur

    8.5
    [command]/usr/bin/bash /home/runner/_work/_actions/shivammathur/setup-php/more-verbose/src/scripts/run.sh
    ++ read_env
    ++ update=false
    ++ '[' false = true ']'
    ++ debug=release
    ++ [[ nts = \t\s ]]
    ++ [[ nts = \z\t\s ]]
    ++ ts=nts
    ++ fail_fast=false
    ++ [[ -z '' ]]
    ++ [[ -z '' ]]
    ++ _runner=self-hosted
    ++ runner=self-hosted
    ++ tool_path_dir=/usr/local/bin
    ++ [[ self-hosted = \g\i\t\h\u\b ]]
    ++ [[ self-hosted = \g\i\t\h\u\b ]]
    ++ export fail_fast
    ++ export runner
    ++ export update
    ++ export ts
    ++ export tool_path_dir
    ++ add_pecl
    ++ add_devtools phpize
    ++ tool=phpize
    ++ command -v phpize8.5
    ++ install_packages php8.5-dev
    ++ packages=("$@")
    ++ '[' -e /etc/dpkg/dpkg.cfg.d/force-confnew ']'
    ++ sudo DEBIAN_FRONTEND=noninteractive apt-fast install -y --no-install-recommends php8.5-dev
    Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package php8.5-dev
    E: Couldn't find any package by glob 'php8.5-dev'
    E: Couldn't find any package by regex 'php8.5-dev'
    ++ update_lists
    ++ local ppa=
    ++ local ppa_search=
    ++ local status_token=
    ++ local list=
    ++ local status_file=/tmp/os_lists
    ++ local hash_cmd
    ++ [[ -n '' ]]
    ++ '[' -e /etc/apt/sources.list.d/ubuntu.sources ']'
    ++ grep -Eq '^deb |^Types: *deb' /etc/apt/sources.list.d/ubuntu.sources
    ++ list=/etc/apt/sources.list.d/ubuntu.sources
    ++ '[' '!' -e /tmp/os_lists ']'
    ++ fix_broken_packages
    ++ sudo apt --fix-broken install
    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
    Reading package lists...
    Building dependency tree...
    Reading state information...
    0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
    ++ sudo DEBIAN_FRONTEND=noninteractive apt-fast install -y --no-install-recommends php8.5-dev
    Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package php8.5-dev
    E: Couldn't find any package by glob 'php8.5-dev'
    E: Couldn't find any package by regex 'php8.5-dev'
    ++ switch_version phpize php-config
    ++ tools=("$@")
    ++ to_wait=()
    ++ ((  2  ))
    ++ for tool in "${tools[@]}"
    ++ '[' -e /usr/bin/phpize8.5 ']'
    ++ for tool in "${tools[@]}"
    ++ '[' -e /usr/bin/php-config8.5 ']'
    ++ wait
    ++ add_extension xml extension
    ++ local extension=xml
    ++ local prefix=extension
    ++ enable_extension xml extension
    ++ check_extension xml
    ++ local extension=xml
    ++ local extension_list=/tmp/php8.5_extensions
    ++ '[' '!' -e /tmp/php8.5_extensions ']'
    ++ php -m
    /home/runner/_work/_actions/shivammathur/setup-php/more-verbose/src/scripts/../scripts/extensions/add_extensions.sh: line 15: php: command not found
    ++ '[' xml '!=' mysql ']'
    ++ grep -i -q -w xml /tmp/php8.5_extensions
    ++ php -m
    /home/runner/_work/_actions/shivammathur/setup-php/more-verbose/src/scripts/../scripts/extensions/add_extensions.sh: line 18: php: command not found
    ++ grep -i -q -w xml
    ++ shared_extension xml
    /home/runner/_work/_actions/shivammathur/setup-php/more-verbose/src/scripts/../scripts/extensions/add_extensions.sh: line 26: ext_dir: parameter null or not set
    + sudo rm -f /etc/dpkg/dpkg.cfg.d/force-confnew
    ##[error]The process '/usr/bin/bash' failed with exit code 1
    8.4
    [command]/usr/bin/bash /home/runner/_work/_actions/shivammathur/setup-php/more-verbose/src/scripts/run.sh
    ++ read_env
    ++ update=false
    ++ '[' false = true ']'
    ++ debug=release
    ++ [[ nts = \t\s ]]
    ++ [[ nts = \z\t\s ]]
    ++ ts=nts
    ++ fail_fast=false
    ++ [[ -z '' ]]
    ++ [[ -z '' ]]
    ++ _runner=self-hosted
    ++ runner=self-hosted
    ++ tool_path_dir=/usr/local/bin
    ++ [[ self-hosted = \g\i\t\h\u\b ]]
    ++ [[ self-hosted = \g\i\t\h\u\b ]]
    ++ export fail_fast
    ++ export runner
    ++ export update
    ++ export ts
    ++ export tool_path_dir
    ++ self_hosted_setup
    ++ '[' self-hosted = self-hosted ']'
    ++ [[ 8.4 =~ 5.[3-5] ]]
    ++ self_hosted_helper
    ++ command -v apt-fast
    ++ sudo mkdir -p /opt/hostedtoolcache
    ++ install_packages apt-transport-https ca-certificates curl file make jq unzip autoconf automake gcc g++ gnupg
    ++ packages=("$@")
    ++ '[' -e /etc/dpkg/dpkg.cfg.d/force-confnew ']'
    ++ echo force-confnew
    ++ sudo tee /etc/dpkg/dpkg.cfg.d/force-confnew
    force-confnew
    ++ trap 'sudo rm -f /etc/dpkg/dpkg.cfg.d/force-confnew 2>/dev/null' exit
    ++ sudo DEBIAN_FRONTEND=noninteractive apt-fast install -y --no-install-recommends apt-transport-https ca-certificates curl file make jq unzip autoconf automake gcc g++ gnupg
    Reading package lists...
    Building dependency tree...
    Reading state information...
    apt-transport-https is already the newest version (2.8.3).
    ca-certificates is already the newest version (20240203).
    curl is already the newest version (8.5.0-2ubuntu10.6).
    file is already the newest version (1:5.45-3build1).
    make is already the newest version (4.3-4.1build2).
    jq is already the newest version (1.7.1-3ubuntu0.24.04.1).
    unzip is already the newest version (6.0-28ubuntu4.1).
    autoconf is already the newest version (2.71-3).
    automake is already the newest version (1:1.16.5-1.3ubuntu1).
    gcc is already the newest version (4:13.2.0-7ubuntu1).
    g++ is already the newest version (4:13.2.0-7ubuntu1).
    gnupg is already the newest version (2.4.4-2ubuntu17.3).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    ++ add_env RUNNER_TOOL_CACHE /opt/hostedtoolcache
    ++ env_name=RUNNER_TOOL_CACHE
    ++ env_value=/opt/hostedtoolcache
    ++ [[ -n /home/runner/_work/_temp/_runner_file_commands/set_env_69b7bf1d-0748-44d8-a984-492befd6b378 ]]
    ++ echo RUNNER_TOOL_CACHE=/opt/hostedtoolcache
    ++ tee -a /home/runner/_work/_temp/_runner_file_commands/set_env_69b7bf1d-0748-44d8-a984-492befd6b378
    RUNNER_TOOL_CACHE=/opt/hostedtoolcache
    ++ export RUNNER_TOOL_CACHE=/opt/hostedtoolcache
    ++ RUNNER_TOOL_CACHE=/opt/hostedtoolcache
    ++ setup_php
    ++ step_log 'Setup PHP'
    ++ local 'message=Setup PHP'
    ++ printf '\n\033[90;1m==> \033[0m\033[37;1m%s\033[0m\n' 'Setup PHP'
    
    �[90;1m==> �[0m�[37;1mSetup PHP�[0m
    ++ sudo mkdir -m 777 -p /var/run /run/php
    +++ command -v php-config
    ++ php_config=
    ++ check_pre_installed
    ++ '[' 8.4 = pre ']'
    ++ [[ -z '' ]]
    ++ '[' '!' -e /usr/bin/php8.4 ']'
    ++ add_php
    ++ '[' self-hosted = self-hosted ']'
    ++ [[ 8.4 =~ 8.[6-9] ]]
    ++ [[ nts = \z\t\s ]]
    ++ add_packaged_php
    ++ add_ppa ondrej/php
    ++ set_base_version
    ++ '[' -e /tmp/os-release ']'
    ++ set_base_version_codename
    ++ [[ ubuntu =~ ubuntu|debian ]]
    ++ return
    ++ set_base_version_id
    ++ [[ ubuntu =~ ubuntu|debian ]]
    ++ return
    ++ printf 'ID=%s\nVERSION_ID=%s\nVERSION_CODENAME=%s\n' ubuntu 24.04 noble
    ++ tee /tmp/os-release
    ID=ubuntu
    VERSION_ID=24.04
    VERSION_CODENAME=noble
    ++ ppa=ondrej/php
    ++ [[ ubuntu = \u\b\u\n\t\u ]]
    ++ [[ ondrej/php =~ ondrej/ ]]
    ++ is_ubuntu_ppa_up ondrej/php
    ++ ppa=ondrej/php
    ++ curl -s --connect-timeout 10 --max-time 10 --head --fail https://ppa.launchpadcontent.net/ondrej/php/ubuntu/dists/noble/Release
    ++ '[' self-hosted = self-hosted ']'
    ++ find /etc/apt/sources.list.d -type f -name 'sp*' -exec grep -qF setup-php.com '{}' ';' -delete
    ++ '[' release = debug ']'
    ++ add_list ondrej/php
    ++ ppa=ondrej/php
    ++ ppa_url=https://ppa.launchpadcontent.net/ondrej/php/ubuntu
    ++ key_source=https://ppa.launchpadcontent.net/ondrej/php/ubuntu
    ++ package_dist=noble
    ++ branches=main
    ++ local list_format
    ++ local list_extension
    ++ local status_token
    ++ local resolved_branches
    ++ local list_path=
    +++ get_sources_format
    +++ '[' -n '' ']'
    +++ sources_format=deb
    +++ '[' -e /etc/apt/sources.list.d/ubuntu.sources ']'
    +++ sources_format=deb822
    +++ echo deb822
    ++ list_format=deb822
    +++ get_sources_extension deb822
    +++ '[' deb822 = deb822 ']'
    +++ echo sources
    ++ list_extension=sources
    ++ status_token='https://ppa.launchpadcontent.net/ondrej/php/ubuntu|noble|main'
    ++ IFS='|'
    ++ read -r primary_pattern secondary_pattern
    +++ get_repo_patterns deb822 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble main
    +++ local list_format=deb822
    +++ local ppa_url=https://ppa.launchpadcontent.net/ondrej/php/ubuntu
    +++ local package_dist=noble
    +++ local branches=main
    +++ local escaped_url
    +++ local escaped_dist
    +++ local escaped_branches
    ++++ escape_regex https://ppa.launchpadcontent.net/ondrej/php/ubuntu
    ++++ printf %s https://ppa.launchpadcontent.net/ondrej/php/ubuntu
    ++++ sed -e 's/[][\.^$*+?{}()|\/]/\\&/g'
    +++ escaped_url='https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu'
    ++++ escape_regex noble
    ++++ printf %s noble
    ++++ sed -e 's/[][\.^$*+?{}()|\/]/\\&/g'
    +++ escaped_dist=noble
    ++++ escape_regex main
    ++++ printf %s main
    ++++ sed -e 's/[][\.^$*+?{}()|\/]/\\&/g'
    +++ escaped_branches=main
    +++ local 'deb_primary=^deb[[:space:]]+(\[[^]]*\][[:space:]]+)?https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu[[:space:]]+noble[[:space:]]'
    +++ local 'deb_secondary=^deb[[:space:]]+(\[[^]]*\][[:space:]]+)?https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu[[:space:]]+noble[[:space:]]+.*main([[:space:]]|$)'
    +++ local 'deb822_primary=^URIs: https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu$'
    +++ local 'deb822_secondary=^Suites: noble$'
    +++ '[' deb822 = deb822 ']'
    +++ printf '%s|%s\n' '^URIs: https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu$' '^Suites: noble$'
    ++ check_lists ondrej/php '^URIs: https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu$' '^Suites: noble$' 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu|noble|main'
    ++ local ppa=ondrej/php
    ++ local 'primary=^URIs: https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu$'
    ++ local 'secondary=^Suites: noble$'
    ++ local 'status_token=https://ppa.launchpadcontent.net/ondrej/php/ubuntu|noble|main'
    ++ local match_file=
    ++ check_lists_file=
    ++ '[' -n '^URIs: https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu$' ']'
    +++ grep -Elr '^URIs: https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu$' /etc/apt/sources.list.d
    +++ head -n 1
    ++ match_file=
    ++ '[' -z '' ']'
    ++ '[' -n '^Suites: noble$' ']'
    +++ grep -Elr '^Suites: noble$' /etc/apt/sources.list.d
    +++ head -n 1
    ++ match_file=/etc/apt/sources.list.d/azure-cli.sources
    ++ '[' -n /etc/apt/sources.list.d/azure-cli.sources ']'
    ++ local list_count
    +++ sudo find /var/lib/apt/lists -type f -name '*ondrej_php*'
    +++ wc -l
    ++ list_count=0
    ++ '[' 0 = 0 ']'
    ++ update_lists ondrej/php /etc/apt/sources.list.d/azure-cli.sources 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu|noble|main'
    ++ local ppa=ondrej/php
    ++ local ppa_search=/etc/apt/sources.list.d/azure-cli.sources
    ++ local 'status_token=https://ppa.launchpadcontent.net/ondrej/php/ubuntu|noble|main'
    ++ local list=
    ++ local status_file=/tmp/os_lists
    ++ local hash_cmd
    ++ [[ -n ondrej/php ]]
    ++ [[ -n /etc/apt/sources.list.d/azure-cli.sources ]]
    ++ '[' -f /etc/apt/sources.list.d/azure-cli.sources ']'
    ++ list=/etc/apt/sources.list.d/azure-cli.sources
    +++ command -v sha256sum
    ++ hash_cmd=/usr/bin/sha256sum
    ++ '[' -n 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu|noble|main' ']'
    ++ '[' -n /usr/bin/sha256sum ']'
    +++ echo -n 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu|noble|main'
    +++ /usr/bin/sha256sum
    +++ awk '{print $1}'
    ++ status_file=/tmp/os_lists_cea52a836435a4cd85367276dd392394827f1e68d4c9cc8fab1c7cdaa3e4021a
    ++ '[' '!' -e /tmp/os_lists_cea52a836435a4cd85367276dd392394827f1e68d4c9cc8fab1c7cdaa3e4021a ']'
    ++ update_lists_helper /etc/apt/sources.list.d/azure-cli.sources
    ++ list=/etc/apt/sources.list.d/azure-cli.sources
    ++ command -v sudo
    ++ SUDO=sudo
    ++ [[ -n /etc/apt/sources.list.d/azure-cli.sources ]]
    ++ sudo apt-get update -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/azure-cli.sources -o Dir::Etc::sourceparts=- -o APT::Get::List-Cleanup=0
    Get:1 https://packages.microsoft.com/repos/azure-cli noble InRelease [3564 B]
    Get:2 https://packages.microsoft.com/repos/azure-cli noble/main arm64 Packages [1768 B]
    Fetched 5332 B in 0s (40.5 kB/s)
    Reading package lists...
    ++ echo ''
    ++ tee /tmp/os_lists_cea52a836435a4cd85367276dd392394827f1e68d4c9cc8fab1c7cdaa3e4021a
    
    ++ check_lists_file=/etc/apt/sources.list.d/azure-cli.sources
    ++ return 0
    ++ list_path=/etc/apt/sources.list.d/azure-cli.sources
    +++ handle_existing_list ondrej/php deb822 main
    +++ local ppa=ondrej/php
    +++ local list_format=deb822
    +++ local branches=main
    +++ local merged_components
    +++ '[' -z /etc/apt/sources.list.d/azure-cli.sources ']'
    ++++ merge_components_from_file /etc/apt/sources.list.d/azure-cli.sources main
    ++++ local path=/etc/apt/sources.list.d/azure-cli.sources
    ++++ local incoming=main
    ++++ local current=
    ++++ '[' -n /etc/apt/sources.list.d/azure-cli.sources ']'
    ++++ '[' -e /etc/apt/sources.list.d/azure-cli.sources ']'
    ++++ grep -Eq '^Components:' /etc/apt/sources.list.d/azure-cli.sources
    +++++ grep -E '^Components:' /etc/apt/sources.list.d/azure-cli.sources
    +++++ head -n 1
    +++++ cut -d : -f 2
    +++++ xargs
    ++++ current=main
    ++++ local merged
    +++++ merge_components main main
    +++++ out=()
    +++++ local out t
    +++++ for t in $1 $2
    +++++ [[ -n main ]]
    +++++ [[    != *\ \m\a\i\n\ * ]]
    +++++ out+=("$t")
    +++++ for t in $1 $2
    +++++ [[ -n main ]]
    +++++ [[  main  != *\ \m\a\i\n\ * ]]
    +++++ printf '%s\n' main
    ++++ merged=main
    ++++ '[' -z main ']'
    ++++ '[' main = main ']'
    ++++ return 1
    +++ merged_components=
    +++ [[ deb822 = \d\e\b\8\2\2 ]]
    +++ [[ /etc/apt/sources.list.d/azure-cli.sources = *.list ]]
    +++ echo 'Repository ondrej/php (main) already exists'
    +++ return 1
    ++ resolved_branches='Repository ondrej/php (main) already exists'
    ++ '[' -n 'Repository ondrej/php (main) already exists' ']'
    ++ echo 'Repository ondrej/php (main) already exists'
    ++ return 1
    ++ exit_code=1
    ++ . /etc/os-release
    +++ PRETTY_NAME='Ubuntu 24.04.3 LTS'
    +++ NAME=Ubuntu
    +++ VERSION_ID=24.04
    +++ VERSION='24.04.3 LTS (Noble Numbat)'
    +++ VERSION_CODENAME=noble
    +++ ID=ubuntu
    +++ ID_LIKE=debian
    +++ HOME_URL=https://www.ubuntu.com/
    +++ SUPPORT_URL=https://help.ubuntu.com/
    +++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/
    +++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy
    +++ UBUNTU_CODENAME=noble
    +++ LOGO=ubuntu-logo
    ++ return 1
    ++ update_ppa ondrej/php
    ++ set_base_version
    ++ '[' -e /tmp/os-release ']'
    ++ . /tmp/os-release
    +++ ID=ubuntu
    +++ VERSION_ID=24.04
    +++ VERSION_CODENAME=noble
    ++ ppa=ondrej/php
    ++ ppa_url=https://ppa.launchpadcontent.net/ondrej/php/ubuntu
    ++ package_dist=noble
    ++ branches=main
    ++ local list_format
    +++ get_sources_format
    +++ '[' -n '' ']'
    +++ sources_format=deb
    +++ '[' -e /etc/apt/sources.list.d/ubuntu.sources ']'
    +++ sources_format=deb822
    +++ echo deb822
    Repository ondrej/php (main) already exists
    ++ list_format=deb822
    ++ IFS='|'
    ++ read -r primary_pattern secondary_pattern
    +++ get_repo_patterns deb822 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble main
    +++ local list_format=deb822
    +++ local ppa_url=https://ppa.launchpadcontent.net/ondrej/php/ubuntu
    +++ local package_dist=noble
    +++ local branches=main
    +++ local escaped_url
    +++ local escaped_dist
    +++ local escaped_branches
    ++++ escape_regex https://ppa.launchpadcontent.net/ondrej/php/ubuntu
    ++++ printf %s https://ppa.launchpadcontent.net/ondrej/php/ubuntu
    ++++ sed -e 's/[][\.^$*+?{}()|\/]/\\&/g'
    +++ escaped_url='https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu'
    ++++ escape_regex noble
    ++++ printf %s noble
    ++++ sed -e 's/[][\.^$*+?{}()|\/]/\\&/g'
    +++ escaped_dist=noble
    ++++ escape_regex main
    ++++ printf %s main
    ++++ sed -e 's/[][\.^$*+?{}()|\/]/\\&/g'
    +++ escaped_branches=main
    +++ local 'deb_primary=^deb[[:space:]]+(\[[^]]*\][[:space:]]+)?https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu[[:space:]]+noble[[:space:]]'
    +++ local 'deb_secondary=^deb[[:space:]]+(\[[^]]*\][[:space:]]+)?https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu[[:space:]]+noble[[:space:]]+.*main([[:space:]]|$)'
    +++ local 'deb822_primary=^URIs: https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu$'
    +++ local 'deb822_secondary=^Suites: noble$'
    +++ '[' deb822 = deb822 ']'
    +++ printf '%s|%s\n' '^URIs: https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu$' '^Suites: noble$'
    ++ local list_path
    +++ grep -Elr '^URIs: https:\/\/ppa\.launchpadcontent\.net\/ondrej\/php\/ubuntu$' /etc/apt/sources.list.d
    +++ head -n 1
    ++ list_path=
    ++ '[' -z '' ']'
    ++ '[' -n '^Suites: noble$' ']'
    +++ grep -Elr '^Suites: noble$' /etc/apt/sources.list.d
    +++ head -n 1
    ++ list_path=/etc/apt/sources.list.d/azure-cli.sources
    ++ local status_token
    ++ status_token='https://ppa.launchpadcontent.net/ondrej/php/ubuntu|noble|main'
    ++ update_lists ondrej/php /etc/apt/sources.list.d/azure-cli.sources 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu|noble|main'
    ++ local ppa=ondrej/php
    ++ local ppa_search=/etc/apt/sources.list.d/azure-cli.sources
    ++ local 'status_token=https://ppa.launchpadcontent.net/ondrej/php/ubuntu|noble|main'
    ++ local list=
    ++ local status_file=/tmp/os_lists
    ++ local hash_cmd
    ++ [[ -n ondrej/php ]]
    ++ [[ -n /etc/apt/sources.list.d/azure-cli.sources ]]
    ++ '[' -f /etc/apt/sources.list.d/azure-cli.sources ']'
    ++ list=/etc/apt/sources.list.d/azure-cli.sources
    +++ command -v sha256sum
    ++ hash_cmd=/usr/bin/sha256sum
    ++ '[' -n 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu|noble|main' ']'
    ++ '[' -n /usr/bin/sha256sum ']'
    +++ echo -n 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu|noble|main'
    +++ awk '{print $1}'
    +++ /usr/bin/sha256sum
    ++ status_file=/tmp/os_lists_cea52a836435a4cd85367276dd392394827f1e68d4c9cc8fab1c7cdaa3e4021a
    ++ '[' '!' -e /tmp/os_lists_cea52a836435a4cd85367276dd392394827f1e68d4c9cc8fab1c7cdaa3e4021a ']'
    ++ . /etc/os-release
    +++ PRETTY_NAME='Ubuntu 24.04.3 LTS'
    +++ NAME=Ubuntu
    +++ VERSION_ID=24.04
    +++ VERSION='24.04.3 LTS (Noble Numbat)'
    +++ VERSION_CODENAME=noble
    +++ ID=ubuntu
    +++ ID_LIKE=debian
    +++ HOME_URL=https://www.ubuntu.com/
    +++ SUPPORT_URL=https://help.ubuntu.com/
    +++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/
    +++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy
    +++ UBUNTU_CODENAME=noble
    +++ LOGO=ubuntu-logo
    ++ IFS=' '
    ++ read -r -a packages
    +++ get_php_packages
    +++ sed 's/[^ ]*/php8.4-&/g' /home/runner/_work/_actions/shivammathur/setup-php/more-verbose/src/scripts/../configs/php_packages
    +++ tr '\n' ' '
    +++ '[' release = debug ']'
    ++ install_packages php8.4-cgi php8.4-cli php8.4-curl php8.4-dev php8.4-fpm php8.4-intl php8.4-mbstring php8.4-mysql php8.4-opcache php8.4-pgsql php8.4-xml php8.4-zip
    ++ packages=("$@")
    ++ '[' -e /etc/dpkg/dpkg.cfg.d/force-confnew ']'
    ++ sudo DEBIAN_FRONTEND=noninteractive apt-fast install -y --no-install-recommends php8.4-cgi php8.4-cli php8.4-curl php8.4-dev php8.4-fpm php8.4-intl php8.4-mbstring php8.4-mysql php8.4-opcache php8.4-pgsql php8.4-xml php8.4-zip
    Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package php8.4-cgi
    E: Couldn't find any package by glob 'php8.4-cgi'
    E: Couldn't find any package by regex 'php8.4-cgi'
    E: Unable to locate package php8.4-cli
    E: Couldn't find any package by glob 'php8.4-cli'
    E: Couldn't find any package by regex 'php8.4-cli'
    E: Unable to locate package php8.4-curl
    E: Couldn't find any package by glob 'php8.4-curl'
    E: Couldn't find any package by regex 'php8.4-curl'
    E: Unable to locate package php8.4-dev
    E: Couldn't find any package by glob 'php8.4-dev'
    E: Couldn't find any package by regex 'php8.4-dev'
    E: Unable to locate package php8.4-fpm
    E: Couldn't find any package by glob 'php8.4-fpm'
    E: Couldn't find any package by regex 'php8.4-fpm'
    E: Unable to locate package php8.4-intl
    E: Couldn't find any package by glob 'php8.4-intl'
    E: Couldn't find any package by regex 'php8.4-intl'
    E: Unable to locate package php8.4-mbstring
    E: Couldn't find any package by glob 'php8.4-mbstring'
    E: Couldn't find any package by regex 'php8.4-mbstring'
    E: Unable to locate package php8.4-mysql
    E: Couldn't find any package by glob 'php8.4-mysql'
    E: Couldn't find any package by regex 'php8.4-mysql'
    E: Unable to locate package php8.4-opcache
    E: Couldn't find any package by glob 'php8.4-opcache'
    E: Couldn't find any package by regex 'php8.4-opcache'
    E: Unable to locate package php8.4-pgsql
    E: Couldn't find any package by glob 'php8.4-pgsql'
    E: Couldn't find any package by regex 'php8.4-pgsql'
    E: Unable to locate package php8.4-xml
    E: Couldn't find any package by glob 'php8.4-xml'
    E: Couldn't find any package by regex 'php8.4-xml'
    E: Unable to locate package php8.4-zip
    E: Couldn't find any package by glob 'php8.4-zip'
    E: Couldn't find any package by regex 'php8.4-zip'
    ++ update_lists
    ++ local ppa=
    ++ local ppa_search=
    ++ local status_token=
    ++ local list=
    ++ local status_file=/tmp/os_lists
    ++ local hash_cmd
    ++ [[ -n '' ]]
    ++ '[' -e /etc/apt/sources.list.d/ubuntu.sources ']'
    ++ grep -Eq '^deb |^Types: *deb' /etc/apt/sources.list.d/ubuntu.sources
    ++ list=/etc/apt/sources.list.d/ubuntu.sources
    ++ '[' '!' -e /tmp/os_lists ']'
    ++ update_lists_helper /etc/apt/sources.list.d/ubuntu.sources
    ++ list=/etc/apt/sources.list.d/ubuntu.sources
    ++ command -v sudo
    ++ SUDO=sudo
    ++ [[ -n /etc/apt/sources.list.d/ubuntu.sources ]]
    ++ sudo apt-get update -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/ubuntu.sources -o Dir::Etc::sourceparts=- -o APT::Get::List-Cleanup=0
    Get:1 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease [126 kB]
    Get:2 http://ports.ubuntu.com/ubuntu-ports noble-security/main arm64 Packages [1435 kB]
    Get:3 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble InRelease [256 kB]
    Get:4 http://ports.ubuntu.com/ubuntu-ports noble-security/main Translation-en [218 kB]
    Get:5 http://ports.ubuntu.com/ubuntu-ports noble-security/main arm64 Components [18.4 kB]
    Get:6 http://ports.ubuntu.com/ubuntu-ports noble-security/main arm64 c-n-f Metadata [9188 B]
    Get:7 http://ports.ubuntu.com/ubuntu-ports noble-security/universe arm64 Packages [903 kB]
    Get:8 http://ports.ubuntu.com/ubuntu-ports noble-security/universe Translation-en [205 kB]
    Get:9 http://ports.ubuntu.com/ubuntu-ports noble-security/universe arm64 Components [52.3 kB]
    Get:10 http://ports.ubuntu.com/ubuntu-ports noble-security/universe arm64 c-n-f Metadata [19.0 kB]
    Get:11 http://ports.ubuntu.com/ubuntu-ports noble-security/restricted arm64 Packages [3095 kB]
    Get:12 http://ports.ubuntu.com/ubuntu-ports noble-security/restricted Translation-en [501 kB]
    Get:13 http://ports.ubuntu.com/ubuntu-ports noble-security/restricted arm64 Components [212 B]
    Get:14 http://ports.ubuntu.com/ubuntu-ports noble-security/restricted arm64 c-n-f Metadata [448 B]
    Get:15 http://ports.ubuntu.com/ubuntu-ports noble-security/multiverse arm64 Packages [30.2 kB]
    Get:16 http://ports.ubuntu.com/ubuntu-ports noble-security/multiverse Translation-en [5956 B]
    Get:17 http://ports.ubuntu.com/ubuntu-ports noble-security/multiverse arm64 Components [208 B]
    Get:18 http://ports.ubuntu.com/ubuntu-ports noble-security/multiverse arm64 c-n-f Metadata [384 B]
    Get:19 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-updates InRelease [126 kB]
    Get:20 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-backports InRelease [126 kB]
    Get:21 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble/main arm64 Packages [1377 kB]
    Get:22 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble/main Translation-en [513 kB]
    Get:23 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble/main arm64 Components [460 kB]
    Get:24 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble/main arm64 c-n-f Metadata [30.0 kB]
    Get:25 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble/universe arm64 Packages [15.3 MB]
    Get:26 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble/universe Translation-en [5982 kB]
    Get:27 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble/universe arm64 Components [3573 kB]
    Get:28 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble/universe arm64 c-n-f Metadata [295 kB]
    Get:29 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble/restricted arm64 Packages [91.9 kB]
    Get:30 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble/restricted Translation-en [18.7 kB]
    Get:31 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble/restricted arm64 c-n-f Metadata [412 B]
    Get:32 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble/multiverse arm64 Packages [223 kB]
    Get:33 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble/multiverse Translation-en [118 kB]
    Get:34 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble/multiverse arm64 Components [31.6 kB]
    Get:35 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble/multiverse arm64 c-n-f Metadata [7152 B]
    Get:36 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 Packages [1712 kB]
    Get:37 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-updates/main Translation-en [303 kB]
    Get:38 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 Components [172 kB]
    Get:39 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 c-n-f Metadata [15.5 kB]
    Get:40 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-updates/universe arm64 Packages [1449 kB]
    Get:41 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-updates/universe Translation-en [304 kB]
    Get:42 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-updates/universe arm64 Components [377 kB]
    Get:43 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-updates/universe arm64 c-n-f Metadata [30.2 kB]
    Get:44 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-updates/restricted arm64 Packages [3229 kB]
    Get:45 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-updates/restricted Translation-en [526 kB]
    Get:46 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-updates/restricted arm64 Components [212 B]
    Get:47 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-updates/restricted arm64 c-n-f Metadata [464 B]
    Get:48 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-updates/multiverse arm64 Packages [30.4 kB]
    Get:49 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-updates/multiverse Translation-en [5808 B]
    Get:50 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-updates/multiverse arm64 Components [212 B]
    Get:51 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-updates/multiverse arm64 c-n-f Metadata [304 B]
    Get:52 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-backports/main arm64 Packages [40.3 kB]
    Get:53 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-backports/main Translation-en [9208 B]
    Get:54 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-backports/main arm64 Components [3572 B]
    Get:55 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-backports/main arm64 c-n-f Metadata [368 B]
    Get:56 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-backports/universe arm64 Packages [28.9 kB]
    Get:57 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-backports/universe Translation-en [17.5 kB]
    Get:58 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-backports/universe arm64 Components [11.0 kB]
    Get:59 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-backports/universe arm64 c-n-f Metadata [1444 B]
    Get:60 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-backports/restricted arm64 Components [212 B]
    Get:61 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-backports/restricted arm64 c-n-f Metadata [116 B]
    Get:62 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-backports/multiverse arm64 Components [212 B]
    Get:63 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports noble-backports/multiverse arm64 c-n-f Metadata [116 B]
    Fetched 43.4 MB in 7s (6534 kB/s)
    Reading package lists...
    ++ echo ''
    ++ tee /tmp/os_lists
    
    ++ fix_broken_packages
    ++ sudo apt --fix-broken install
    
    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
    
    Reading package lists...
    Building dependency tree...
    Reading state information...
    0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
    ++ sudo DEBIAN_FRONTEND=noninteractive apt-fast install -y --no-install-recommends php8.4-cgi php8.4-cli php8.4-curl php8.4-dev php8.4-fpm php8.4-intl php8.4-mbstring php8.4-mysql php8.4-opcache php8.4-pgsql php8.4-xml php8.4-zip
    Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package php8.4-cgi
    E: Couldn't find any package by glob 'php8.4-cgi'
    E: Couldn't find any package by regex 'php8.4-cgi'
    E: Unable to locate package php8.4-cli
    E: Couldn't find any package by glob 'php8.4-cli'
    E: Couldn't find any package by regex 'php8.4-cli'
    E: Unable to locate package php8.4-curl
    E: Couldn't find any package by glob 'php8.4-curl'
    E: Couldn't find any package by regex 'php8.4-curl'
    E: Unable to locate package php8.4-dev
    E: Couldn't find any package by glob 'php8.4-dev'
    E: Couldn't find any package by regex 'php8.4-dev'
    E: Unable to locate package php8.4-fpm
    E: Couldn't find any package by glob 'php8.4-fpm'
    E: Couldn't find any package by regex 'php8.4-fpm'
    E: Unable to locate package php8.4-intl
    E: Couldn't find any package by glob 'php8.4-intl'
    E: Couldn't find any package by regex 'php8.4-intl'
    E: Unable to locate package php8.4-mbstring
    E: Couldn't find any package by glob 'php8.4-mbstring'
    E: Couldn't find any package by regex 'php8.4-mbstring'
    E: Unable to locate package php8.4-mysql
    E: Couldn't find any package by glob 'php8.4-mysql'
    E: Couldn't find any package by regex 'php8.4-mysql'
    E: Unable to locate package php8.4-opcache
    E: Couldn't find any package by glob 'php8.4-opcache'
    E: Couldn't find any package by regex 'php8.4-opcache'
    E: Unable to locate package php8.4-pgsql
    E: Couldn't find any package by glob 'php8.4-pgsql'
    E: Couldn't find any package by regex 'php8.4-pgsql'
    E: Unable to locate package php8.4-xml
    E: Couldn't find any package by glob 'php8.4-xml'
    E: Couldn't find any package by regex 'php8.4-xml'
    E: Unable to locate package php8.4-zip
    E: Couldn't find any package by glob 'php8.4-zip'
    E: Couldn't find any package by regex 'php8.4-zip'
    ++ switch_version
    ++ tools=("$@")
    ++ to_wait=()
    ++ ((  0  ))
    ++ tools+=(pear pecl php phar phar.phar php-cgi php-config phpize phpdbg)
    ++ to_wait+=($!)
    ++ to_wait+=($!)
    ++ to_wait+=($!)
    ++ for tool in "${tools[@]}"
    ++ '[' -e /usr/bin/pear8.4 ']'
    ++ for tool in "${tools[@]}"
    ++ '[' -e /usr/bin/pecl8.4 ']'
    ++ for tool in "${tools[@]}"
    ++ '[' -e /usr/bin/php8.4 ']'
    ++ for tool in "${tools[@]}"
    ++ '[' -e /usr/bin/phar8.4 ']'
    ++ for tool in "${tools[@]}"
    ++ '[' -e /usr/bin/phar.phar8.4 ']'
    ++ for tool in "${tools[@]}"
    ++ '[' -e /usr/bin/php-cgi8.4 ']'
    ++ for tool in "${tools[@]}"
    ++ '[' -e /usr/bin/php-config8.4 ']'
    ++ for tool in "${tools[@]}"
    ++ '[' -e /usr/bin/phpize8.4 ']'
    ++ for tool in "${tools[@]}"
    ++ '[' -e /usr/bin/phpdbg8.4 ']'
    ++ wait 1893 1894 1895
    ++ '[' -e /usr/lib/cgi-bin/php8.4 ']'
    ++ '[' -e /usr/sbin/php-fpm8.4 ']'
    ++ '[' -e /run/php/php8.4-fpm.sock ']'
    ++ add_pecl
    ++ add_devtools phpize
    ++ tool=phpize
    ++ command -v phpize8.4
    ++ install_packages php8.4-dev
    ++ packages=("$@")
    ++ '[' -e /etc/dpkg/dpkg.cfg.d/force-confnew ']'
    ++ sudo DEBIAN_FRONTEND=noninteractive apt-fast install -y --no-install-recommends php8.4-dev
    Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package php8.4-dev
    E: Couldn't find any package by glob 'php8.4-dev'
    E: Couldn't find any package by regex 'php8.4-dev'
    ++ update_lists
    ++ local ppa=
    ++ local ppa_search=
    ++ local status_token=
    ++ local list=
    ++ local status_file=/tmp/os_lists
    ++ local hash_cmd
    ++ [[ -n '' ]]
    ++ '[' -e /etc/apt/sources.list.d/ubuntu.sources ']'
    ++ grep -Eq '^deb |^Types: *deb' /etc/apt/sources.list.d/ubuntu.sources
    ++ list=/etc/apt/sources.list.d/ubuntu.sources
    ++ '[' '!' -e /tmp/os_lists ']'
    ++ fix_broken_packages
    ++ sudo apt --fix-broken install
    
    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
    
    Reading package lists...
    Building dependency tree...
    Reading state information...
    0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
    ++ sudo DEBIAN_FRONTEND=noninteractive apt-fast install -y --no-install-recommends php8.4-dev
    Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package php8.4-dev
    E: Couldn't find any package by glob 'php8.4-dev'
    E: Couldn't find any package by regex 'php8.4-dev'
    ++ switch_version phpize php-config
    ++ tools=("$@")
    ++ to_wait=()
    ++ ((  2  ))
    ++ for tool in "${tools[@]}"
    ++ '[' -e /usr/bin/phpize8.4 ']'
    ++ for tool in "${tools[@]}"
    ++ '[' -e /usr/bin/php-config8.4 ']'
    ++ wait
    ++ add_extension xml extension
    ++ local extension=xml
    ++ local prefix=extension
    ++ enable_extension xml extension
    ++ check_extension xml
    ++ local extension=xml
    ++ local extension_list=/tmp/php8.4_extensions
    ++ '[' '!' -e /tmp/php8.4_extensions ']'
    ++ php -m
    /home/runner/_work/_actions/shivammathur/setup-php/more-verbose/src/scripts/../scripts/extensions/add_extensions.sh: line 15: php: command not found
    ++ '[' xml '!=' mysql ']'
    ++ grep -i -q -w xml /tmp/php8.4_extensions
    ++ php -m
    /home/runner/_work/_actions/shivammathur/setup-php/more-verbose/src/scripts/../scripts/extensions/add_extensions.sh: line 18: php: command not found
    ++ grep -i -q -w xml
    ++ shared_extension xml
    /home/runner/_work/_actions/shivammathur/setup-php/more-verbose/src/scripts/../scripts/extensions/add_extensions.sh: line 26: ext_dir: parameter null or not set
    + sudo rm -f /etc/dpkg/dpkg.cfg.d/force-confnew
    ##[error]The process '/usr/bin/bash' failed with exit code 1
  5. kolorafa commented on Nov 26, 2025

    @kolorafa

    The same on Azure Ubuntu 24.04

    ==> Setup PHP
    ID=ubuntu
    VERSION_ID=24.04
    VERSION_CODENAME=noble
    Get:1 https://packages.microsoft.com/repos/azure-cli noble InRelease [3564 B]
    Get:2 https://packages.microsoft.com/repos/azure-cli noble/main amd64 Packages [1763 B]
    Fetched 5327 B in 0s (18.7 kB/s)
    Reading package lists...

    Reading state information...
    E: Unable to locate package php8.4-cgi
    E: Couldn't find any package by glob 'php8.4-cgi'
    E: Couldn't find any package by regex 'php8.4-cgi'
    E: Unable to locate package php8.4-cli
    E: Couldn't find any package by glob 'php8.4-cli'
    E: Couldn't find any package by regex 'php8.4-cli'
    E: Unable to locate package php8.4-curl
    E: Couldn't find any package by glob 'php8.4-curl'
    E: Couldn't find any package by regex 'php8.4-curl'
    E: Unable to locate package php8.4-dev
    E: Couldn't find any package by glob 'php8.4-dev'
    E: Couldn't find any package by regex 'php8.4-dev'

  6. kolorafa commented on Nov 26, 2025

    @kolorafa

    Will the shopware/github-actions#118
    also make installing PHP using spc work
    or do we need to update somehow pipeline to use different command/spc build or use some params?

    Currently:

    curl -sL https://github.com/shivammathur/spc/releases/latest/download/spc -o spc
    chmod +x spc
    sudo mv spc /usr/local/bin/
    spc --php-version "8.4" --update "true" --coverage "xdebug" -v
    

    Thanks :)

  7. shivammathur commented on Nov 26, 2025

    @shivammathur
    Owner

    @kolorafa @zoispag @williamjulianvicary
    Please test with shivammathur/setup-php@develop and let me know if that fixes it.

  8. zoispag commented on Nov 26, 2025

    @zoispag
    Author

    @kolorafa @zoispag @williamjulianvicary
    Please test with shivammathur/setup-php@develop and let me know if that fixes it.

    @shivammathur develop works!

  9. shivammathur commented on Nov 26, 2025

    @shivammathur
    Owner

    I have retagged the release and updated v2. It should work now.

  10. williamjulianvicary commented on Nov 26, 2025

    @williamjulianvicary

    Also confirming working now, thank you for all your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions