PHP 7.4.13: 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.13 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.13 tag from the PHP Git repository.
git clone --depth 1 --branch php-7.4.13
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.13-cli-alpine

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

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



  • Fixed bug #80280 (ADD_EXTENSION_DEP() fails for ext/standard and ext/date).
  • Fixed bug #80258 (Windows Deduplication Enabled, randon permission errors).


  • Fixed bug #62474 (com_event_sink crashes on certain arguments).


  • Fixed bug #80268 (loadHTML() truncates at NUL bytes).


  • Fixed bug #79177 (FFI doesn't handle well PHP exceptions within callback).


  • Fixed bug #64076 (imap_sort() does not return FALSE on failure).
  • Fixed bug #76618 (segfault on imap_reopen).
  • Fixed bug #80239 (imap_rfc822_write_address() leaks memory).
  • Fixed minor regression caused by fixing bug #80220.
  • Fixed bug #80242 (imap_mail_compose() segfaults for multipart with rfc822).


  • Fixed bug #79375 (mysqli_store_result does not report error from lock wait timeout).
  • Fixed bug #76525 (mysqli::commit does not throw if MYSQLI_REPORT_ERROR enabled and mysqlnd used).
  • Fixed bug #72413 (mysqlnd segfault (fetch_row second parameter typemismatch)).


  • Fixed bug #44618 (Fetching may rely on uninitialized data).


  • Fixed bug #79643 (PHP with Opcache crashes when a file with specific name is included).
  • Fixed run-time binding of preloaded dynamically declared function.


  • Fixed bug #79983 (openssl_encrypt / openssl_decrypt fail with OCB mode).


  • Fixed bug #66528 (No PDOException or errorCode if database becomes unavailable before PDO::commit).
  • Fixed bug #65825 (PDOStatement::fetch() does not throw exception on broken server connection).


  • Fixed bug #70461 (disable md5 code when it is not supported in net-snmp).


  • Fixed bug #80266 (parse_url silently drops port number 0).

Commit List

Alexander M. Turek

Christoph M. Becker

Derick Rethans


Dmitry Stogov

  • Fixed run-time binding of preloaded dynamically declared function in 68f80be9d1

George Peter Banyard

Nikita Popov


  • Fix bug #79643: Invalid memory read when opcache.interned_strings_buffer is 0 in d134c0ac05
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.