PHP 7.2 reached EOL on , and all releases of this version no longer receive security or bug fixes. Using PHP 7.2.11 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.11 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-7.2.11
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.11-x64NTS.zip (24.31 MiB)
php-7.2.11-x86NTS.zip (22.7 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.11-x64TS.zip (24.45 MiB)
php-7.2.11-x86TS.zip (22.78 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.11-cli-alpine
Debian-based: More compatible with other components, complete, and are widely used.
docker pull php:7.2.11-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.11-fpm-alpine
Debian-based ZTS Apache: Includes Apache web server integrating PHP as an Apache module.
docker pull php:7.2.11-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.11-fpm
ChangeLog
Core
- Fixed bug #76800 (foreach inconsistent if array modified during loop).
- Fixed bug #76901 (method_exists on SPL iterator passthrough method corrupts memory).
CURL
- Fixed bug #76480 (Use
curl_multi_wait()
so that timeouts are respected).
iconv
- Fixed bug #66828 (iconv_mime_encode Q-encoding longer than it should be).
Opcache
- Fixed bug #76832 (ZendOPcache.MemoryBase periodically deleted by the OS).
- Fixed bug #76796 (Compile-time evaluation of disabled function in opcache causes segfault).
POSIX
- Fixed bug #75696 (posix_getgrnam fails to print details of group).
Reflection
- Fixed bug #74454 (Wrong exception being thrown when using ReflectionMethod).
Standard
- Fixed bug #73457 (Wrong error message when fopen FTP wrapped fails to open data connection).
- Fixed bug #74764 (Bindto IPv6 works with file_get_contents but fails with
stream_socket_client
). - Fixed bug #75533 (
array_reduce
is slow when $carry is large array).
XMLRPC
- Fixed bug #76886 (Can't build xmlrpc with expat).
Zlib
- Fixed bug #75273 (
php_zlib_inflate_filter()
may not update bytes_consumed).
Commit List
Anatol Belski
- Switch to staging series on AppVeyor in 58339f37e5
- Fix stack underflow in phar in 7fb7869e13
- Fixed bug #76832 ZendOPcache.MemoryBase periodically deleted by the OS in f26172f934
- Fixed bug #76833, backport change to
stream_socket_enable_crypto-win32.phpt
from 7.3 in 2476fb76a7 - Sync with recent changes to default libcurl build in 28c6125053
- 7.0.33 next in 1b89522974
- Update binary SDK version for AppVeyor in 49511a5132
- Improve error code matching in 19ab91781e
- Backport changes for OpenSSL 1.1.1 CI integration in 922f1a0dcf
- Sync version for vc++ 15.9 in d77ac7b3dc
- Add spectre switch for suitable vc14 versions in be02b2e8fd
Christopher Jones
- Remove trailing whitespace to help keep branches in sycn in eceb34073b
- Remove trailing whitespace to help keep branches in sync in a2c0f8722b
- Sync EXPECT usage with PHP-7.3 in bdd67d8175
- And strip trailing tabs too in 37652336c7
- Remove $id from phpinfo as already done in PHP-7.3 in 338802b543
- Make tests portable across PHP 7.x versions in 3d497f884f
- Backport master branch comment typo fix in 57eb25b393
- Make usable for PECL OCI8 release for PHP 7.x in 91954c24da
- Terminate smart string correctly in 9e56a3373e
Christoph M. Becker
- Fix #75696: posix_getgrnam fails to print details of group in 2677d43850
- Fix #74454: Wrong exception being thrown when using ReflectionMethod in c0a389a927
- Fix #75273:
php_zlib_inflate_filter()
may not update bytes_consumed in 90d863898c - Fix #66828: iconv_mime_encode Q-encoding longer than it should be in 9cbe1283f7
Dmitry Stogov
- Fixed incorrect
ZEND_ACC_ARENA_ALLOCATED
usage (it must be used only for internal functions) in 709e4e4f17 - Fixed reference-countingin ZTS build in 7fde2243a7
- Fixed bug #76800 (foreach inconsistent if array modified during loop) in 3bc4a63fc2
Ferenc Kovacs
- 5.6.39 will be the next in 81f23057dc
Jakub Zelenka
- Fix
stream_security_level.phpt
with OpenSSL 1.1.1 in cd0a37994e - Fix ssl stream reneg limit test to print only after first renegotiation in be50a72715
Manabu Matsui
- Fix bug #75533:
array_reduce
is slow when $carry is large array in ab6c45f524
Nikita Popov
- Fix parenthesis warning in f1f39d7ed7
- Revert all MySQL auth related changes in 03740ef7df
- Fixed bug #76796 in cfdd828163
- Fixed bug #76901 in 294fb83ee8
- Fix intermittent failures in
mysqli_stmt_bind_result_format.phpt
in c614dd677c - Fix getColumnMeta() test in 842bec5b3c
Peter Kokot
- Fix bug #75481: makedev warning in 870d893d0b
Pierrick Charron
- Fix 76480: Use
curl_multi_wait()
so that timeouts are respected in 3bb218a0a7
Remi Collet
- bump to 7.2.11-dev in 7353dae815
- fix double cast to int on 32-bit in c1729272b1
- add NEWS for 76582 in 609afc2992
Sara Golemon
- Prep for 7.1.23 in 5fee4e7108
- Fixed bug #76918 Repeated parameter name in arg info in b5d0eb44c0
- NEWS 7.2.11 in fafaf7eb42
- Update versions for PHP 7.2.11 in 3c927f3fd2
Stanislav Malyshev
- Fix for bug #76582 in 23b057742e
- Update NEWS in c1de84014d
Thomas Petazzoni
- Fix #76886: Can't build xmlrpc with expat in 3691b6d245
Ville Hukkamaki
- Fixed bug #73457 in 742783c3ee
- Fix bug #74764 and add a test case in 0f724453c0