Skip to content

Add PHP 8.5 support for opentelemetry - #681

Merged
mnapoli merged 1 commit into
brefphp:masterfrom
reservix:opentelemetry-php85
Nov 11, 2026
Merged

mnapoli merged 1 commit into
brefphp:masterfrom
reservix:opentelemetry-php85

Conversation

@trigrab

@trigrab trigrab commented Nov 11, 2026

Copy link
Copy Markdown

This adds a PHP 8.5 build of the opentelemetry layer and bumps the extension from 1.1.0 to 1.4.2.

Why the bump: 1.1.0 is from early 2025. It builds and works on PHP 8.5, but one of its own tests fails there because of a PHP 8.5 deprecation in the test code (fixed in 1.2.1). Since 1.1.0 the extension also got refcount fixes and a JIT memory-safety fix. 1.4.2 is the latest release on PECL; 1.5.0 is not published on PECL, so the pecl install recipe can't use it.

The bump also applies to the existing 82, 83 and 84 layers. For users of hook() the behaviour is unchanged; the changes since 1.1.0 are bug fixes and a new opentelemetry.display_warnings ini setting (default off).

Tested locally on bref/build-php-85:3:

  • make test layer=opentelemetry passes for 82, 83, 84 and 85.
  • The extension's own PHPT suite passes 76/76 on PHP 8.5.12.
  • hook() with pre and post callbacks works on 8.5: pre replaces the arguments, post receives the exception.

Bump the opentelemetry extension from 1.1.0 to 1.4.2 (latest release on
PECL) and build it for PHP 8.5.
@mnapoli
mnapoli merged commit 23dcc0d into brefphp:master Nov 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants