setup-php icon indicating copy to clipboard operation
setup-php copied to clipboard

Bug: grpc extension won't setup on ubuntu-latest + PHP 8.5

Open SRWieZ opened this issue 1 month ago • 3 comments

Describe the bug

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.5.0

==> Setup Extensions
PHP Warning:  PHP Startup: Unable to load dynamic library 'grpc.so' (tried: /usr/lib/php/20250925/grpc.so (/usr/lib/php/20250925/grpc.so: undefined symbol: zend_exception_get_default), /usr/lib/php/20250925/grpc.so.so (/usr/lib/php/20250925/grpc.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
✗ grpc Could not install grpc on PHP 8.5.0
✓ intl Enabled

Version

  • [x] v2
  • [ ] v1

Runners

GitHub Hosted

Operating systems

Ubuntu 24.04.3 LTS (ubuntu-latest)

PHP versions

PHP 8.5

To Reproduce

https://github.com/SRWieZ/grpc-protoset/blob/b8725d6bb850f71f952811b697084b5af0c8fbb4/.github/workflows/test.yml

Expected behavior

Works on windows and macOS but not on ubuntu.

Screenshots/Logs

https://github.com/SRWieZ/grpc-protoset/actions/runs/19890888242/job/57009165656?pr=1

Additional context

No response

Are you willing to submit a PR?

Yes

SRWieZ avatar Dec 03 '25 10:12 SRWieZ

@SRWieZ

It is using the build from ppa:ondrej/php.

You can report this here. I'm not sure, but Ondrej might need a new release with the patch from https://github.com/grpc/grpc/pull/40842 merged.

shivammathur avatar Dec 03 '25 11:12 shivammathur

okay, thanks!

I wasn't sure what could be the root cause of it working on other OS but not Ubuntu.

Thanks for the links

SRWieZ avatar Dec 03 '25 11:12 SRWieZ

Yes, it was patched in the homebrew-extensions formula and the PECL builds I do for Windows.

shivammathur avatar Dec 03 '25 11:12 shivammathur