PHP 7.2.6: Downloads, Changelog, News

Release Information

Release
7.2.6
PHP Version
PHP 7.2
Release Date
Release Type
Bug Fix Release
Release Status
EOL, Use PHP 7.2.34
Branch Status
Unsupported

PHP 7.2 reached EOL on , and all releases of this version no longer receive security or bug fixes. Using PHP 7.2.6 is not recommended. PHP 7.2.34 is the latest version in the series.

Downloads

Source Code

Git Clone
Use Git to clone the 7.2.6 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-7.2.6
How to compile PHP
PHP can be compiled by setting up the dependencies, building the configure script (./buildconf), configuring the build ./configure, and running make.
Detailed articles on how to compile PHP are available for Ubuntu/Debian based systems and Fedora/RHEL based systems.

Windows binaries

Non-Thread Safe Builds
Non-Thread Safe (NTS) builds are single-threaded PHP builds. They can be used on web servers that integrate PHP over FastCGI protocol, such as Nginx, Caddy, and IIS.
Thread-Safe Builds
Thread-Safe (TS) builds are multi-thread PHP builds, often used to integrate PHP as a Server API for multithreaded servers. The most common use case is using PHP as an Apache module.

Docker/Podman Containers

PHP CLI
PHP CLI Containers images only include the PHP CLI, and no FPM or Apache modules. The Alpine builds are lightweight, but may introduce incompatibilities due to their musl builds. Albeit their larger size, the Debian-based (without the "-alpine" suffix) images are more complete, and widely used.

Alpine-based: Lightweight, but may introduce incompatibilities due to their musl builds.
docker pull php:7.2.6-cli-alpine

Debian-based: More compatible with other components, complete, and are widely used.
docker pull php:7.2.6-cli
PHP CLI + Web Server Integration
These container images include PHP CLI, and a web server integration. FPM container images can be integrated with web servers such as Nginx, Caddy, and Apache with Event MPM. The Apache container images include Apache web server, integrating PHP as an Apache module.

Alpine-based: Lightweight, but may introduce incompatibilities due to their musl builds.
docker pull php:7.2.6-fpm-alpine

Debian-based ZTS Apache: Includes Apache web server integrating PHP as an Apache module.
docker pull php:7.2.6-apache

Debian-based NTS FPM: PHP-FPM, can be integrated with Nginx, Caddy, and other web servers over Fast CGI.
docker pull php:7.2.6-fpm

ChangeLog

EXIF

  • Fixed bug #76164 (exif_read_data zend_mm_heap corrupted).

FPM

  • Fixed bug #76075 --with-fpm-acl wrongly tries to find libacl on FreeBSD.

intl

  • Fixed bug #74385 (Locale::parseLocale() broken with some arguments).

Opcache

  • Fixed bug #76205 (PHP-FPM sporadic crash when running Infinitewp).
  • Fixed bug #76275 (Assertion failure in file cache when unserializing empty try_catch_array).
  • Fixed bug #76281 (Opcache causes incorrect "undefined variable" errors).

Reflection

  • Fixed arginfo of array_replace(_recursive) and array_merge(_recursive).

Session

  • Fixed bug #74892 (Url Rewriting (trans_sid) not working on urls that start with "#").

Commit List

Anatol Belski

Andrew Nester

Aron Rotteveel

  • reset imap_errorstack after outputting it in 9090a21de0

Christoph M. Becker

Derick Rethans

Dmitry Stogov

  • Fixed bug #76205 (PHP-FPM sporadic crash when running Infinitewp) in c6ce03e45e
  • Revert "Merge branch 'PHP-7.1' into PHP-7.2" in f8c1ce18e9
  • Revert "Fixed bug #76205 (PHP-FPM sporadic crash when running Infinitewp)." in df4d0a73d2
  • Fixed bug #76205 (PHP-FPM sporadic crash when running Infinitewp) in 5b3e1ded35

Ferenc Kovacs

Gabriel Caruso

  • Fix arginfo for array_replace(_recursive) and array_merge(_recursive) in bb79e5764b

Jakub Zelenka

  • Make openssl_error_string test work in OpenSSL 1.1.1 in 2ef8809ef3

Joe Watkins

Michał Górny

  • Support using acl_ functions on BSD in 4ea7f3467d

Nikita Popov

Remi Collet

Ricardo F

  • Update _bits_per_char to use with new PHP 7.1. or greater in ea642026eb

Sara Golemon

Scott Arciszewski

shiguangqi2008@gmail.com

  • Fix memory leak in zend_disable_class() in 98ef183ed0

Stanislav Malyshev

Thomas Punt

  • Fix memory leak when phpdbg fails to start up in 435e812c09
  • Allocate default ini values into persistent memory in 2513da4b4c
  • Fix potential memory leaks in sockets extension in 643c9c9b47
  • The SO_PASSCRED constant is conditionally defined in 35713efa02
  • Fix potential memory leak in curl extension in d3ae4fe2d2
  • Fix potential memory leak in the enchant extension in 7ba70a5fed
Subscribe to PHP.Watch newsletter for monthly updates

You will receive an email on last Wednesday of every month and on major PHP releases with new articles related to PHP, upcoming changes, new features and what's changing in the language. No marketing emails, no selling of your contacts, no click-tracking, and one-click instant unsubscribe from any email you receive.