PHP 7.2 reached EOL on , and all releases of this version no longer receive security or bug fixes. Using PHP 7.2.0beta3 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.0beta3 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-7.2.0beta3
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.0beta3-x64NTS.zip (23.82 MiB)
php-7.2.0beta3-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.0beta3-x64TS.zip (23.90 MiB)
php-7.2.0beta3-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.0beta3-cli-alpine
Debian-based: More compatible with other components, complete, and are widely used.
docker pull php:7.2.0beta3-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.0beta3-fpm-alpine
Debian-based ZTS Apache: Includes Apache web server integrating PHP as an Apache module.
docker pull php:7.2.0beta3-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.0beta3-fpm
Commit List
Anatol Belski
- update NEWS in 9ba2cfd33e
- Rework automatic interactive cli activation in 93c2c56a1b
- Increase expected timing on Travis in 9689796c10
- fix test target for phpize in d058e30917
- Unify EOL in 4c9fe5a490
- Sync makefile options for phpize in 075986f214
- Remove mistakingly added line in afb20f4895
- Fixed bug #75063 in 3069ad8dd1
- fix test cleanup in 71fd58652f
- Test cleanup improvements, files might be locked in the test process in ab07265573
- move dev to 7.0.24 in 3af6201224
Andrea Faulds
- Fix bug #74725 (html_errors=1 breaks unhandled exceptions) in b59718bdc4
Andreas Treichel
- Bug #74975: Different serialization for classes in c2b8066efb
- Add
ftp_append
to create a new file or append data to an existing file (RFC959) in 29e4d4eee6
Andrey Hristov
- Add new enum options defined in MySQL 5.7 in f589e5c791
Christoph M. Becker
- Update to SQLite 3.20.0 in fe107cce45
- Update NEWS in 43e7656241
- Skip this test if
ext/session
is not available in 472b25921e - Fixed bug #73793 (WDDX uses wrong decimal seperator) in f64be0b013
clwu
- fixed #endif comments in b2934d2612
Côme Chilliet
- Added controls parameters to
ldap_exop
so that control support can be added later in aa0e402acf
Darek Slusarczyk
- JSON: fix config.w32 / Install headers on windows in 618dcd6520
Derick Rethans
- Fixed bug #75002 Null Pointer Dereference in timelib_time_clone in b112d09013
Dmitry Stogov
- Revert "Fixed live_range removing (bug can be triggred by JIT)" in 2fab62271a
- Fixed attempt to free invalid structure (result of ROPE_INIT is not a zval) in cd6893aed1
- Order live ranges according to "start" position in a80e462fbd
- Fixed test in 18f567a3b4
- Fixed removing dead live ranges in df5104bfc9
Fabien Villepinte
- Fix test
transliterator_create_inverse_basic.phpt
in 15abb2b56e - Fix Bug #75001: Wrong reflection on
mb_eregi_replace
in 2cc1cbf2f4
Frank Denis
- sodium ext: Add missing "return" statements after
zend_throw_exception()
in 3140d40421 - sodium ext: long ->
zend_long
in 631fc3c9c1 - sodium ext: The default password hashing function is not supposed to be Argon2i in a0d1e0915c
- Sodium ext: Isolate a return statement for consistency in 596a892c5e
- sodium ext: No need for #ifdef crypto_aead_chacha20poly1305IETF in 03314e3f69
- sodium ext: Use ietf vs IETF consistently in ef0bd7b215
George Wang
- take care of compile warnings in e78712791d
Jakub Zelenka
- Fix segfault in json ignoring of invalid UTF8 in 41d7621f48
- Fix possible overflow in json scanner utf8_invalid_count in f5b4cb7130
- Reset utf8_invalid in json scanner in e53dd027c5
Nikita Popov
- Revert/fix
mb_substitute_character()
codepoint checks in a8a9e93e9a - Revert/fix substitution character fallback in fb9bf5b64b
- Always use Unicode codepoints in
mb_ord()
andmb_chr()
in 41e9ba6333 - Return false on invalid codepoint in
mb_chr()
in e53162a32b - Also check for invalid codepoints in
mb_ord()
in 353f7bf461 - Check for empty string in
mb_ord()
in 6b73b2d6eb - Fixed bug #74103 and bug #75054 in 1a23ebc1ff
- Note deprecation of $errcontext in b202587e09
Remi Collet
- fix build with old system libsqlite (sqlite3_errstr may be missing) in 666cb6c802
- fix build with old system libsqlite (sqlite3_close_v2 may be missing) in afdf7519d1
- use AC_DEFINE + win32 in 159e5c1048
- win32 for pdo_sqlite in 17bb8d575a
- Update versions for PHP 7.2.0beta3 in 316802d8f2
Tianfang Yang
- Sync OCI8 on PHP 7.x branches in f555224743
- Prepare for PECL release in 259477826c
Tyson Andre
- Implement spl_object_id(object $x) : int in 5097e2ee13
Xinchen Hui
- Fixed bug #75049 (spl_autoload_unregister can't handle spl_autoload_functions results) in b06f8cb58b
- Update NEWS in 46ecda76ba
- Update NEWs in f7cf839213
- Fixed type infer for FUNC_GET_ARGS in 4375a6c5cd
- Fixed live_range removing (bug can be triggred by JIT) in aecf996510
- Revert "Fixed live_range removing (bug can be triggred by JIT)" in 6445b3a68f
- Fixed bug #75075 (unpack with X* causes infinity loop) in d8c80af71e
- Update NEWS in 6275825c68
- Update NEWS in 6b77792dc2