PHP 7.4 reached EOL on , and all releases of this version no longer receive security or bug fixes. Using PHP 7.4.0beta2 is not recommended. PHP 7.4.33 is the latest version in the series.
Downloads
Source Code
Git Clone
Use Git to clone the 7.4.0beta2 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-7.4.0beta2
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.4.0beta2-x64NTS.zip (24.06 MiB)
php-7.4.0beta2-x86NTS.zip (22.46 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.4.0beta2-x64TS.zip (24.15 MiB)
php-7.4.0beta2-x86TS.zip (22.43 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.4.0beta2-cli-alpine
Debian-based: More compatible with other components, complete, and are widely used.
docker pull php:7.4.0beta2-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.4.0beta2-fpm-alpine
Debian-based ZTS Apache: Includes Apache web server integrating PHP as an Apache module.
docker pull php:7.4.0beta2-apache
Debian-based NTS FPM: PHP-FPM, can be integrated with Nginx, Caddy, and other web servers over Fast CGI.
docker pull php:7.4.0beta2-fpm
Commit List
Albert Casademont
- Fix bug #78326 in dc7aa22b18
Christoph M. Becker
- Remove duplication in e1c80d8ea7
- Fix #78342: Bus error in configure test for iconv //IGNORE in 30eb4b3563
- Document how to generate
ffi_parser.c
in 07286d2fb4 - Fix build for
--disable-signals
in 3429370d69 - Fix #77919: Potential UAF in Phar RSHUTDOWN in cd1101e8c8
- Fix #78338: Array cross-border reading in PCRE in 8947fd9e9f
- Fix tests in 053df4ac3b
- Fix 78213: Empty row pocket in 8af14024c2
- Remove
upgrade-pcre.php
script in b419b24ead - Fix #78179: MariaDB server version incorrectly detected in f9f4a68368
- Fix #78346: strip_tags no longer handling nested php tags in a87ef5e3dd
- Support calling convention specific function name mangling in 1ed9ebdea5
- Fix handling of succeeding
XFAIL
tests in 790b0b109a
David Carlier
- Fix bindpath mem leak in cgi in b05f364333
Derick Rethans
- Update versions for PHP 7.4.0beta2 in aeb198af40
Dmitry Stogov
- Avoid reloading in 6191df7553
- Delay dereference in 22e7ee3bb3
- Reordering in d7e8abb4aa
- Avoid over-specialization in 853b426ecf
- Fixed bug #78376 (Incorrect preloading of constant static properties) in 3fc0e2bb80
Levi Morrison
- Remove .post files only for passing tests in 5649267b25
Matteo Beccati
- Addded missing NEWS/UPGRADING entries for PDO "??" escape in 5d3d2b9827
Nikita Popov
- Remove
php_openssl_cipher_get_version()
in 626bc0e7cc - Mark _get_zval_ptr_deref as unused in 99d4b2bddc
- Throw notice for plain wrapper fread/fwrite errors in 1cbcf0f4f1
- Fixed bug #78340 in 9bfda013d3
- Fixed bug #78344 in 4ae807e84e
- Fixed bug #78333 in d142dfc93d
- Fixed bug #78333 in 68fd435ba8
- Fixed bug #78341 in 8e63bb5e46
- Fix Zend signals unblocking in 38f1288b64
- Don't explicitly install homebrew in 76c2bef9b0
- Use RW fetch for argument unpacking in 6913ec3282
- Fix FPM timer event re-registration in 0ed6c37140
- Handle RW UNPACK in inference in a9e332e027
- Revert "Use RW fetch for argument unpacking" in afd96392a3
- Add test for bug #78356 in bab8b3a8be
- Fix forwarding of extra args in opcache server tests in bf53d30fae
- Fixed bug #78363 in 85e8ccd55e
- Add test for bug #78363 in d89157cd67
Peter Kokot
- Remove outdated Libtool hack for macs in 793dfa91bb
- Remove AC_FPM_POLL in a3169964c0
- Bump
PHP_JSON_VERSION
toPHP_VERSION
in dee243d475 - Mention also API versions bumps in f1c4b48c84
- Fix #78348: Remove -lrt from pdo_sqlite.so in 09b108246a
- Update NEWS in 3e8774e57a
Remi Collet
- Fix build warnings in 946a1e4314
Sebastian Jennen
- file encoding cleanup: remove bom in win32 files in a2b2aaa67a
Stanislav Malyshev
- Fix bug #78222 (heap-buffer-overflow on exif_scan_thumbnail) in dea2989ab8
- Fix bug #78256 (heap-buffer-overflow on exif_process_user_comment) in aeb6d13185
- Update NEWS in 42e8b85d94
Theodore Brown
- Fix typos in UPGRADING and improve wording in a few places in 0e6e2297fc
Tyson Andre
- nit: Fix a typo in UPGRADING in 99fe0471ed