PHP 7.2 reached EOL on , and all releases of this version no longer receive security or bug fixes. Using PHP 7.2.0RC1 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.0RC1 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-7.2.0RC1
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.0RC1-x64NTS.zip (23.81 MiB)
php-7.2.0RC1-x86NTS.zip (21.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.0RC1-x64TS.zip (23.90 MiB)
php-7.2.0RC1-x86TS.zip (21.95 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.0RC1-cli-alpine
Debian-based: More compatible with other components, complete, and are widely used.
docker pull php:7.2.0RC1-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.0RC1-fpm-alpine
Debian-based ZTS Apache: Includes Apache web server integrating PHP as an Apache module.
docker pull php:7.2.0RC1-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.0RC1-fpm
Commit List
Anatol Belski
- Add dump env target in e7f4e67155
- Fix phpize exit status in 065551bc9c
- Fix skipifs in f1c664d379
- Fix .pgd name for ts build in ba59b6f11b
- Correct default value in 5b4b19981c
- Switch to non deprecated PGO options in 99ca99f079
- Enable PGO for Opcache in a454e38b7c
- update libs versions in 55db2c31cd
- Move to next bin SDK version for AppVeyor in 0966f9de41
Andrea Faulds
- Fixed bug #75097 (gethostname fails if your host name is 64 chars long) in 61538ebadc
- Retroactively correct NEWS omission in 799b52e87f
Christoph M. Becker
- Fixed bug #75111 (Memory disclosure or DoS via crafted .bmp image) in 5cd348c1d6
- Update to SQLite 3.20.1 in 3a2ad5b2c5
- Fixed bug #75124 (gdImageGrayScale() may produce colors) in 499f5480f1
David Carlier
- Sync
strlcat()
implementation in 24c0a17d78
Derick Rethans
- Upgrade timelib to 2017.05beta7 in bdd56f3107
- Merged PHP-7.0 by hand due to conflicts in 584db6f38f
- Remove removed header files from configuration files in 3df753c6ca
- Added timelib version to
phpinfo()
in 7829f9b1d2 - Fixed stupid test in 5d2c303438
- Revert "Remove removed header files from configuration files." in 8af70958fc
- Revert "Upgrade timelib to 2017.05beta7" in 60a6feed07
- Fixed 32-bit tests as well in 43c78b2422
- Do the revert properly, and put back fraction support in 7.1 in 7121b8d0a2
Dmitry Stogov
- Skip 64-bit related test in 0f3e01f5cc
- Made test 32/64-bit independent in 3bc1226804
- Fixed possible incorrect result of type verification in b096eacdd1
- Added few more jump threading optimisation patterns in db2807e4d2
- More accurate reference counting inference in 3866c1699e
- Fixed bug #75089 (
preg_grep()
is not reporting PREG_BAD_UTF8_ERROR after first input string) in ef90e37bd1
Frank Denis
- sodium ext: If
sodium_init()
returns 1, this is fine in 3fff74aab5 - sodium ext: Constants were renamed SODIUM_* in 271f0c4f90
- sodium ext: sync
sodium_crypto_kdf_derive_from_key()
with the standalone ext in a966d21aa8 - sodium ext: restore
sodium_remove_param_values_from_backtrace()
call in cf6f25bd37 - sodium ext: add bindings for
sodium_pad()
andsodium_unpad()
in 3691f36913 - sodium ext: if it's a length, call it "length"! in 48907e57ff
Ingmar Runge
- Fixed bug #74631 (PDO_PCO with PHP-FPM: OCI environment initialized before PHP-FPM sets it up) in 079bc324cd
Joe Watkins
- bump versions in 5b02d10584
John Boehr
- Fix issues with phpt and EXTENSION on windows (BUG 75042) in 59558ffd96
- Fix issues with phpt and EXTENSION on windows (BUG 75042) in 71b12940d0
Remi Collet
- cleanup in 01735f4d9f
- Fixed bug #75093 OpenSSL support not detected in a7594cb74f
- NEWS in b28912b0f7
- NEWS in de0b816b49
- NEWS in debbaba93f
- timelib now have a function for this, use it in f4792750a5
- From documentation, only the sign of returned value is relevant in b7e96f8e0e
- Switch from curl-config to pkg-config for curl extension in b8c6ce91b2
- NEWS in df7f2a5df3
- Improve pkg-config usage in cc577749a8
- Update versions for PHP 7.2.0RC1 in 9cb9db4eed
Sammy Kaye Powers
- Change
zend_parse_parameters()
tozend_parse_parameters_throw()
inext/sodium
in 0591fe2494 - Remove param values from backtrace in exception thrown from ZPP throw in e8f552aeba
- Fix constant references in error messages in
ext/sodium
in 56a999885a
Thomas Punt
- Fixed bug #75090 in be9edd83c2
Tianfang Yang
- Update NEWS in 1b8a71e740
- Update NEWS in 708349eeac
Xinchen Hui
- Fixed type-infer on
ZEND_FETCH_DIM_FUNC_ARG
in 30fb70dd25 - Fixed type-info for
ZEND_FETCH_DIIM_UNSET
in ea0df07398 - Fixed RC1 Hanlding in 4b6345a3ae
- Fixed for RESOURCE too in 2e002eaf70
- Fixed type-infer in ee26c1efbc
- Attempt to fix unstable test in ccab684d9f