PHP 7.2.2: Downloads, Changelog, News

Release Information

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

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

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

ChangeLog

Core

  • Fixed bug #75742 (potential memleak in internal classes's static members).
  • Fixed bug #75679 (Path 260 character problem).
  • Fixed bug #75614 (Some non-portable == in shell scripts).
  • Fixed bug #75786 (segfault when using spread operator on generator passed by reference).
  • Fixed bug #75799 (arg of get_defined_functions is optional).
  • Fixed bug #75396 (Exit inside generator finally results in fatal error).

FCGI

  • Fixed bug #75794 (getenv() crashes on Windows 7.2.1 when second parameter is false).

IMAP

  • Fixed bug #75774 (imap_append HeapCorruction).

Opcache

  • Fixed bug #75720 (File cache not populated after SHM runs full).
  • Fixed bug #75687 (var 8 (TMP) has array key type but not value type).
  • Fixed bug #75698 (Using @ crashes php7.2-fpm).
  • Fixed bug #75579 (Interned strings buffer overflow may cause crash).

PDO

  • Fixed bug #75616 (PDO extension doesn't allow to be built shared on Darwin).

PDO MySQL

  • Fixed bug #75615 (PDO Mysql module can't be built as module).

PGSQL

  • Fixed bug #75671 (pg_version() crashes when called on a connection to cockroach).

Readline

  • Fixed bug #75775 (readline_read_history segfaults with empty file).

SAPI

  • Fixed bug #75735 ([embed SAPI] Segmentation fault in sapi_register_post_entry).

SOAP

  • Fixed bug #70469 (SoapClient generates E_ERROR even if exceptions=1 is used).
  • Fixed bug #75502 (Segmentation fault in zend_string_release).

SPL

  • Fixed bug #75717 (RecursiveArrayIterator does not traverse arrays by reference).
  • Fixed bug #75242 (RecursiveArrayIterator doesn't have constants from parent class).
  • Fixed bug #73209 (RecursiveArrayIterator does not iterate object properties).

Standard

  • Fixed bug #75781 (substr_count incorrect result).
  • Fixed bug #75653 (array_values don't work on empty array).

Zip

  • Display headers (buildtime) and library (runtime) versions in phpinfo (with libzip >= 1.3.1).

Commit List

Anatol Belski

Anton Artamonov

Christoph M. Becker

  • Fixed bug #75571: Potential infinite loop in gdImageCreateFromGifCtx in 8d6e958867

Danilo Correa

  • Set default value for some properties in generate-phpt in 8c36588ee8

David Carlier

Dmitry Stogov

Evgeny Kalashnikov

  • Fix segfault. Compile param --with-tsrm-pth=yes in a46f952c0f

Ferenc Kovacs

Gabriel Caruso

Jakub Zelenka

  • Use seialize_precision instead of precision in all json tests in 2fd0b994dd

Jaromír Doleček

Jelle van der Waa

Levi Morrison

Lior Kaplan

  • Happy new year (Update copyright to 2018) in fbfdd1e1c4
  • Happy new year (Update copyright to 2018) in fc528afd2b

Nikita Popov

Pedro Magalhães

  • Fix #75607 - Check if existing static trait property is a ref before comparing in 83964e0468

Remi Collet

Riccardo Magliocchetti

  • fileinfo: fix misleading indentation in libmagic in e313daa598

Sara Golemon

Stanislav Malyshev

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.