PHP 8.1 and PHP extension/package updates

Change effective on 10 December 2021

PHP 8.1 is now available on the heroku-18 and heroku-20 stacks.

Customers are advised that this new version series brings many new features, but also deprecations and backward-incompatible changes; please follow the PHP 8.1 migration guide carefully.

Refer to the runtime version selection section of the Heroku PHP documentation to learn how to select a particular PHP version series, e.g. by using ~8.0.0 as the PHP version selector in composer.json in order to remain on PHP 8.0 for the time being, if desired.

The ext-newrelic extension is not yet available for PHP 8.1.

The following PHP extensions have been updated:

  • ext-amqp version 1.11.0
  • ext-blackfire version 1.71.0
  • ext-imagick version 3.6.0
  • ext-mongodb version 1.11.1
  • ext-pcov version 1.0.10
  • ext-rdkafka version 5.0.2

The versions of Composer used during builds have been updated to 1.10.24 and 2.1.14.

The blackfire CLI agent program used by ext-blackfire has been updated to version 2.5.2.

The Nginx web server has been updated to version 1.20.2.