PHP 7.2.8: Downloads, Changelog, News

Release Information

Release
7.2.8
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.8 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.8 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-7.2.8
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.8-cli-alpine

Debian-based: More compatible with other components, complete, and are widely used.
docker pull php:7.2.8-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.8-fpm-alpine

Debian-based ZTS Apache: Includes Apache web server integrating PHP as an Apache module.
docker pull php:7.2.8-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.8-fpm

ChangeLog

Core

  • Fixed bug #76534 (PHP hangs on 'illegal string offset on string references with an error handler).
  • Fixed bug #76520 (Object creation leaks memory when executed over HTTP).
  • Fixed bug #76502 (Chain of mixed exceptions and errors does not serialize properly).

Date

  • Fixed bug #76462 (Undefined property: DateInterval::$f).

EXIF

  • Fixed bug #76409 (heap use after free in _php_stream_free).
  • Fixed bug #76423 (Int Overflow lead to Heap OverFlow in exif_thumbnail_extract of exif.c).
  • Fixed bug #76557 (heap-buffer-overflow (READ of size 48) while reading exif data).

FPM

  • Fixed bug #73342 (Vulnerability in php-fpm by changing stdin to non-blocking).

GMP

  • Fixed bug #74670 (Integer Underflow when unserializing GMP and possible other classes).

intl

  • Fixed bug #76556 (get_debug_info handler for BreakIterator shows wrong type).

mbstring

  • Fixed bug #76532 (Integer overflow and excessive memory usage in mb_strimwidth).

Opcache

  • Fixed bug #76477 (Opcache causes empty return value).

PGSQL

  • Fixed bug #76548 (pg_fetch_result did not fetch the next row).

phpdbg

  • Fix arginfo wrt. optional/required parameters.

Reflection

  • Fixed bug #76536 (PHP crashes with core dump when throwing exception in error handler).
  • Fixed bug #75231 (ReflectionProperty#getValue() incorrectly works with inherited classes).

Standard

  • Fixed bug #76505 (array_merge_recursive() is duplicating sub-array keys).
  • Fixed bug #71848 (getimagesize with $imageinfo returns false).

Win32

  • Fixed bug #76459 (windows linkinfo lacks openbasedir check).

ZIP

  • Fixed bug #76461 (OPSYS_Z_CPM defined instead of OPSYS_CPM).

Commit List

Anatol Belski

Christoph M. Becker

  • Fix #76409: heap use after free in _php_stream_free in 3fdde65617
  • Fix arginfo wrt. optional/required parameters in 6b5597f7d8
  • Fix #71848: getimagesize with $imageinfo returns false in ae04110032
  • Fix #76556: get_debug_info handler for BreakIterator shows wrong type in 1118fca75d
  • Make newly introduced bug76556.phpt more resilient in a72bab1b9a

David Carlier

  • cast to int to disable compilation warnings in ad52ec3db8

Dmitry Stogov

Jakub Zelenka

  • Enable IPv6 in Travis in f9d1d1f36f
  • Rewrite FPM tests in ea592e6b6c
  • Port FPM test 023 and 024 to the new FPM testing in dd622f9ca9
  • Make code in openssl ext tests more consistent in 3c42f64e6e
  • Use unix NL in all openssl ext tests in b20bcbc363
  • Make new openssl ext tests in 7.2 consitent in d95ee27551

Joe Watkins

Johannes Schlüter

Keyur Govande

Marcus Schwarz

Nikita Popov

Pedro Magalhães

  • Fix #76300 - Dont attempt to change visibility of a parent private in 13e9a471d7

Remi Collet

Sara Golemon

Stanislav Malyshev

  • ICU 59+ requires C++11 and errors out without the option in 5dd1ef90ca
  • Revert "ICU 59+ requires C++11 and errors out without the option" in bcf2e10ae7
  • Fix test in 919021b23e

Xinchen Hui

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.