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 (
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.5-x64NTS.zip (24.56 MiB)
php-7.2.5-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.5-x64TS.zip (24.70 MiB)
php-7.2.5-x86TS.zip (22.96 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.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
- Fixed bug #76129 (fix for CVE-2018-5712 may not be complete).
phpdbg
- Fixed bug #76143 (Memory corruption: arbitrary NUL overwrite).
SPL
- Fixed bug #76131 (mismatch arginfo for splarray constructor).
standard
Commit List
Anatol Belski
- Upgrade binary SDK version for AppVeyor in 77c202a2e6
- Fix stack use after scope in 7bcd55c264
- Reduce var scope in efd0e7222b
- Sync test with newer output in dfc07f038b
- Update SDK version for AppVeyor in 6c30014600
- Sync version for VC++ 15.7 in 84f565ec71
- Fix phpize build when DEFINE() is involved in 5b2c30d7e6
- 7.0.30 next in 48f835efbf
- Update libs_versions.txt in cdf72523f3
- Fixed bug #76153 Intl compilation fails with icu4c 61.1 in 710284cbc4
- Adjust tests for ICU 61.1 compatibility in 398f56dbc8
- Update binary SDK version for AppVeyor in e324f82d3c
- Fix clang build, ref buf #76153 in 8b104d7893
- Fix shared
ext/intl
compilation in 2bd299f731 - Sync fix for bug #72498 for 32-bit in 821f13fd79
- Rename var in ed5aabe8b7
- Group common flags in 09d7ffabcd
atvoicu
- Add missing skip prefix for some
SKIPIF
messages in 17ed2f21cf
Christoph M. Becker
- Fix #76088: ODBC functions are not available by default on Windows in cab354debd
- Fix #75944: Wrong cp1251 detection in 47461368ca
- Fix #76113: mbstring does not build with Oniguruma 6.8.1 in 4072b27870
- Fix #52070:
imagedashedline()
- dashed line sometimes is not visible in 9c37d95627
Derick Rethans
- Updated to version 2018.4 (2018d) in 869ca9b733
- Empty merge in ab5dcc83a1
- Updated to version 2018.4 (2018d) in c72c4c5271
Dmitry Stogov
- Fixed use-after-free in b6a41ad5ba
- Fixed user-opcode support in 975d144027
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 toopen_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
- Do not set PR_SET_DUMPABLE by default in d20bebfe13
- Do not set PR_SET_DUMPABLE by default in 276d19feaa
- Prevent modifying of getenv result in 0be5b9e6b0
- Update NEWS with FPM fixes in 2688023c7f
Joe Watkins
- bump versions in d2b47e8065
Michael Heimpold
- Fixed bug #75722: Rework valgrind detection in 25ba60b147
Nikita Popov
- Followup fix for bug #75729 in 3306577797
Rasmus Lerdorf
- Better explanation for the opcache.max_wasted_percentage ini setting in aaae3637e0
Remi Collet
- next is 7.2.5 in d660d6d31b
- add NEWS entries in ac0f7f7342
- clean in 4bd28cf296
- Update versions for PHP 7.2.5 in ba2fe0c96b
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
- Fixed #75996: Add the right urls to the header of mt_rand in ac4d9fd055
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
- Fixed bug #76094 (Access violation when using opcache) in 4758164ac5
- Fixed bug #76143 (Memory corruption: arbitrary NUL overwrite) in 8cfb648761
- Update NEWS in 22a8ea2a0a