PHP 7.2.1: Downloads, Changelog, News

Release Information

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

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

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

ChangeLog

Core

  • Fixed bug #75573 (Segmentation fault in 7.1.12 and 7.0.26).
  • Fixed bug #75384 (PHP seems incompatible with OneDrive files on demand).
  • Fixed bug #75525 (Access Violation in vcruntime140.dll).
  • Fixed bug #74862 (Unable to clone instance when private __clone defined).
  • Fixed bug #75074 (php-process crash when is_file() is used with strings longer 260 chars).
  • Fixed bug #69727 (Remove timestamps from build to make it reproducible).

CLI server

  • Fixed bug #73830 (Directory does not exist).

FPM

  • Fixed bug #64938 (libxml_disable_entity_loader setting is shared between requests).

GD

  • Fixed bug #75571 (Potential infinite loop in gdImageCreateFromGifCtx).

Opcache

  • Fixed bug #75608 ("Narrowing occurred during type inference" error).
  • Fixed bug #75579 (Interned strings buffer overflow may cause crash).
  • Fixed bug #75570 ("Narrowing occurred during type inference" error).
  • Fixed bug #75681 (Warning: Narrowing occurred during type inference, specific case).
  • Fixed bug #75556 (Invalid opcode 138/1/1).

PCRE

  • Fixed bug #74183 (preg_last_error not returning error code after error).

Phar

  • Fixed bug #74782 (remove file name from output to avoid XSS).

Standard

  • Fixed bug #75511 (fread not free unused buffer).
  • Fixed bug #75514 (mt_rand returns value outside [$min,$max]+ on 32-bit)
  • Fixed bug #75535 (Inappropriately parsing HTTP response leads to PHP segment fault).
  • Fixed bug #75409 (accept EFAULT in addition to ENOSYS as indicator that getrandom() is missing).
  • Fixed bug #73124 (php_ini_scanned_files() not reporting correctly).
  • Fixed bug #75574 (putenv does not work properly if parameter contains non-ASCII unicode character).

Zip

  • Fixed bug #75540 (Segfault with libzip 1.3.1).

Commit List

Anatol Belski

Andy Postnikov

  • Fix ZEND_SIGNED_MULTIPLY_LONG for AArch64 in d6d4f2a9b3

Christoph M. Becker

  • Fixed bug #75571: Potential infinite loop in gdImageCreateFromGifCtx in 3b50e238b2

DanielCiochiu

  • Fixed #74862: Unable to clone instance when private __clone defined in dba5a798a2

Derick Rethans

  • Fixed ext/date tests due to changes in Olson database in ca0bcf535c
  • Fixed ext/date tests due to changes in Olson database in ba9df1cff6
  • Revert "date module, replacing abs call with the llabs's like one due to bigger type" in 466a34d67c

Dmitry Stogov

Frank Denis

  • ext/sodium: pwhash: do not warn on low parameters in c219991c77
  • ext/sodium: throw exceptions instead of errors in c05cbd1e77
  • Revert "ext/sodium: throw exceptions instead of errors" in 31d221f9c7
  • Revert "ext/sodium: pwhash: do not warn on low parameters" in a1845b7fdb
  • Revert "Revert "ext/sodium: pwhash: do not warn on low parameters"" in fc8793499a

Joe Watkins

johnstevenson

krakjoe

Lior Kaplan

  • Define floorf if system doesn't have it (follow up for 22c48761) in 32e3d7b99e

Michael Heimpold

  • ext/imap/config.m4: fix ac_cv_u8t_decompose check in 1b10e6318b

Nester

Nikita Popov

Remi Collet

Sammy Kaye Powers

  • Fix bug 60471 by correctly identifying unused speculative preconnections in 3bc5c9f118
  • Update NEWS in a5206bc690

Sara Golemon

Scott

Sebastian Ramadan

  • Check for binary_location allocation failure in 7e0feb8856

Stanislav Malyshev

Tyson Andre

  • Fix typo in UPGRADING, should be oci_unregister_taf_callback in 9379b319b0

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.