PHP 7.4 reached EOL on , and all releases of this version no longer receive security or bug fixes. Using PHP 7.4.27 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.27 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-7.4.27
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
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.27-cli-alpine
Debian-based: More compatible with other components, complete, and are widely used.
docker pull php:7.4.27-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.27-fpm-alpine
Debian-based ZTS Apache: Includes Apache web server integrating PHP as an Apache module.
docker pull php:7.4.27-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.27-fpm
ChangeLog
Core
- Fixed bug #81626 (Error on use static:: in __сallStatic() wrapped to
Closure::fromCallable()
).
FPM
- Fixed bug #81513 (Future possibility for heap overflow in FPM zlog).
GD
- Fixed bug #71316 (libpng warning from imagecreatefromstring).
OpenSSL
- Fixed bug #75725 (./configure: detecting RAND_egd).
PCRE
- Fixed bug #74604 (Out of bounds in
php_pcre_replace_impl
).
Standard
Commit List
Christoph M. Becker
- Fix #71316: libpng warning from imagecreatefromstring in 1919c4b44d
- Fix #79971: special character is breaking the path in xml function in f15f8fc573
- 7.3.34 might be next in 7d92153182
- Fix #81659:
stream_get_contents()
may unnecessarily overallocate in 31749aac62 - Fix #74604: Out of bounds in
php_pcre_replace_impl
in 712fc54e85
Derick Rethans
- Prepare for 7.4.27 in 05b212bb3d
- Updated to version 2021.5 (2021e) in a93ff1df20
- Empty merge in 5715a5e570
- Updated to version 2021.5 (2021e) in 7c9c722b53
- Revert "Updated to version 2021.5 (2021e)" in 88f99c9c1d
- Prepare for 7.4.27 in 6fa1495433
- Update versions for PHP 7.4.27 in 96f753a2b5
George Peter Banyard
- Fix Bug #81588 TokyoCabinet driver leaks memory in 96dd310c54
Jakub Zelenka
- Fix bug #81513 (Future possibility for heap overflow in FPM zlog) in b2cf9b7ec7
Matt
- Fix bug #81618: Correct dns_get_record on FreeBSD in 45f52285f6
Nikita Popov
- Safely reassign array in
usort()
in 18a0d46a1b - Fixed bug #81626 in d26965b247
- Disable enchant on azure i386 in c2d6d837ca
Дилян Палаузов
- Fix #75725: ./configure: detecting RAND_egd in 60fe575ce3