LmCast :: Stay tuned in

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 out

Recorded: Oct. 21, 2026, 2:11 p.m.

Original Summarized

PHP

Downloads

Documentation

Get Involved

Help

Search docs

Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Enumerations
Error Handling
Fibers
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Predefined Attributes
Context options and parameters
Supported Protocols and Wrappers

Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Session Security
Filesystem Security
Database Security
Error Reporting
User Submitted Data
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Command line usage
Garbage Collection
DTrace Dynamic Tracing

Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and
Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
GUI Extensions

Keyboard Shortcuts?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search(current page)
/
Focus search box

A popular general-purpose scripting language that is especially suited to web development.Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.

What's new in 8.5
Download

8.5.12 · Changelog · Upgrading
8.4.27 · Changelog · Upgrading
8.3.36 · Changelog · Upgrading
8.2.35 · Changelog · Upgrading

21 Oct 2026

Security advisory: Critical remote code execution vulnerabilities, update now

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix two critical vulnerabilities that can allow unauthenticated remote code execution. All PHP users are strongly encouraged to update immediately.

Who is at risk: all PHP installations serving web requests, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. We consider the risk highest for mod_php, with a demonstrated exploit where an unauthenticated request can trigger the attack before any application code runs.
The vulnerabilities:

RCE via OOM corruption, CVE-2026-109618 (GHSA-w8hw-w9fx-j79w): out-of-memory
handling can interrupt PHP while internal request data is only partially initialized. Request cleanup may then treat the invalid data as valid.
RCE via stale global state, CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp): request-owned
internal state can survive after its backing memory has been freed. A later request handled by the same worker may use that stale state before normal initialization resets it.

How to update:

Update to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35. Source downloads are on our downloads page. Windows source and binaries are on the same page.
Linux distributions and LTS vendors received the patches in advance, so check your vendor for updated packages.
PHP 8.1 and older no longer receive updates from the PHP project. Some distributions and LTS vendors provide backported fixes, so contact your vendor for details, or upgrade to a supported version.
If you rely on the volunteer-maintained rpms.remirepo.net, we urge you to switch to distribution packages or build from source, so you can immediately apply updates. The repo will not have updates today.
Given the severity of these vulnerabilities, the PHP security team provided minimal source-backports for PHP 7.4, PHP 8.0, and PHP 8.1 to help people building from source or without access to an LTS vendor.

If you cannot update immediately: while only an update is a complete solution, the following measures reduce exposure to specific attack paths but do not make an installation safe.
RCE via OOM corruption (CVE-2026-109618):

Set memory_limit=-1, preferably in a way applications can't override, such as php_admin_value in the FPM pool or Apache configuration, and check that no pool, directory or application setting puts a finite limit back. This removes the controllable PHP memory limit failure, but an underlying allocation failure can still reach the vulnerable path.
Set a low post_max_size. For applications that don't require file uploads, set post_max_size = 8M. If file uploads are necessary, set post_max_size = 32M. Keep upload_max_filesize below post_max_size.
Consider enforcing limits at the web server or proxy level for decoded request size, input field count, multipart part count, header count, and nesting depth. These
limits must also cover requests without a usable Content-Length.
Use a container or cgroup limit as an availability boundary, preferably with a policy that kills only the affected worker. Do not substitute RLIMIT_AS or
RLIMIT_DATA, as these can cause the vulnerable allocation failure.

RCE via stale global state (CVE-2026-109619):

Set session.upload_progress.enabled=0 and restart every worker. Use php.ini, an FPM pool or server
configuration that applies before request parsing. Do not rely on ini_set() or FPM .user.ini. This blocks the confirmed session paths but not other variants.
On PHP 8.5, set fatal_error_backtraces=0 and restart every worker. This blocks the confirmed fatal backtrace path only.
Remove invalid or deprecated settings applied per request that emit diagnostics before initialization. Hiding diagnostics with error_reporting, display_errors
or @ does not help.
Fix attacker-reachable fatal errors and execution timeouts, including failures in callbacks, upload or import processing and cleanup.

The advisories linked above have the full technical details.

21 Oct 2026

PHP 8.5.12 Released!

