PHP 7.2.17: Downloads, Changelog, News

Release Information

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

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

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

ChangeLog

Core

  • Fixed bug #77738 (Nullptr deref in zend_compile_expr).
  • Fixed bug #77660 (Segmentation fault on break 2147483648).
  • Fixed bug #77652 (Anonymous classes can lose their interface information).
  • Fixed bug #77676 (Unable to run tests when building shared extension on AIX).

Bcmath

  • Fixed bug #77742 (bcpow() implementation related to gcc compiler optimization).

COM

  • Fixed bug #77578 (Crash when php unload).

Date

  • Fixed bug #50020 (DateInterval:createDateFromString() silently fails).
  • Fixed bug #75113 (Added DatePeriod::getRecurrences() method).

EXIF

FPM

  • Fixed bug #77677 (FPM fails to build on AIX due to missing WCOREDUMP).

GD

  • Fixed bug #77700 (Writing truecolor images as GIF ignores interlace flag).

MySQLi

  • Fixed bug #77597 (mysqli_fetch_field hangs scripts).

Opcache

  • Fixed bug #77691 (Opcache passes wrong value for inline array push assignments).
  • Fixed bug #77743 (Incorrect pi node insertion for jmpznz with identical successors).

phpdbg

  • Fixed bug #77767 (phpdbg break cmd aliases listed in help do not match actual aliases).

sodium

  • Fixed bug #77646 (sign_detached() strings not terminated).

SQLite3

  • Added sqlite3.defensive INI directive.

Standard

  • Fixed bug #77664 (Segmentation fault when using undefined constant in custom wrapper).
  • Fixed bug #77669 (Crash in extract() when overwriting extracted array).
  • Fixed bug #76717 (var_export() does not create a parsable value for PHP_INT_MIN).
  • Fixed bug #77765 (FTP stream wrapper should set the directory as executable).

Commit List

Abyr Valg

  • OpenSSL: Improve non-blocking eof test in 74888bede8

Anatol Belski

  • Sync with behavior change in OpenSSL 1.1.1b in 19a44ffb7b
  • Fix test portability in 040196972c
  • Sync with behavior change in OpenSSL 1.1.1b in 66bd861fcd
  • Die hard if mc.exe or mt.exe not found in 6814ba11bc

bohwaz

  • SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws in e93259bb23

Christopher Jones

  • Correct skipif use for OCI8 password tests in 7a9c20f3fd

Christoph M. Becker

Derick Rethans

Frank Denis

Ignace Nyamagana Butera

Jakub Zelenka

  • Use spaces instead of tabs in bug 77390 test in c814b34b1d
  • Print empty string in test for but 77390 just once in 01c00953ff
  • Speed up TLS wrapper tests when SSLv3 disabled in 769d2d9b62

Jay Satiro

  • curl_error: return an empty string if no error occurred in 5025eb05bd

Joe Watkins

Kevin Adler

Miriam Lauter

  • Fix #77767: phpdbg break command help message shows incorrect aliases in 09e522322a

Nikita Popov

Pedro Magalhães

Peter Kokot

Ralf Habacker

Remi Collet

Sara Golemon

Stanislav Malyshev

twosee

  • Don't disable object slot reuse while running shutdown functions in bd6eabd659

Vlad Temian

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.