PHP 7.2 reached EOL on , and all releases of this version no longer receive security or bug fixes. Using PHP 7.2.0RC5 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.0RC5 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-7.2.0RC5
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.0RC5-x64NTS.zip (23.63 MiB)
php-7.2.0RC5-x86NTS.zip (22 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.0RC5-x64TS.zip (23.76 MiB)
php-7.2.0RC5-x86TS.zip (22.07 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.0RC5-cli-alpine
Debian-based: More compatible with other components, complete, and are widely used.
docker pull php:7.2.0RC5-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.0RC5-fpm-alpine
Debian-based ZTS Apache: Includes Apache web server integrating PHP as an Apache module.
docker pull php:7.2.0RC5-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.0RC5-fpm
Commit List
Anatol Belski
- Fix re2c version detection in d1fc9b425f
- Fix path in makefile fragment in ad279bd180
- Fix datatype in 53169dc480
- Upgrade bundled libmagic to 5.31 in 08d8623dec
- Cleanup irrelevant info in 747f70ba82
- Put php-sdk-2.0.12beta1 for AppVeyor in d432bdb4ab
- It looks like i should've taken joint response on
ext/fileinfo
long ago in 23e97b0222 - Move to next binary SDK version for AppVeyor in 7778106f40
- One more folder to delete in AppVeyor image in 9891f11f84
- Backport 7ff13bad into 7.0+ in d82805f097
- Move to php-sdk-2.0.0beta3 for Appveyor in 5f7707cc8a
- Add skip for incompatible ICU version in 9071ff5c87
- Sync some tests for compat with ICU 58.1+ in 877e0b04bc
- Sync some tests for compat with ICU 58.1, PHP 7.1+ part in 26473523b0
- Fix version checks in tests in 7240d99838
- Fix version checks in tests in 2f444640b4
- Yet two wrong version checks in 65d4bd0311
- Version checks in 7027a1643f
- Further test fixes for ICU >= 58 in e02c41fc72
- Add test for newer ICU version in 2198d38cbc
- Fixed bug #73655
Spoofchecker::isSuspicious
behavior change due to upstream changes in f95063647c - Rework these new tests to match with diffs in ICU 58, 59 and upcoming 60 in 5d85d967bd
- Disable AppVeyor cache to unlock build in 0b71ae7a15
- Reenable AppVeyor cache in 44b3bc847b
- Add TZ and Unicode versions to intl MINFO in ff1b1c2761
- With ICU 58+, set the default restriction level to high in 1d781fbdb1
- Invalidate the whole cache when .appveyor.yml was changed in 25d40602cb
- Revert "Invalidate the whole cache when .appveyor.yml was changed" in eead6bf97a
- Rename build cache folder and separate sdk in 58dd892156
- Revert "Rename build cache folder and separate sdk" in c9a14b3aee
- Renaming cache folder is not a solution, too. Disable cache for now in 9f00e26008
- Fix uninitialized vars in 0e44c980f9
- Fix memory leak in 1cb2079d6c
- Fix mismatching alloc in fb0be397d0
- Fail hard when re2c is not found or the version requirement not met in 734c1f3cd4
- Update libmagic.patch in b4db9e9acc
- Apply upstream patch for CVE-2016-1283 in d37658be6c
- Fixed bug #75055 Out-Of-Bounds Read in
timelib_meridian()
in a7815e63bd - Fixed bug #72535 arcfour encryption stream filter crashes php in 37acebcc8c
- Fix test in 8ad71bc1d2
Bob Weinand
- Fixed bug #75363 (openssl_x509_parse leaks memory) in a55af1e271
Christoph M. Becker
- Fixed bug #75221 (Argon2i always throws NUL at the end) in 3f8961dfac
- Fixed bug #75365 (Enchant still reports version 1.1.0) in fb09021432
- Fixed bug #65148 (imagerotate may alter image dimensions) in 22c487616f
Derick Rethans
- Updated to version 2017.3 (2017c) in b2dfcb30eb
- Empty merge in eca1623f1b
- Updated to version 2017.3 (2017c) in b07b526b95
- Empty merge in 9290c826fa
- Updated to version 2017.3 (2017c) in 12e2fc4ab6
- Update
timezonemap.h
, which needs to match the bundled TZ db in 8e3260376c
Dmitry Stogov
- Fixed cleanup after optimization passes in 2929110ce1
- Fixed bug #75368 (mmap/munmap trashing on unlucky allocations) in 397f5cb687
- Prevent crash on
ext/pdo_mysql/tests/bug_39858.phpt
when built with libmysql in 8bfe748fb0
Fabien Villepinte
- Fix Bug #75299 Wrong reflection on inflate_init and inflate_add in 9d9873b3b5
Herman J. Radtke III
- Fix issue with zend signals in
php_request_startup
in bb1814b5c3
Jakub Zelenka
- Fix bug #68567 (JSON_PARTIAL_OUTPUT_ON_ERROR can result in JSON with null key) in 7c556c44a1
- Properly fix #75363 and address some other leaks with cert in 999fe36d40
- Fix clean up for openssl_pkcs12_export_to_file_basic in 34ed75fab7
Jelle van der Waa
- Fixed bug #53070 (enchant_broker_get_path crashes if no path is set) in 5acb8381b2
- openssl: Fix openssl_pkcs12_export extracerts test in 314bef5d03
Joe Watkins
- bump version in c2bfdf3712
Nester
- Fixed #75317 -
UConverter::setDestinationEncoding
changes source instead of destinatination in 80c3b078b8
Peter Kokot
- Use
PHP_VERSION
for exif in 74124de048 - Update .editorconfig with some more configs in aa143515d6
Ryan Volz
- Escape newline on curl config.m4 in 4e85dd0346
Sara Golemon
- Revert "Update NEWS for 7.2.0RC5" in 6c8a5817ec
- Revert "Update NEWS for PHP 7.2.0RC4" in 6c3c18723c
- Bugfix#75419 Fix clearing of default link during
pg_close()
in a645af4456 - NEWS entry for
pg_close()
fix in 9fca585488 - Decref default_link when clearing in 68e27b0763
- Update versions for PHP 7.2.0RC5 in fcbf63d808
Tianfang Yang
- Fixed valgrind issue in aad4544e95
- Fixed valgrind issue in f955cff54c
Xinchen Hui
- Fixed typo in e50cc4d3af
- Fixed bug #75370 (Webserver hangs on valid PHP text) in e4f7ff9c0f
- Added skipf in a52d1088e5
- Prevent from being affected by local php.ini in 21f049b45c
- Fixed bug #75357 (segfault loading WordPress wp-admin) in abbdbc21b0
- Fixed bug #75287 (Builtin webserver crash after chdir in a shutdown function) in 816758eda2
- Update NEWS in b9b2ae703c
- Update NEWS in 481a65a028
- Fixed bug (Phi sources removel) in 8e147f12b9
- Fixed bug #75378 ([REGRESSION]
IntlDateFormatter::parse()
does not change $position argument) in 863acd7753 - Try to fix test in 2f73f2436a
- Fixed test in 0292456262
- Fixed bug (assertion fails with extended info generated) in e53a9aaa4a