The PHP development team announces the immediate availability of PHP 8.5.12.

This is a security release fixing two critical vulnerabilities
(CVE-2026-109618, CVE-2026-109619) that can allow unauthenticated remote
code execution. All PHP 8.5 users are strongly encouraged to update immediately.

There are no complete mitigations, updating is the only safe choice. See the
security advisory for details.

For source downloads of PHP 8.5.12 please visit our downloads page,
Windows source and binaries can also be found there.
The list of changes is recorded in the ChangeLog.

21 Oct 2026

PHP 8.4.27 Released!

The PHP development team announces the immediate availability of PHP 8.4.27.

This is a security release fixing two critical vulnerabilities
(CVE-2026-109618, CVE-2026-109619) that can allow unauthenticated remote
code execution. All PHP 8.4 users are strongly encouraged to update immediately.

There are no complete mitigations, updating is the only safe choice. See the
security advisory for details.

For source downloads of PHP 8.4.27 please visit our downloads page,
Windows source and binaries can also be found there.
The list of changes is recorded in the ChangeLog.

21 Oct 2026

PHP 8.3.36 Released!

The PHP development team announces the immediate availability of PHP 8.3.36.

This is a security release fixing two critical vulnerabilities
(CVE-2026-109618, CVE-2026-109619) that can allow unauthenticated remote
code execution. All PHP 8.3 users are strongly encouraged to update immediately.

There are no complete mitigations, updating is the only safe choice. See the
security advisory for details.

For source downloads of PHP 8.3.36 please visit our downloads page,
Windows source and binaries can also be found there.
The list of changes is recorded in the ChangeLog.

21 Oct 2026

PHP 8.2.35 Released!

The PHP development team announces the immediate availability of PHP 8.2.35.

This is a security release fixing two critical vulnerabilities
(CVE-2026-109618, CVE-2026-109619) that can allow unauthenticated remote
code execution. All PHP 8.2 users are strongly encouraged to update immediately.

There are no complete mitigations, updating is the only safe choice. See the
security advisory for details.

PHP 8.2 reaches end of life on 31 December 2026 and will receive no further
security fixes after that date. Please plan your upgrade to a supported version.

For source downloads of PHP 8.2.35 please visit our downloads page,
Windows source and binaries can also be found there.
The list of changes is recorded in the ChangeLog.

20 Oct 2026

Upcoming Critical PHP Security Release

The PHP security team would like to give advance notice of an
upcoming security release.

It is scheduled for Wednesday, 21 October 2026 at 14:00 UTC.

It addresses two critical vulnerabilities, both rated CVSS v4.0 9.2.

All PHP users are encouraged to prepare now so they can upgrade as
soon as the release is available.

We reserve the right to release earlier should details of either
vulnerability become public, or should evidence of active exploitation
appear in the wild.

Full details, affected versions, and the fixed versions will be
published with the release.

Thank you for helping us keep PHP secure.

08 Oct 2026

PHP 8.6.0 RC3 available for testing

The PHP team is pleased to announce the first release candidate of PHP 8.6.0, RC3. This continues the PHP 8.6 release cycle, whose rough outline is specified in the PHP Wiki.
Source downloads of PHP 8.6.0 RC3 are available on the download page.
Please carefully test this version and report any issues found in the GitHub Issues.
Please DO NOT use this version in production, it is an early test version.
For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
The next release will be RC4, planned for 22 October 2026.
The signatures for the release can be found in the manifest or on the pre-release builds page.
Thank you for helping us make PHP better.

24 Sep 2026

PHP 8.4.26 Released!

The PHP development team announces the immediate availability of PHP 8.4.26. This is a security release.
All PHP 8.4 users are encouraged to upgrade to this version.
For source downloads of PHP 8.4.26 please visit our downloads page,
Windows source and binaries can also be found there.
The list of changes is recorded in the ChangeLog.

24 Sep 2026

PHP 8.2.34 Released!

The PHP development team announces the immediate availability of PHP 8.2.34. This is a security release.
All PHP 8.2 users are encouraged to upgrade to this version.
For source downloads of PHP 8.2.34 please visit our downloads page,
Windows source and binaries can also be found there.
The list of changes is recorded in the ChangeLog.

