PHP 7.4.2: Downloads, Changelog, News

Release Information

PHP Version
PHP 7.4
Release Date
Release Type
Bug Fix Release
Release Status
EOL, Use PHP 7.4.33
Branch Status

PHP 7.4 reached EOL on , and all releases of this version no longer receive security or bug fixes. Using PHP 7.4.2 is not recommended. PHP 7.4.33 is the latest version in the series.


Source Code

Git Clone
Use Git to clone the 7.4.2 tag from the PHP Git repository.
git clone --depth 1 --branch php-7.4.2
How to compile PHP
PHP can be compiled by setting up the dependencies, building the configure script (./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.
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.

Docker/Podman Containers

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.2-cli-alpine

Debian-based: More compatible with other components, complete, and are widely used.
docker pull php:7.4.2-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.2-fpm-alpine

Debian-based ZTS Apache: Includes Apache web server integrating PHP as an Apache module.
docker pull php:7.4.2-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.2-fpm



  • Preloading support on Windows has been disabled.
  • Fixed bug #79022 (class_exists returns True for classes that are not ready to be used).
  • Fixed bug #78929 (plus signs in cookie values are converted to spaces).
  • Fixed bug #78973 (Destructor during CV freeing causes segfault if opline never saved).
  • Fixed bug #78776 (Abstract method implementation from trait does not check "static").
  • Fixed bug #78999 (Cycle leak when using function result as temporary).
  • Fixed bug #79008 (General performance regression with PHP 7.4 on Windows).
  • Fixed bug #79002 (Serializing uninitialized typed properties with __sleep makes unserialize throw).


  • Fixed bug #79033 (Curl timeout error with specific url and post).
  • Fixed bug #79063 (curl openssl does not respect PKG_CONFIG_PATH).


  • Fixed bug #79015 (undefined-behavior in php_date.c).


  • Fixed bug #78808 ([LMDB] MDB_MAP_FULL: Environment mapsize limit reached).


  • Fixed bug #79046 (NaN to int cast undefined behavior in exif).


  • Fixed bug #74170 (locale information change after mime_content_type).


  • Fixed bug #79067 (gdTransformAffineCopy() may use unitialized values).
  • Fixed bug #79068 (gdTransformAffineCopy() changes interpolation method).


  • Fixed bug #79029 (Use After Free's in XMLReader / XMLWriter).


  • Fixed bug #78961 (erroneous optimization of re-assigned $GLOBALS).
  • Fixed bug #78950 (Preloading trait method with static variables).
  • Fixed bug #78903 (Conflict in RTD key for closures results in crash).
  • Fixed bug #78986 (Opcache segfaults when inheriting ctor from immutable into mutable class).
  • Fixed bug #79040 (Warning Opcode handlers are unusable due to ASLR).
  • Fixed bug #79055 (Typed property become unknown with OPcache file cache).


  • Fixed bug #78402 (Converting null to string in error message is bad DX).


  • Fixed bug #78983 (pdo_pgsql config.w32 cannot find libpq-fe.h).
  • Fixed bug #78980 (pgsqlGetNotify() overlooks dead connection).
  • Fixed bug #78982 (pdo_pgsql returns dead persistent connection).


  • Fixed bug #79031 (Session unserialization problem).


  • Fixed bug #78538 (shmop memory leak).


  • Fixed bug #79056 (sqlite does not respect PKG_CONFIG_PATH during compilation).


  • Fixed bug #78976 (SplFileObject::fputcsv returns -1 on failure).


  • Fixed bug #79000 (Non-blocking socket stream reports EAGAIN as error).
  • Fixed bug #54298 (Using empty additional_headers adding extraneous CRLF).

Commit List

Adrian Verde

Christoph M. Becker

Derick Rethans

Dmitry Stogov

Fabien Villepinte

Kachalin Alexey

Nikita Popov

Remi Collet

SATO Kentaro

Sergei Turchanov

Stanislav Malyshev

Xinchen Hui

Subscribe to PHP.Watch newsletter for monthly updates

You will receive an email on last Wednesday of every month and on major PHP releases with new articles related to PHP, upcoming changes, new features and what's changing in the language. No marketing emails, no selling of your contacts, no click-tracking, and one-click instant unsubscribe from any email you receive.