Release Information
- Release Type
- Security Update
- Release Status
- Latest
- Branch Status
- Supported (Latest)
Latest PHP release in the latest version. This release contains security fixes, and it is recommended to update as soon as possible.
PHP 8.4 continues to receive bug fixes and security fixes until 2026-12-31.
Downloads
Source Code
Git Clone
Use Git to clone the 8.4.11 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-8.4.11
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.4.11-x64NTS.zip (32.24 MiB)
php-8.4.11-x86NTS.zip (28.91 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.4.11-x64TS.zip (32.39 MiB)
php-8.4.11-x86TS.zip (28.98 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.4.11-cli-alpine
Debian-based: More compatible with other components, complete, and are widely used.
docker pull php:8.4.11-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.4.11-fpm-alpine
Debian-based ZTS Apache: Includes Apache web server integrating PHP as an Apache module.
docker pull php:8.4.11-apache
Debian-based NTS FPM: PHP-FPM, can be integrated with Nginx, Caddy, and other web servers over Fast CGI.
docker pull php:8.4.11-fpm
ChangeLog
Calendar
- Fixed jewishtojd overflow on year argument.
Core
- Fixed bug GH-18833 (Use after free with weakmaps dependent on destruction order).
- Fixed bug GH-18907 (Leak when creating cycle in hook).
- Fix OSS-Fuzz #427814456.
- Fix OSS-Fuzz #428983568 and #428760800.
Curl
- Fix memory leaks when returning refcounted value from curl callback.
- Remove incorrect string release.
DOM
- Fixed bug GH-18979 (Dom`XMLDocument::createComment()` triggers undefined behavior with null byte).
LDAP
- Fixed GH-18902 ldap_exop/
ldap_exop_sync
assert triggered on empty request OID.
MbString
- Fixed bug GH-18901 (integer overflow
mb_split
).
Opcache
- Fixed bug GH-18639 (Internal class aliases can break preloading + JIT).
- Fixed bug GH-18899 (JIT function crash when emitting undefined variable warning and opline is not set yet).
- Fixed bug GH-14082 (Segmentation fault on unknown address 0x600000000018 in
ext/opcache/jit/zend_jit.c
). - Fixed bug GH-18898 (SEGV
zend_jit_op_array_hot
with property hooks and preloading).
OpenSSL
- Fixed bug #80770 (It is not possible to get client peer certificate with
stream_socket_server
).
PCNTL
- Fixed bug GH-18958 (Fatal error during shutdown after
pcntl_rfork()
orpcntl_forkx()
with zend-max-execution-timers).
Phar
- Fix stream double free in phar.
- Fix phar crash and file corruption with SplFileObject.
SOAP
- Fixed bug GH-18990, bug #81029, bug #47314 (SOAP HTTP socket not closing on object destruction).
- Fix memory leak when URL parsing fails in redirect.
SPL
- Fixed bug GH-19094 (Attaching class with no Iterator implementation to MultipleIterator causes crash).
Standard
- Fix misleading errors in printf().
- Fix RCN violations in array functions.
- Fixed GH-18976
pack()
overflow with h/H format and INT_MAX repeater value.
Streams
- Fixed GH-13264 (
fgets()
andstream_get_line()
do not return false on filter fatal error).
Zip
- Fix leak when path is too long in
ZipArchive::extractTo()
.
Commit List
Ahmed Lekssays
- Fix GHSA-453j-q27h-5p8x in 9cb3d8d200
- Fix GHSA-453j-q27h-5p8x in a179e39c38
- Fix GHSA-453j-q27h-5p8x in dd060656d3
- Fix GHSA-453j-q27h-5p8x in 0298837252
Arnaud Le Blanc
- Fix
pcntl_rfork
/pcntl_forkx
with zend-max-execution-timers in aee1d7fb96 - Add FreeBSD ZTS nightly build in 85522c0d48
Calvin Buckley
- Update versions for PHP 8.4.11 in c077787a53
Daniil Gentili
- Fix use after free during shutdown destruction in 5cf3c2663b
David Carlier
- Fixed GH-18902: ldap_exop/
ldap_exop_sync
assert triggered on empty request OID in 2694eb9df0 ext/calendar
: jewishtojd overflow on year argument in 2ccd2b016d- Fix GH-18976: pack with h or H format string overflow in 865739e5b1
Demon
- Fix iconv tests skipped on windows in 5ff5ee0698
- Zend: fix undefined symbol 'execute_ex' on Windows ARM64 GH-19064;
ext/gd
: fixemmintrin.h
not found on Windows ARM64 in 2be3aa86f0 ext/gd
: Drop useless and doubtful MSVC specific code (libgd/libgd@f1480ab) in 12fa8c637fext/gd
: Drop useless and doubtful MSVC specific code (libgd/libgd@f1480ab) in 974526b244
Dmitry Stogov
- Update IR in e8ae27bf8a
- Revert "Update IR" in 9abb0fb0c4
Gina Peter Banyard
ext/dom
: Fix new MSVC compiler warning in 940441106dext/soap/php_http.c
: Fix memory leak of header value in 85a49d4198
Ilija Tovilo
- Track heap->real_size for USE_TRACKED_ALLOC in 9cacc57350
- Remove bug61371 test in 391bd2a48f
- Fix leak when creating cycle in hook in fe504d3357
- Fix missing HAVE_JIT guard in c57ec92eb6
- Disable JIT on Apple Silicon + ZTS in b6660634b4
Jakub Zelenka
- Fix GH-13264:
fgets()
andstream_get_line()
do not return false on filter fatal error in a36b8fdc94 - Fix GHSA-3cr5-j632-f35r: Null byte in hostnames in cac8f7f1cf
- Fix GHSA-hrwm-9436-5mv3: pgsql escaping no error checks in 9376aeef9f
- Update NEWS with entries for security fixes in 7b33b1c916
- Fix GHSA-3cr5-j632-f35r: Null byte in hostnames in 5ef0dc7666
- Fix GHSA-hrwm-9436-5mv3: pgsql escaping no error checks in 66bd809ac9
- Fix GHSA-3cr5-j632-f35r: Null byte in hostnames in cf0c39723e
- Fix GHSA-hrwm-9436-5mv3: pgsql escaping no error checks in 545d1536d8
- Update NEWS with entries for security fixes in fc49d33449
- Fix GHSA-3cr5-j632-f35r: Null byte in hostnames in 27e67cc371
- Fix GHSA-hrwm-9436-5mv3: pgsql escaping no error checks in a2cdff5583
- Update NEWS with entries for security fixes in 165e5169a9
- Fix bug #80770: openssl cafile not used in SNI SSL_CTX in 6b2b60f683
Niels Dossche
- Fix memory leaks when returning refcounted value from curl callback in c6b058b7d2
- Fix GH-18901: integer overflow
mb_split
in a5f21ca700 - Unbreak PRINTF_DEBUG macro usages in b50898894d
- Fix misleading errors in
printf()
in 799ec7b8c5 - Fix GH-18639: Internal class aliases can break preloading + JIT in 8e731ca622
- Fix GH-18899: JIT function crash when emitting undefined variable warning and opline is not set yet in 56c4ddfaf6
- Fix GH-14082: Segmentation fault on unknown address 0x600000000018 in
ext/opcache/jit/zend_jit.c
in 1e3d92f8a9 - Fix RCN violations in array functions in 359a21f102
- Fix GH-18898: SEGV
zend_jit_op_array_hot
with property hooks and preloading in 53f2aa93ae - Fix OSS-Fuzz #427814456 in 91749844e6
- Fix GH-18979: DOM`XMLDocument::createComment()` triggers undefined behavior with null byte in 1d5089e574
- curl: Remove incorrect string release on error in 11ea995ff3
- Fix leak when path is too long in
ZipArchive::extractTo()
in 09c223de00 - Fix GH-18990, bug #81029, bug #47314: SOAP HTTP socket not closing on object destruction in 69328ba304
- Fix OSS-Fuzz #428983568 and #428760800 in 4aac98f145
- Fix stream double free in phar in 32344c4dc4
- Fix phar crash and file corruption with SplFileObject in 405be1c940
- Fix GH-19094: Attaching class with no Iterator implementation to MultipleIterator causes crash in 71472268c0
Peter Kokot
- Fix -Wuseless-escape warnings emitted by re2c in GH-19050
SakiTakamachi
Shivam Mathur
- Switch to windows-2022 in CI in GH-18927
- Fix CI for windows-2022 in ea6a7a9725
- Fix CI for windows-2022 in ac15486ae0
- Fix
PHP_BUILD_CRT
input in the nightly workflow in GH-18982