PHP 7.2 reached EOL on , and all releases of this version no longer receive security or bug fixes. Using PHP 7.2.6 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.6 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-7.2.6
How to compile PHP
PHP can be compiled by setting up the dependencies, building the configure script (
Detailed articles on how to compile PHP are available for Ubuntu/Debian based systems and Fedora/RHEL based systems.
./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.
php-7.2.6-x64NTS.zip (24.57 MiB)
php-7.2.6-x86NTS.zip (22.89 MiB)
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.
php-7.2.6-x64TS.zip (24.71 MiB)
php-7.2.6-x86TS.zip (22.97 MiB)
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.6-cli-alpine
Debian-based: More compatible with other components, complete, and are widely used.
docker pull php:7.2.6-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.6-fpm-alpine
Debian-based ZTS Apache: Includes Apache web server integrating PHP as an Apache module.
docker pull php:7.2.6-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.6-fpm
ChangeLog
EXIF
- Fixed bug #76164 (exif_read_data
zend_mm_heap
corrupted).
FPM
- Fixed bug #76075
--with-fpm-acl
wrongly tries to find libacl on FreeBSD.
intl
- Fixed bug #74385 (
Locale::parseLocale()
broken with some arguments).
Opcache
- Fixed bug #76205 (PHP-FPM sporadic crash when running Infinitewp).
- Fixed bug #76275 (Assertion failure in file cache when unserializing empty try_catch_array).
- Fixed bug #76281 (Opcache causes incorrect "undefined variable" errors).
Reflection
- Fixed arginfo of
array_replace
(_recursive) andarray_merge
(_recursive).
Session
- Fixed bug #74892 (Url Rewriting (trans_sid) not working on urls that start with "#").
Commit List
Anatol Belski
- Fix memory leak in 5fe6d2134b
- Fix test portability in 4371af3e19
- 7.0.31 next in 090fef553d
- Fix shared
ext/zip
build with static dependency lib in afc3f6e8d5 - Fixed bug #74385
Locale::parseLocale()
broken with some arguments in f59b201f19 - Fix tests, ref bug #74385 in 6b85926104
Andrew Nester
- Fixed #74892 - Fixed URL rewriting for urls started with # in 68296c4055
Aron Rotteveel
- reset imap_errorstack after outputting it in 9090a21de0
Christoph M. Becker
- Fix #76164: exif_read_data
zend_mm_heap
corrupted in 281a1754b9 - Fix #76130: Heap Buffer Overflow (READ: 1786) in exif_iif_add_value in b4e4788c44
Derick Rethans
- Updated to version 2018.5 (2018e) in d057d767cc
- Empty merge in 348b5eb434
- Updated to version 2018.5 (2018e) in 1a25137a69
Dmitry Stogov
- Fixed bug #76205 (PHP-FPM sporadic crash when running Infinitewp) in c6ce03e45e
- Revert "Merge branch 'PHP-7.1' into PHP-7.2" in f8c1ce18e9
- Revert "Fixed bug #76205 (PHP-FPM sporadic crash when running Infinitewp)." in df4d0a73d2
- Fixed bug #76205 (PHP-FPM sporadic crash when running Infinitewp) in 5b3e1ded35
Ferenc Kovacs
- 5.6.37 will be next in fe3d53f443
Gabriel Caruso
- Fix arginfo for
array_replace
(_recursive) andarray_merge
(_recursive) in bb79e5764b
Jakub Zelenka
- Make openssl_error_string test work in OpenSSL 1.1.1 in 2ef8809ef3
Joe Watkins
- bump versions in 9322b43d65
Michał Górny
- Support using acl_ functions on BSD in 4ea7f3467d
Nikita Popov
- Fixed bug #76275 in 279ba58edb
- Fix bug #76281 in 6738d19fb8
Remi Collet
- next is 7.2.6 in 0d87a0ba57
- update NEWS for 7.2.5 in 42344cdc53
Ricardo F
- Update _bits_per_char to use with new PHP 7.1. or greater in ea642026eb
Sara Golemon
- Prep for 7.2.6 release in b364de85bf
- Update versions for PHP 7.2.6 in 3a599dccb1
Scott Arciszewski
- Update NEWS in 8677edb2dd
shiguangqi2008@gmail.com
- Fix memory leak in
zend_disable_class()
in 98ef183ed0
Stanislav Malyshev
- Fix bug #75981: prevent reading beyond buffer start in 36239fee36
- Add a bit of defensive conding for bug #76155 in ff83c00715
- Fix bug #76249 - fail on invalid sequences in 06d309fd7a
- Fix bug #76248 - Malicious LDAP-Server Response causes Crash in 49782c5499
- Fix test in 8dca5ae5ec
- Fix #76129 - remove more potential unfiltered outputs for phar in 6e64aba47f
- Fix tsrm_ls in ee76a5ae5a
Thomas Punt
- Fix memory leak when phpdbg fails to start up in 435e812c09
- Allocate default ini values into persistent memory in 2513da4b4c
- Fix potential memory leaks in sockets extension in 643c9c9b47
- The SO_PASSCRED constant is conditionally defined in 35713efa02
- Fix potential memory leak in curl extension in d3ae4fe2d2
- Fix potential memory leak in the enchant extension in 7ba70a5fed