PHP 7.2 reached EOL on , and all releases of this version no longer receive security or bug fixes. Using PHP 7.2.10 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.10 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-7.2.10
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.10-x64NTS.zip (24.33 MiB)
php-7.2.10-x86NTS.zip (22.72 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.10-x64TS.zip (24.47 MiB)
php-7.2.10-x86TS.zip (22.79 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.10-cli-alpine
Debian-based: More compatible with other components, complete, and are widely used.
docker pull php:7.2.10-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.10-fpm-alpine
Debian-based ZTS Apache: Includes Apache web server integrating PHP as an Apache module.
docker pull php:7.2.10-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.10-fpm
ChangeLog
Core
- Fixed bug #76754 (parent private constant in extends class memory leak).
- Fixed bug #72443 (Generate enabled extension).
- Fixed bug #75797 (Memory leak when using
class_alias()
in non-debug mode).
Apache2
- Fixed bug #76582 (Apache bucket brigade sometimes becomes invalid).
Bz2
- Fixed arginfo for bzcompress.
gettext
- Fixed bug #76517 (incorrect restoring of LDFLAGS).
iconv
- Fixed bug #68180 (iconv_mime_decode can return extra characters in a header).
- Fixed bug #63839 (iconv_mime_decode_headers function is skipping headers).
- Fixed bug #60494 (iconv_mime_decode does ignore special characters).
- Fixed bug #55146 (
iconv_mime_decode_headers()
skips some headers).
intl
- Fixed bug #74484 (
MessageFormatter::formatMessage
memory corruption with 11+ named placeholders).
libxml
- Fixed bug #76777 ("public id" parameter of libxml_set_external_entity_loader callback undefined).
mbstring
- Fixed bug #76704 (
mb_detect_order
return value varies based on argument type).
Opcache
- Fixed bug #76747 (Opcache treats path containing "test.pharma.tld" as a phar file).
OpenSSL
- Fixed bug #76705 (unusable ssl => peer_fingerprint in
stream_context_create()
).
phpdbg
- Fixed bug #76595 (phpdbg man page contains outdated information).
SPL
- Fixed bug #68825 (Exception in
DirectoryIterator::getLinkTarget()
). - Fixed bug #68175 (RegexIterator pregFlags are NULL instead of 0).
Standard
- Fixed bug #76778 (
array_reduce
leaks memory if callback throws exception).
zlib
Commit List
Anatol Belski
- Fix callbacks in 19592519c2
- Improve cleanup in 41c69766a4
- Fixed bug #74484
MessageFormatter::formatMessage
memory corruption in 45a05f3841 - Update binary SDK version for AppVeyor in 837ed71c65
- Use stable deps on AppVeyor for now in b0da1745be
Christoph M. Becker
- Fix #76704:
mb_detect_order
return value varies based on argument type in c00f5e6531 - Add regression test for bug #68175 in 4c448334bd
- Fix #76778:
array_reduce
leaks memory if callback throws exception in 70b2fca220 - Increase memory_limit to prevent test failures in 5fb01a3a42
- Fix #68825: Exception in
DirectoryIterator::getLinkTarget()
in 32a728d351 - Simplify regression test in 6644bd005f
- Fix #55146:
iconv_mime_decode_headers()
skips some headers in 6e1980e152 - Fix #63839: iconv_mime_decode_headers function is skipping headers in 8754d44167
- Fix #60494: iconv_mime_decode does ignore special characters in e29c946c29
- Fix #68180: iconv_mime_decode can return extra characters in a header in efb86aef12
Dylan K. Taylor
mkdist.php
: recursively check dll dependencies in b9bf9ddce6
Jakub Zelenka
- Fix bug #76705 (unusable ssl => peer_fingerprint in
stream_context_create()
) in 4c542e6c13
Jay Bonci
- Fix bug #65988: Zlib version check fails in c8a90606c1
Joe Watkins
- bump version in 74988eed99
Kevin Abel
- Fix bug 76595: Update phpdbg man page in 91996e7ee5
Massimiliano Braglia
- Fixed bug #75797 in 2527a0fcfd
Peter Kokot
- Fix bug #72443: Generate enabled extension in 45a3c0e596
- Fix bug #76709: Minimal required zlib library is 1.2.0.4 in a3e3d914ed
Remi Collet
- fix man page installation in 1f2f2c6b96
- add NEWS for 76582 in 4be8fdc548
- Update versions for PHP 7.2.10 in 00d2b7a3d2
Sara Golemon
- Roll NEWS for 7.2.10 in 0ba49597b9
sji
- Fixed incorrect restoring of LDFLAGS in 0f557756dd
Tim Siebels
- Fix #68175: RegexIterator pregFlags are NULL instead of 0 in 3257d22fea
Tyson Andre
- Fix arginfo for bzcompress in e20baee136
Ville Hukkamaki
- Fixed bug #76777 and added test in cf2fc66b02
Xinchen Hui
- Fixed bug #76747 (Opcache treats path containing "test.pharma.tld" as a phar file) in 8c92442b49
- Update NEWS in eb7fca9546
- Fixed bug #76754 (parent private constant in extends class memory leak) in 04c4854fdf
- Update NEWS in acd4264f7b