opentelemetry-php-distro v0.7.2 - PHP 8.1 Fatal Fix

opentelemetry-php-distro v0.7.2 shipped on November 20, 2026. It is a small patch release, but one change matters if you still run PHP 8.1: a fatal error caused by scoped polyfills is gone. This is not a prerelease.

The full release notes and downloads are on the GitHub release page.

The PHP 8.1 fix

PR #164 fixes a fatal error that hit PHP 8.1 environments. The problem sat in scoped polyfills, code the distro ships so older PHP versions can run the newer OpenTelemetry packages. On PHP 8.1 that code could crash the process at load time. If require of the distro package failed after you bumped versions, this patch is the likely fix.

Package versions inside this distro

The distro is a bundle that pins a set of OpenTelemetry PHP packages so you get a tested combination instead of a version matrix you have to solve yourself. This release pins:

  • open-telemetry/api 1.10.1
  • open-telemetry/sdk 1.15.0
  • open-telemetry/context 1.5.0 for PHP 8.1, and 1.6.0 for PHP 8.2 through 8.5

The context version splits on 8.1 because PHP 8.2 removed some strings handling that the newer context release relies on. The distro picks the right one per PHP version, so composer update against the distro should keep working across all supported PHP versions.

More loader test coverage

The second change is test only. PR #158 adds tests that cover the PHP detection table and version parsing in the loader. That is the logic which decides which polyfill and context packages get loaded for a given PHP runtime. No runtime behavior change, but future fixes to that table should land with fewer regressions.

Upgrade notes

Nothing breaking here. If you are on PHP 8.1 and v0.7.1 crashes at startup, upgrade. Otherwise this is a routine patch. The changelog between v0.7.1 and v0.7.2 is the two pull requests above.

Where to get it

← All updates