24 Sep 2026

PHP 8.5.11 Released!

The PHP development team announces the immediate availability of PHP 8.5.11. This is a security release.
All PHP 8.5 users are encouraged to upgrade to this version.
For source downloads of PHP 8.5.11 please visit our downloads page,
Windows source and binaries can also be found there.
The list of changes is recorded in the ChangeLog.

24 Sep 2026

PHP 8.3.35 Released!

The PHP development team announces the immediate availability of PHP 8.3.35. This is a security release.
All PHP 8.3 users are encouraged to upgrade to this version.
For source downloads of PHP 8.3.35 please visit our downloads page,
Windows source and binaries can also be found there.
The list of changes is recorded in the ChangeLog.

24 Sep 2026

PHP 8.6.0 RC2 available for testing

The PHP team is pleased to announce the first release candidate of PHP 8.6.0, RC2. It is not a typo: a mistake was made while packaging RC1, so RC2 was released instead. For a full explanation, please see this blog post. This continues the PHP 8.6 release cycle, whose rough outline is specified in the PHP Wiki.
Source downloads of PHP 8.6.0 RC2 are available on the download page.
Please carefully test this version and report any issues found in the GitHub Issues.
Please DO NOT use this version in production, it is an early test version.
For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
The next release will be RC3, planned for 8 October 2026.
The signatures for the release can be found in the manifest or on the pre-release builds page.
Thank you for helping us make PHP better.

10 Sep 2026

PHP 8.6.0 Beta 3 is available for testing

The PHP team is pleased to announce the third beta release of PHP 8.6.0, Beta 3. This continues the PHP 8.6 release cycle, the rough outline of which is specified in the PHP Wiki.
For source downloads of PHP 8.6.0 Beta 3 please visit the download page.
Please carefully test this version and report any issues found on GitHub.
Please DO NOT use this version in production, it is an early test version.
For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
The next release will be RC 1, planned for 24 September 2026.
The signatures for the release can be found in the manifest or on the Release Candidates page.
Thank you for helping us make PHP better.

27 Aug 2026

PHP 8.5.10 Released!

The PHP development team announces the immediate availability of PHP 8.5.10. This is a bug fix release.
All PHP 8.5 users are encouraged to upgrade to this version.
For source downloads of PHP 8.5.10 please visit our downloads page,
Windows source and binaries can also be found there.
The list of changes is recorded in the ChangeLog.

27 Aug 2026

PHP 8.4.25 Released!

The PHP development team announces the immediate availability of PHP 8.4.25. This is a bug fix release.
All PHP 8.4 users are encouraged to upgrade to this version.
For source downloads of PHP 8.4.25 please visit our downloads page,
Windows source and binaries can also be found there.
The list of changes is recorded in the ChangeLog.

27 Aug 2026

PHP 8.6.0 Beta 2 available for testing

The PHP team is pleased to announce a new beta release of PHP 8.6.0, Beta 2. This continues the PHP 8.6 release cycle, the rough outline of which is specified in the PHP Wiki.
For source downloads of PHP 8.6.0 Beta 2 please visit the download page.
Please carefully test this version and report any issues found on GitHub.
Please DO NOT use this version in production, it is an early test version.
For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
The next release will be Beta 3, planned for 10 Sep 2026.
The signatures for the release can be found in the manifest or on the Release Candidates page.
Thank you for helping us make PHP better.

25 Aug 2026

Last Call for the State of PHP Survey

The State of PHP survey is still open, but not for much longer. It asks how PHP is working for you: what you build with, what is painful, and what you think PHP should focus on next. It takes around 15 minutes.

The survey is run by The PHP Foundation in partnership with PhpStorm by JetBrains.

The aggregated results will be published later this year as the State of PHP 2026 report. The anonymized raw dataset will be released along with it, so anyone in the community can check the numbers or run their own analysis.

More responses mean a better picture of what matters to PHP users. If you have not filled it in yet, please do, and share it with your colleagues and user groups.

13 Aug 2026

PHP 8.6.0 Beta 1 is available for testing

