PHP 8.0 is currently only receiving security fixes. PHP 8.0.26 is not the latest version in the series, and using this release is not recommended. PHP 8.0.30 is the latest in the series.
Downloads
Source Code
Git Clone
Use Git to clone the 8.0.26 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-8.0.26
How to compile PHP
PHP can be compiled by setting up the dependencies, building the configure script (
Detailed articles on how to compile PHP are available for Ubuntu/Debian based systems and Fedora/RHEL based systems.
./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.
php-8.0.26-x64NTS.zip (25.52 MiB)
php-8.0.26-x86NTS.zip (23.65 MiB)
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.
php-8.0.26-x64TS.zip (25.63 MiB)
php-8.0.26-x86TS.zip (23.64 MiB)
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:8.0.26-cli-alpine
Debian-based: More compatible with other components, complete, and are widely used.
docker pull php:8.0.26-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.26-fpm-alpine
Debian-based ZTS Apache: Includes Apache web server integrating PHP as an Apache module.
docker pull php:8.0.26-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.26-fpm
ChangeLog
CLI
- Fixed bug GH-9709 (Null pointer dereference with -w/-s options).
Core
- Fixed bug GH-9752 (Generator crashes when interrupted during argument evaluation with extra named params).
- Fixed bug GH-9801 (Generator crashes when memory limit is exceeded during initialization).
- Fixed potential NULL pointer dereference in Windows shm*() functions.
- Fixed bug GH-9750 (Generator memory leak when interrupted during argument evaluation.
Date
- Fixed bug GH-9763 (DateTimeZone ctr mishandles input and adds null byte if the argument is an offset larger than 100*60 minutes).
FPM
- Fixed bug GH-9754 (SaltStack (using Python subprocess) hangs when running php-fpm 8.1.11).
- Fixed bug GH-9959 (Solaris port event mechanism is still broken after bug #66694).
mysqli
- Fixed bug GH-9841 (mysqli_query throws warning despite using silenced error mode).
OpenSSL
- Fixed bug GH-8430 (OpenSSL compiled with no-md2, no-md4 or no-rmd160 does not build).
SOAP
- Fixed GH-9720 (Null pointer dereference while serializing the response).
Commit List
Adam Saponara
- Fix GH-9709: Guard against current_execute_data==NULL in is_handle_exception_set in 45e224cf51
Arnaud Le Blanc
- Restore extra_named_params when restoring frozen call stack in 86e1fea39a
- Fix crash when memory limit is exceeded during generator initialization in 26c7c82d32
- Fix generator memory leaks when interrupted during argument evaluation in GH-9756
Benoit
- Fix compilation warning in 994097093c
Christoph M. Becker
- Fix GH-9720: Null pointer dereference while serializing the response in e440e37fa8
- Fix #81739: OOB read due to insufficient validation in
imageloadfont()
in d50532be91 - Fix potential NULL pointer dereference Windows shm*() functions in d1c9ff5642
- Don't skip test on Windows due to missing
ext/posix
in 4c35d6440b
Derick Rethans
- Updated to version 2022.5 (2022e) in 24963be8ef
- Fixed GH-9763: DateTimeZone ctr mishandles input and adds null byte if the argument is an offset larger than 100*60 minutes in 7b48053293
- Update NEWS in 41a6a298d9
- Test for bug #78055 (DatePeriod's getRecurrences and ->recurrences don't match) in 011b7f9840
- Bumb versions in 004cb82750
- Updated to version 2022.6 (2022f) in 2b5bed904e
Dmitry Stogov
- Discard disasm symbols on opcache restart in cefb228e15
Gabriel Caruso
- Prepare for PHp 8.0.26 in dd394b3dff
Ilija Tovilo
- Fix failing date test in 4e8a6554cb
- Fix cli server blocking on accept when using multiple workers in d52f0451ad
- Revert incorrect PHP-7.4 version constants in 8b919c3175
- Migrate i386 to GitHub actions in 75970077b0
Jakub Zelenka
- Fix GH-8430: OpenSSL compiled with old disgests does not build in fa1b6ab5db
- Fix GH-9754: SaltStack hangs when running php-fpm 8.1.11 in 1c5844aa3e
- Fix GH-9770: Add small timeout in status-listen test in 8229649045
Kamil Tekiela
- mysqli_query throws warning despite using silenced error mode in GH-9842
- Add a temporary fix for insufficient buffer size in mysqlnd in GH-9835
- Add NEWS entry for #9841 in 96049867d8
Remi Collet
- move CVEs in 8.0.25 changelog in db28ee8fd0
Sara Golemon
- Prep NEWS for 8.0.26 in 1b0d49065b
- Update versions for PHP 8.0.26 in f519dacc9e
Stanislav Malyshev
- Fix bug #81738 (buffer overflow in
hash_update()
on long parameter) in 248f647724 - Update NEWS in 2669ed7d77
Tim Düsterhus
- Update to actions/checkout@v3 in GH-9759