PHP 8.0.7: Downloads, Changelog, News

Release Information

PHP Version
PHP 8.0
Release Date
Release Type
Bug Fix Release
Release Status
EOL, Use PHP 8.0.30
Branch Status

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


Source Code

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

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

Debian-based ZTS Apache: Includes Apache web server integrating PHP as an Apache module.
docker pull php:8.0.7-apache

Debian-based NTS FPM: PHP-FPM, can be integrated with Nginx, Caddy, and other web servers over Fast CGI.
docker pull php:8.0.7-fpm



  • 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).


  • Fixed bug #65800 (Events port mechanism).


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


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


  • Fixed bug #81019 (Unable to clone NumberFormatter after failed parse()).


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


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


  • Fixed bug #81007 (JIT "not supported" on 32-bit x86 -- build problem?).
  • Fixed bug #81015 (Opcache optimization assumes wrong part of ternary operator in if-condition).
  • Fixed bug #81046 (Literal compaction merges non-equal related literals).


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


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


  • Fixed php_pgsql_fd_cast() wrt. php_stream_can_cast().


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


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


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

Commit List

Ben Ramsey

  • Add entries for log_errors_max_len INI directive removal in c2b5284734

Christoph M. Becker

David Carlier

  • Fix return type of sparc atomic helper in 5ccb5fd91e
  • opcache: more reliable way to get the current binary on solaris/illumos in d87d2f006c

David Rans

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

Derick Rethans

Dmitry Stogov

  • Fixed incorrect stack size calculation (sizeof(zval) == 16) in 6fa4493f7b
  • Fixed JIT on first function execution (opcache.jit=1215) with CALL VM in e96b984026

Flavio Heleno

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

Gabriel Caruso

George Peter Banyard

Joe Watkins

Kamil Tekiela

Levi Morrison

  • Fix function/file mixup in backtrace printing in 6fd13d0afd

Matteo Beccati

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

Michael Voříšek

  • Remove no longer used "log_errors_max_len" ini directive in GH-6838

Máté Kocsis

  • Fix return type of SessionHandler::read() in ffb1ff371c
  • Fix arginfo/ZPP mismatch for simplexml_import_dom in cb84e5c332
  • Fix pg_get_notify() parameter name in d1e590fe72
  • Fix the default value of $mode in PDOStatement::fetch*() in 30d3062c9b
  • Fix the signature of PDOStatement::fetchObject() in 068c8db276
  • Fix return type of php_user_filter::onCreate() in a3c38c2596
  • Fix return type of mysqli::init() in e8361eb0e3
  • Fix return type of UConverter::fromUCallback() and UConverter::toUCallback() in 54e2ef0b81
  • Fix some types in ext/oci8 in f0736631d9
  • Fix some nullable return types in ext/simplexml in eedc988a4e

Nikita Popov

Paragon Initiative Enterprises

  • Correct the argument names for ext/sodium functions in 0c57ebb116

Petr Sumbera

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

Sara Golemon

Stanislav Malyshev

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


Vincent JARDIN

  • openssl_pkcs7_read: input is data not filename in bb0107b63d
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.