The PHP team is pleased to announce the first beta release of PHP 8.6.0, Beta 1. This continues the PHP 8.6 release cycle, the rough outline of which is specified in the PHP Wiki.
For source downloads of PHP 8.6.0 Beta 1 please visit the download page.
Please carefully test this version and report any issues found on GitHub.
Please DO NOT use this version in production, it is an early test version.
For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
The next release will be Beta 2, planned for 27 Aug 2026.
The signatures for the release can be found in the manifest or on the Release Candidates page.
Thank you for helping us make PHP better.

30 Jul 2026

PHP 8.4.24 Released!

The PHP development team announces the immediate availability of PHP 8.4.24. This is a security release.
All PHP 8.4 users are encouraged to upgrade to this version.
For source downloads of PHP 8.4.24 please visit our downloads page,
Windows source and binaries can also be found there.
The list of changes is recorded in the ChangeLog.

30 Jul 2026

PHP 8.3.33 Released!

The PHP development team announces the immediate availability of PHP 8.3.33. This is a security release.
All PHP 8.3 users are encouraged to upgrade to this version.
For source downloads of PHP 8.3.33 please visit our downloads page,
Windows source and binaries can also be found there.
The list of changes is recorded in the ChangeLog.

30 Jul 2026

PHP 8.6.0 Alpha 3 available for testing

The PHP team is pleased to announce the second testing release of PHP 8.6.0, Alpha 3. This continues the PHP 8.6 release cycle, the rough outline of which is specified in the PHP Wiki.
For source downloads of PHP 8.6.0 Alpha 3 please visit the download page.
Please carefully test this version and report any issues found in the GitHub Issues.
Please DO NOT use this version in production, it is an early test version.
For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
The next release will be Beta 1, planned for 13 August 2026.
The signatures for the release can be found in the manifest or on the pre-release builds page.
Thank you for helping us make PHP better.

30 Jul 2026

PHP 8.5.9 Released!

The PHP development team announces the immediate availability of PHP 8.5.9. This is a security release.
All PHP 8.5 users are encouraged to upgrade to this version.
For source downloads of PHP 8.5.9 please visit our downloads page,
Windows source and binaries can also be found there.
The list of changes is recorded in the ChangeLog.

30 Jul 2026

PHP 8.2.33 Released!

The PHP development team announces the immediate availability of PHP 8.2.33. This is a security release.
All PHP 8.2 users are encouraged to upgrade to this version.
For source downloads of PHP 8.2.33 please visit our downloads page,
Windows source and binaries can also be found there.
The list of changes is recorded in the ChangeLog.

16 Jul 2026

PHP 8.6.0 Alpha 2 available for testing

The PHP team is pleased to announce the second testing release of PHP 8.6.0, Alpha 2. This continues the PHP 8.6 release cycle, the rough outline of which is specified in the PHP Wiki.
For source downloads of PHP 8.6.0 Alpha 2 please visit the download page.
Please carefully test this version and report any issues found in the GitHub Issues.
Please DO NOT use this version in production, it is an early test version.
For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
The next release will be Alpha 3, planned for 30 July 2026.
The signatures for the release can be found in the manifest or on the pre-release builds page.
Thank you for helping us make PHP better.

02 Jul 2026

PHP 8.5.8 Released!

The PHP development team announces the immediate availability of PHP 8.5.8. This is a security release.
All PHP 8.5 users are encouraged to upgrade to this version.
For source downloads of PHP 8.5.8 please visit our downloads page,
Windows source and binaries can also be found there.
The list of changes is recorded in the ChangeLog.

Older News Entries

The PHP Foundation

The PHP Foundation is a collective of people and organizations, united in the mission to ensure the long-term prosperity of the PHP language.
Donate

Conferences calling for papersDutch PHP Conference 2027PHPBenelux Conference 2027, Antwerp BelgiumPHP Tek 2027 Upcoming conferencesPHPBenelux Conference 2027, Antwerp BelgiumInternational PHP Conference Munich 2026
User Group Events
Special Thanks

Social media

@official_php

@php@fosstodon.org

@phpnet

