Late May 2019 PHP/Nginx updates and configuration changes
Change effective on 30 May 2019
The following new runtime versions are now available for PHP applications:
- PHP 7.1.30
- PHP 7.2.19
- PHP 7.3.6
The following extensions have been updated:
-
ext-ev, version 1.0.6 -
ext-event, version 2.5.1
The librdkafka library used by the ext-rdkafka extensions has been updated to version 1.0.1.
The Nginx web server has been updated to release 1.16.0.
All PHP runtimes have had their php.ini configuration files updated to closely match each release series’ respective php.ini-production default configuration. This addresses several issues where configuration directives were not set to their recommended defaults and caused unexpected behavior.
Specifically, the following directives have changed from their previous defaults:
-
error_reportingis nowE_ALL & ~E_STRICTfor all PHP series (this setting is Heroku specific) -
mail.add_x_headeris nowOffon PHP 7.1 and later (PHP production default) -
serialize_precisionis now-1on PHP 7.1 and later (PHP production default) -
session.entropy_lengthis now32on PHP 5.5, 5.6, and 7.0 (PHP production default) -
session.sid_bits_per_characteris now5on PHP 7.1 and later (PHP production default) -
url_rewriter.tagsis now"form="on PHP 7.1 and later (PHP production default) -
zend.assertionsis now-1on PHP 7 (PHP production default)
A new section in the PHP Support article on Dev Center lists Heroku-specific php.ini settings that deviate from the php.ini-production defaults.