PHP 7.2 reached EOL on , and all releases of this version no longer receive security or bug fixes. Using PHP 7.2.13 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.13 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-7.2.13
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.13-x64NTS.zip (24.52 MiB)
php-7.2.13-x86NTS.zip (22.9 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.13-x64TS.zip (24.66 MiB)
php-7.2.13-x86TS.zip (22.98 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.13-cli-alpine
Debian-based: More compatible with other components, complete, and are widely used.
docker pull php:7.2.13-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.13-fpm-alpine
Debian-based ZTS Apache: Includes Apache web server integrating PHP as an Apache module.
docker pull php:7.2.13-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.13-fpm
ChangeLog
ftp
- Fixed bug #77151 (
ftp_close()
: SSL_read on shutdown).
CLI
- Fixed bug #77111 (php-win.exe corrupts unicode symbols from cli parameters).
Fileinfo
- Fixed bug #77095 (slowness regression in 7.2/7.3 (compared to 7.1)).
iconv
- Fixed bug #77147 (Fixing 60494 ignored ICONV_MIME_DECODE_CONTINUE_ON_ERROR).
IMAP
- Fixed bug #77153 (imap_open allows to run arbitrary shell commands via mailbox parameter).
ODBC
- Fixed bug #77079 (odbc_fetch_object has incorrect type signature).
Opcache
- Fixed bug #77058 (Type inference in opcache causes side effects).
- Fixed bug #77092 (
array_diff_key()
- segmentation fault).
PGSQL
- Fixed bug #77047 (pg_convert has a broken regex for the 'TIME WITHOUT TIMEZONE' data type).
SOAP
- Fixed bug #50675 (SoapClient can't handle object references correctly).
- Fixed bug #76348 (WSDL_CACHE_MEMORY causes Segmentation fault).
- Fixed bug #77141 (Signedness issue in SOAP when precision=-1).
Sockets
- Fixed bug #67619 (Validate length on socket_write).
Commit List
Alexander Kurilo
- Regenerate certificates for openssl tests in 1549c6d26e
Anatol Belski
- Backport 7f5f4601 for 7.2 in c621182c42
- Declare function proto in header in 0e33c2822c
- Sync one more upstream libmagic piece in 22f71a66ec
- Rework magic data in 60adea5496
- Fix regex in 9d77bf0978
- Fork test with pcre.jit=0 in 3fd46e19ac
- Fixed bug #77111 php-win.exe corrupts unicode symbols from cli parameters in a7e9790969
- Fixed bug #77047 pg_convert has a broken regex for the 'TIME WITHOUT TIMEZONE' data type in 0434141ce9
Cameron Porter
- Fixed bug #50675 in db47e35373
Christoph M. Becker
- Fix #76348: WSDL_CACHE_MEMORY causes Segmentation fault in 625f614cb1
- Fix #77141: Signedness issue in SOAP when precision=-1 in f6079e3c56
- Fix #77147: Fix for 60494 ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR in a56cdd0a82
Derick Rethans
- Updated to version 2018.7 (2018g) in e58388ea6d
- Empty merge in fcefc28ce1
- Updated to version 2018.7 (2018g) in 10255a0cd9
Joe Watkins
- bump versions in 33fa02ea38
Jon Allen
- fix bug #77079 in 8775bead3a
Nikita Popov
- Improve "narrowing" error message in e7153e8a2f
- Fixed bug #77058 in f1ceec5533
- Fixed bug #77092 in 4daa413898
Remi Collet
- bump to 7.2.13-dev in 1d5baf167a
- Fix #77151
ftp_close()
: SSL_read on shutdown in d9afc2f662 - NEWS in 1adbf70e26
- NEWS in e7acb29eb0
Sara Golemon
- Update CREDITS for PHP 7.2.13RC1 in 90da8bf04c
- Prep for 7.2.13 final in 1d86b84d6b
- Update versions for PHP 7.2.13 in 5223e555e0
Stanislav Malyshev
- Disable rsh/ssh functionality in imap by default (bug #77153) in 752f0e6e2b
- Fix bug #77143 - add more checks to buffer reads in e7c8e6cde0
- Fix bug #77022 - use file mode or umask for new files in 8852e24a98
- Fix null pointer deref in qprint-encode filter (bug #77231) in 09cb571473
Thiago Carvalho
- Validate length on socket_write in ec2e7a2d48