Skip to content

Bug: “Could not setup PHP 8.5” on macos-15-intel #1029

@TimWolla

Description

@TimWolla

Describe the bug

On macos-15-intel when running GHA with debug output, I see:

##[debug]Evaluating condition for step: 'Run shivammathur/setup-php@v2'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Run shivammathur/setup-php@v2
##[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.5
    extensions: tokenizer, posix, ctype, dom, soap, intl
    coverage: none
    ini-file: production
    github-token: ***
  env:
    debug: false
/bin/bash /Users/runner/work/_actions/shivammathur/setup-php/v2/src/scripts/run.sh

==> Setup PHP
✗ PHP Could not setup PHP 8.5
Error: The process '/bin/bash' failed with exit code 1
##[debug]Node Action run completed with exit code 1
##[debug]Set output php-version = 8.4.14
##[debug]Finishing: Run shivammathur/setup-php@v2

Version

  • v2
  • v1

Runners

GitHub Hosted

Operating systems

macos-15-intel (macos-15 on ARM is fine)

PHP versions

PHP 8.5 (PHP 8.4 and earlier on Intel is fine)

To Reproduce

on:
  push:

permissions:
  contents: read

jobs:
  macOS:
    runs-on: macos-15-intel

    steps:
    - uses: "shivammathur/setup-php@v2"
      timeout-minutes: 5
      with:
        php-version: "8.5"
        extensions: "tokenizer, posix, ctype, dom, soap, intl"
        coverage: none # disables xdebug
      env:
        debug: false

Example run: https://github.com/TimWolla/setup-php-macos-intel-8.5/actions/runs/19628313823/job/56201841104

Expected behavior

A successful setup of PHP 8.5.

Screenshots/Logs

No response

Additional context

No response

Are you willing to submit a PR?

No

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions