PHP 7.4.20: Downloads, Changelog, News

Release Information

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

PHP 7.4 reached EOL on , and all releases of this version no longer receive security or bug fixes. Using PHP 7.4.20 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.20 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-7.4.20
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
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.20-cli-alpine

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

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

ChangeLog

Core

  • Fixed bug #80929 (Method name corruption related to repeated calls to call_user_func_array).
  • Fixed bug #80960 (opendir() warning wrong info when failed on Windows).
  • Fixed bug #67792 (HTTP Authorization schemes are treated as case-sensitive).
  • Fixed bug #80972 (Memory exhaustion on invalid string offset).

FPM

  • Fixed bug #65800 (Events port mechanism).

FTP

  • Fixed bug #80901 (Info leak in ftp extension).
  • Fixed bug #79100 (Wrong FTP error messages).

GD

  • Fixed bug #81032 (GD install is affected by external libgd installation).

MBString

  • Fixed bug #81011 (mb_convert_encoding removes references from arrays).

ODBC

  • Fixed bug #80460 (ODBC doesn't account for SQL_NO_TOTAL indicator).

PDO_MySQL

  • Fixed bug #81037 (PDO discards error message text from prepared statement).

PDO_ODBC

  • Fixed bug #44643 (bound parameters ignore explicit type definitions).

pgsql

  • Fixed php_pgsql_fd_cast() wrt. php_stream_can_cast().

SPL

  • Fixed bug #80933 (SplFileObject::DROP_NEW_LINE is broken for NUL and CR).

Opcache

  • Fixed bug #80900 (switch statement behavior inside function).
  • Fixed bug #81015 (Opcache optimization assumes wrong part of ternary operator in if-condition).

XMLReader

  • Fixed bug #73246 (XMLReader: encoding length not checked).

Zip

  • Fixed bug #80863 (ZipArchive::extractTo() ignores references).

Commit List

Christoph M. Becker

David Carlier

  • Fix return type of sparc atomic helper in 5ccb5fd91e

David Rans

  • PHPDBG: fix bug parsing 3-word opcodes in 054fad6d63

Derick Rethans

Flavio Heleno

  • Fix #81032: GD install is affected by external libgd installation in 28e7addb9d

George Peter Banyard

Joe Watkins

Kamil Tekiela

Matteo Beccati

  • Revert "Fix #80892: PDO::PARAM_INT is treated the same as PDO::PARAM_STR" in b8e49fe872

Nikita Popov

Petr Sumbera

  • php-fpm: fix Solaris port events.mechanism in 04078a597c

Stanislav Malyshev

  • Revert "Fix #80852: Stack-overflow when json_encode()'ing SimpleXMLElement" in 1b88c85cd8

twosee

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.

Support PHP.Watch — If you find the articles, version information, Codex, and other PHP.Watch contributions useful, consider supporting through GitHub Sponsors. Your sponsorship helps dedicate more time to creating valuable content and improving the PHP community. Together, we can keep the momentum going — thank you for your support!

Thanks to the highest tier sponsor: @TomasVotruba for your generous support to keep PHP.Watch moving 💜