Copyright © 2001-2026 The PHP Group
My PHP.net
Contact
Other PHP.net sites
Privacy policy
View Source

↑ and ↓ to navigate •
Enter to select •
Esc to close • / to open

Press Enter without
selection to search using Google

PHP is a widely adopted general-purpose scripting language, renowned for its speed, flexibility, and pragmatic design, and it serves as the backbone for web development, powering everything from personal blogs to major online platforms. The provided materials encompass a comprehensive documentation structure, which organizes resources into sections such as getting started, language reference (covering syntax, types, variables, control structures, functions, classes, namespaces, error handling, fibers, generators, and attributes), security, and an extensive function reference spanning numerous extensions.

The primary focus of the text is a critical security advisory released by the PHP development team on October 21, 2026, detailing two severe remote code execution vulnerabilities—CVE-2026-109618 and CVE-2026-109619—both rated at CVSS v4.0 score 9.2, indicating extremely high risk. These vulnerabilities affect all PHP installations that serve web requests, including specific server configurations such as PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP, and LiteSpeed, with mod_php presenting the highest risk due to an exploit that can trigger the attack before application code executes. The first vulnerability, CVE-2026-109618, involves out-of-memory (OOM) handling that can interrupt PHP while internal request data remains partially initialized, leading to cleanup processes that treat invalid data as valid, thereby enabling code execution. The second vulnerability, CVE-2026-109619, stems from stale global state that can persist after memory has been freed, allowing subsequent requests handled by the same worker to use that invalid state prior to proper initialization. The advisory strongly urges all PHP users to update immediately to PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35, as there are no complete mitigations; updating is the only safe approach. It notes that PHP 8.1 and older no longer receive updates from the project, though backported fixes may be available from vendors, and that minimal source-backports for PHP 7.4, 8.0, and 8.1 are provided for those unable to update immediately, with the caveat that these are not complete solutions. The advisory also outlines specific mitigation measures for each vulnerability, including setting memory limits, adjusting post_max_size and upload_max_filesize, enforcing web server-level limits, using container or cgroup resource limits, disabling session upload progress, adjusting error reporting settings, and fixing potential fatal errors, but emphasizes that these reduce exposure without eliminating the risk.

The PHP development team has issued these security patches as immediate updates for the affected versions, with each release announcement reiterating the critical nature and the necessity of immediate upgrading. Earlier security releases, such as PHP 8.4.26, 8.2.34, 8.5.11, and 8.3.35, have also been made available. PHP 8.2 is scheduled for end-of-life on December 31, 2026, after which no further security fixes will be provided, prompting users to plan upgrades to supported versions.

The PHP project also announces an upcoming critical security release scheduled for October 21, 2026, addressing the same two vulnerabilities, with CVSS v4.0 score 9.2. The team reserves the right to release this earlier if details of either vulnerability become public or if evidence of active exploitation appears, and full details along with affected and fixed versions will be published with the release.

In the context of the ongoing PHP release cycle, the PHP team provides pre-release versions of PHP 8.6.0, including Alpha 3, Alpha 2, Beta 1, Beta 2, Beta 3, RC2, and RC3, all available for testing. These pre-release versions are explicitly prohibited from production use due to their early state, and users are instructed to test them carefully in controlled environments and report issues through the GitHub Issues. The next release, RC4, is planned for October 22, 2026.

Additionally, the PHP community is conducting the "State of PHP" survey, run by The PHP Foundation in partnership with PhpStorm by JetBrains, which remains open for approximately 15 minutes. The aggregated results will be published later this year as the State of PHP 2026 report, along with anonymized raw data, enabling community analysis. The survey aims to gather insights on PHP usage, user pain points, and future development priorities, and encourages widespread participation to improve the project's direction.

The text also includes a detailed directory of PHP documentation, highlighting key areas such as security, language reference (including syntax, types, variables, control structures, functions, classes, namespaces, error handling, fibers, generators, and attributes), and an extensive function reference covering many extensions. This documentation serves as a comprehensive resource for developers learning and applying PHP. The PHP Foundation maintains the project's long-term sustainability, and the site features social media links and contact information, reflecting the collaborative nature of the PHP ecosystem.