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

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

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



  • Fixed bug #79595 (zend_init_fpu() alters FPU precision).
  • Fixed bug #79650 (php-win.exe 100% cpu lockup).
  • Fixed bug #79668 (get_defined_functions(true) may miss functions).
  • Fixed bug #79683 (Fake reflection scope affects __toString()).
  • Fixed possibly unsupported timercmp() usage.


  • Fixed bug #79687 (Sony picture - PHP Warning - Make, Model, MakerNotes).


  • Fixed bug #79681 (mime_content_type/finfo returning incorrect mimetype).


  • Fixed bug #73527 (Invalid memory access in php_filter_strip).


  • Fixed bug #79676 (imagescale adds black border with IMG_BICUBIC).


  • Fixed bug #62890 (default_socket_timeout=-1 causes connection to timeout).


  • Fixed bug #79664 (PDOStatement::getColumnMeta fails on empty result set).


  • Fixed bug #73926 (phpdbg will not accept input on restart execution).
  • Fixed bug #73927 (phpdbg fails with windows error prompt at "watch array").
  • Fixed several mostly Windows related phpdbg bugs.


  • Fixed bug #79710 (Reproducible segfault in error_handler during GC involved an SplFileObject).


  • Fixed bug #74267 (segfault with streams and invalid data).
  • Fixed bug #79579 (ZTS build of PHP 7.3.17 doesn't handle ERANGE for posix_getgrgid and others).

Commit List

Anatol Belski

  • sqlite3: Fix possible use after free in 2fd278bc21
  • SplHeap: Avoid memcpy on overlapping pointer in afe14236e3

Böszörményi Zoltán

Christoph M. Becker

Derick Rethans

  • This bug fix was cherry picked into 7.4.6 in 46d88a49cc
  • Add (expected) release date, and new header for 7.4.8 in c6fc400e8b
  • Turn into marker in 8e939fd055
  • Revert "Partial fixed bug #79649 (Altering disable_functions from module init corrupts memory)" in 66996b2df0
  • Update versions for PHP 7.4.8 in da4a40646a

Dmitry Stogov

  • Fixed possible usage of uninitialized value in 1f521a0b23

Jelle van der Waa

  • Allow defining of uname value for reproducible builds in d21b1c5679

Nathan Porter

  • Respect --program-prefix/suffix when installing phar in ca7dcb88f3

Nikita Popov

Remi Collet


  • mysqlnd: Remove unnecessary check for HAVE_ZLIB in a230717fbb

Xinchen Hui

  • Partial fixed bug #79649 (Altering disable_functions from module init corrupts memory) in a297c09da5
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.