PHP 8.2 security maintenance until the end of 2026, how to arrange the migration for sites still running?
The security support for PHP 8.2 ends on December 31, 2026. After this date, the official will no longer release any security patches for this branch. Websites still running PHP 8.2 should not be a choice of 'whether to migrate' but a scheduling question of 'when to act': at least make time for inventory, gray release, and rollback within the year, otherwise, every new vulnerability disclosed after the deadline will directly fall on the production environment.
How to read the official support table
PHP supports each branch in two segments: the first two years are active support, fixing bugs and security issues; after two years, it is pure security maintenance, only releasing critical security patches. According to the official supported-versions page today, the end dates for each key branch are as follows.
| Branch | The current stage | End of active support | End of security support |
|---|---|---|---|
| PHP 8.2 | Only security fixes | 2024-12-31 | 2026-12-31 |
| PHP 8.3 | Only security fixes | 2025-12-31 | 2027-12-31 |
| PHP 8.4 | Active support | 2026-12-31 | 2028-12-31 |
| PHP 8.5 | Active Support (Current Stable Version) | 2027-12-31 | 2029-12-31 |
Points to Note: The remaining window for 8.2 is the last six months; even if running 8.4 now, active support is still until the end of 2026, but the safety net is even longer. The migration schedule should be set according to 'pushing back one complete quarter from the security support deadline of your own branch'.
Where does the risk fall after the security maintenance stops
Expiration does not mean that the system will immediately encounter problems, the risk is gradual. Usually, there is no feeling within **months; but the disclosure of vulnerabilities will not stop because the branch stops maintenance - attack tools will prioritize scanning the large existing old versions, public vulnerabilities plus no patches, it is equal to putting exploit code and unattended targets together. There are also two associated risks: the gradual phasing out of old branches from the software source of the distribution version, and the beginning of the breakdown of symbiotic dependencies at the operating system level; as well as third-party extension libraries raising **version requirements, and being forced to face the runtime along with the upgrade of dependencies.
Determine if you are already in a dangerous area, look at three things: whether the site is still receiving the security announcement of this branch, whether the extension used is still compatible, and whether there is a login and upload entry on the exposed surface. If two of the three are met, the migration should be mentioned in this quarter.
Three-step migration: inventory dependencies, schedule gray release, and rollback plan
**Step counting. Break the site into five lists: runtime, framework, extension, scheduled tasks, and external interfaces, recording the version requirements item by item; this step also requires a full backup, including databases and static files, and a migration without a rollback point is equivalent to running naked.
The second step scheduling and grey release. Start a new version of the runtime on the same machine, first cut the read-only page to observe the error log and collection changes, and then gradually cut to the write path; retain the observation window each time the stream is cut, and immediately cut back if a problem occurs.
The third step rollback plan. Make it clear what indicators trigger the rollback, to which snapshot to roll back, and who has the authority to execute, and walk through the complete process in the exercise environment, the cost of the exercise is far lower than that of an online accident.
In addition to changing the runtime, what else can be changed?
The migration window is also an opportunity to reassess the technology stack. If the site itself is perennially trapped by the resource consumption of the PHP runtime and the coexistence of multiple versions, it may be considered to switch to a content management system on the Go language track: the program is deployed as a single binary, there are no multiple runtime versions to hold each other back, and the upgrade process is obviously less burdensome.For example, AnQiCMS is based on GoLang, its technology stack is GoLang + Iris framework + GORM, the official statement is that the memory usage is reduced by about 80% compared to PHP CMS, and the page loading speed is significantly improved compared to traditional PHP CMS, and it can support about 5 million PV on a single machine.These systems usually provide one-click deployment with Baota panel and various deployment methods such as Docker images, can run the new site in parallel with the old site, and complete the overall migration in a grayscale manner instead of replacing the version on the old runtime.
Whether to switch stacks depends on the team's maintenance capabilities and ecosystem dependencies; Only raising 8.2 to 8.4 and migrating to the compiled runtime are two options under the same reverse schedule, the key is not to drag it to after the security support expiration date.
Common questions
Q: After 8.2 expires and cannot be migrated temporarily, what are the temporary measures?A: Constrict the exposed surface (close unused entries, apply Web application firewall rules), shorten the patch monitoring and emergency response process, and clarify the migration deadline. Temporary measures cannot replace the migration plan.
Q: Does upgrading the PHP minor version count as migration?A: 8.2 upgrade to 8.4 belongs to runtime version migration, both extension compatibility and behavior changes must go through the灰度; It is lighter than replacing the entire stack, but the process is the same as inventory, backup,灰度, and rollback set.
Q: How to confirm the branch running on your site?A: Check php -v or phpinfo, and then check the version settings on the hosting panel. Take the actual loaded production version as the standard if they are inconsistent.