PHP 7.2 reached EOL on , and all releases of this version no longer receive security or bug fixes. Using PHP 7.2.0RC4 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.0RC4 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-7.2.0RC4
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.0RC4-x64NTS.zip (23.65 MiB)
php-7.2.0RC4-x86NTS.zip (21.99 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.0RC4-x64TS.zip (23.79 MiB)
php-7.2.0RC4-x86TS.zip (22.06 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.0RC4-cli-alpine
Debian-based: More compatible with other components, complete, and are widely used.
docker pull php:7.2.0RC4-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.0RC4-fpm-alpine
Debian-based ZTS Apache: Includes Apache web server integrating PHP as an Apache module.
docker pull php:7.2.0RC4-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.0RC4-fpm
Commit List
Anatol Belski
- Fix
mkdir()
special case for path length < 260 and > 248 in 72c008f945 - Apply upstream patch for CVE-2016-1283 in d11fceab15
- Revert
--with-pcre-valgrind
by default in debug build in c3a1cc382a - Fix
ftok()
multibyte path support in dc3b9fe619 - Fix array access on undeclared properties in DateInterval in f48abfa902
- Move dev to 7.0.26 in 51658bac35
Andrea Faulds
- Fix bug #75290 in abefb6dfe7
Christoph M. Becker
- Fixed bug #75318 (The parameter of
UConverter::getAliases()
is not optional) in ec3d864784
Dmitry Stogov
- Fixed few ext/oci8 bugs in 9a01fe712a
- Fixed bug #75255 (Request hangs and not finish) in 1c68d63f35
- Restored code for BOOL variables in c8dea7ae1e
- Fixed compilation errors in 4d69587035
- Use dereferenced value in 24e595bf26
- Bumped ext/oci8 version in 1195de87ff
- Fixed rarely possible use-after-free in b6e34eaf04
Frank Denis
ext/sodium
: signing empty messages is fine in f64d00d684ext/sodium
: avoid tautological comparisons in 47d75394c9ext/sodium
: callcrypto_pwhash_argon2id()
explicitly if required in 33b4405d84ext/sodium
: fix pwhash_argon2i test in 0663ca135dext/sodium
: sort prototypes in 519ca1d53bext/sodium
: add arginfo definitions that will be required later in ad120c5ae9ext/sodium
: +base64 codecs (timing-safe) in e22094eb13ext/sodium
: addcrypto_pwhash_str_needs_rehash()
in 7d53e65125ext/sodium
: import bindings for secretstream in 72f7d0b184ext/sodium
: fix funky indent onzend_parse_parameters_throw()
calls in e4917d141aext/sodium
:zend_parse_parameters
->zend_parse_parameters_throw
in 0726d0be9fext/sodium
: explicitly include <string.h
> in 4d1707b764ext/sodium
: checks for crypto_box_SEALBYTES are not required in 986a9e879aext/sodium
: movepwhash_scrypt()
afterpwhash()
in 7fc396c15dext/sodium
: fix funky indentation in 40ab4c9d4eext/sodium
:sodium_compare()
is always available in 6de12a5f1eext/sodium
: import secretstream test in 1dc47286d1ext/sodium
: untab tests in 9d236d63f9- NEWS in a1c0824518
jhdxr
- fix bug #75222 DateInterval microseconds property always 0 in 7deb561f75
Mathieu CARBONNEAUX
- Fixed bug #75311 in 6b9ccda936
Nester
- Fixed #75220 - Segfault when calling is_callable on parent in a680d701ce
Peter Kokot
- Change EXTENSIONS file encoding from iso-8859-1 to utf-8 in e095e6db63
- Fix bug #75248 and #75251 in 6d0391b1a4
- Fix CGI m4 config message when CGI is disabled in 29e673f8ed
- Fix bug #75279 in 8d87f6f6dd
- Remove ident gitattribute for ext/zip/php_zip.c in 7b248a1b32
- Fix bug #74905 in 6d1dd8b0af
Rasmus Lerdorf
- Add line numbers to Optimizer debug output in ec3ea3081d
Remi Collet
- Fixed bug #75285i Broken build when system libpcre don't have jit support in 7c8357929c
- NEWS in 7e21f472c6
- Fixed bug #75303 sha3 hangs on bigendian in fa78afa112
- NEWS in 03aef5f65c
- Fix Bug #75284 sha3 is not supported on bigendian machine in d67873ec99
- NEWS in ca6d701994
- Update versions for PHP 7.2.0RC4 in eafc3a9a0f
Sara Golemon
- Fix word alignment on ILP64 in b5bc88c64e
- Guard against AI_NUMERICSERV not being defined in ec90310ea9
- Bugfix #74556
stream_socket_get_name()
returns null bytes on MacOS in 843e492c68
Viktor Szépe
- Typo in
status.h
tml in e995b7e475
Xinchen Hui
- Fixed bug #75267 (possible &/&& mixup) in 9fd33c1f20