PHP 7.2.5: Downloads, Changelog, News

Release Information

Release
7.2.5
PHP Version
PHP 7.2
Release Date
Release Type
Security Update
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.5 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.5 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-7.2.5
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.5-cli-alpine

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

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

ChangeLog

Core

  • Fixed bug #75722 (Convert valgrind detection to configure option).

Date

  • Fixed bug #76131 (mismatch arginfo for date_create).

Exif

  • Fixed bug #76130 (Heap Buffer Overflow (READ: 1786) in exif_iif_add_value).

FPM

  • Fixed bug #68440 (ERROR: failed to reload: execvp() failed: Argument list too long).
  • Fixed incorrect write to getenv result in FPM reload.

GD

  • Fixed bug #52070 (imagedashedline() - dashed line sometimes is not visible).

iconv

  • Fixed bug #76249 (stream filter convert.iconv leads to infinite loop on invalid sequence).

intl

  • Fixed bug #76153 (Intl compilation fails with icu4c 61.1).

ldap

  • Fixed bug #76248 (Malicious LDAP-Server Response causes Crash).

mbstring

  • Fixed bug #75944 (Wrong cp1251 detection).
  • Fixed bug #76113 (mbstring does not build with Oniguruma 6.8.1).

ODBC

  • Fixed bug #76088 (ODBC functions are not available by default on Windows).

Opcache

  • Fixed bug #76094 (Access violation when using opcache).

Phar

phpdbg

  • Fixed bug #76143 (Memory corruption: arbitrary NUL overwrite).

SPL

  • Fixed bug #76131 (mismatch arginfo for splarray constructor).

standard

  • Fixed bug #74139 (mail.add_x_header default inconsistent with docs).
  • Fixed bug #75996 (incorrect url in header for mt_rand).

Commit List

Anatol Belski

atvoicu

  • Add missing skip prefix for some SKIPIF messages in 17ed2f21cf

Christoph M. Becker

Derick Rethans

Dmitry Stogov

Gabriel Caruso

  • Fix #76131 some arginfo params are different from the documentation in 63934ea71e

George Wang

  • [BUGFIX] allow php_admin_value to override value set in php.ini without restriction, like adding an extra directory to open_basedir in 37e1d7c776
  • Updated LiteSpeed SAPI to 7.1 in 5b529bbc94

Jacob Hipps

  • Fix bug #68440: [sapi/fpm] use multiple FPM_SOCKETS env vars to prevent hitting MAX_ARG_STRLEN with a large number of pools in 77bf9245d2
  • 68440: ensure backwards compatibility with FPM_SOCKETS var; fix sockname size in 008eb1461c

Jakub Zelenka

Joe Watkins

Michael Heimpold

Nikita Popov

Rasmus Lerdorf

  • Better explanation for the opcache.max_wasted_percentage ini setting in aaae3637e0

Remi Collet

Stanislav Malyshev

  • Set tests exit status by default in f19c94b555
  • Set tests exit status by defaul - also in other instance in f46da1da7d

TATAR Balazs Janos

Thomas Petazzoni

  • main/php_ini.c: build empty php_load_zend_extension_cb() when !HAVE_LIBDL in 2842aa2a07

Tom Van Looy

  • Fix expat_compat.h path used in #include in 7f4327bc24

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.