Skip to content

Consider listing bsn4/grpc as PIE-supported alternative for ext-grpcΒ #539

@BSN4

Description

@BSN4

Hi! πŸ‘‹

The official grpc PECL extension is listed under "Not started / Unknown" in the supported extensions doc, and it has a long history of issues that remain unresolved:

  • #41526 β€” PHP 8.5 Mutex deadlock
  • #41745 β€” pecl install grpc compilation never ends
  • #34278 β€” pecl install is still slow and produces massive binaries
  • #38336 β€” Noisy stdout/stderr even with verbosity disabled
  • #31772 β€” gRPC extension prevents PHP execution
  • #38957 β€” Endless loading of the grpc extension on PHP 8.3
  • #38184 β€” Segfault in PHP 8.3
  • #31241 β€” Fork blocked in FUTEX_WAIT_PRIVATE
  • #38209 β€” PHP installation via PIE (no progress from official side)

We built grpc-php-rs β€” a drop-in replacement for ext-grpc written in Rust. It's already PIE-compatible with pre-built binaries for PHP 8.2–8.5 (NTS + ZTS) on Linux x86_64, Linux ARM64, and macOS ARM64:

pie install bsn4/grpc

It provides the same Grpc\ namespace and API, so existing code (Google Cloud PHP, Firestore, Cloud Tasks, etc.) works without changes. It's running in production today.

Would you consider updating the supported extensions doc to list bsn4/grpc as the PIE-compatible package for gRPC? Happy to submit a PR if that's preferred.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions