PHP 8.2 loses security patches on January 1: a four-week plan for a live Bitrix store

11 min readPHP · 1C-Bitrix · Laravel · Upgrades · Security

PHP 8.2 stops receiving security fixes on December 31, 2026, usually the busiest month for an online store. You don't have to upgrade in December, but you do have to decide when and to which version. Here is a four-week plan.

Contents

The php.net supported versions page gives the 8.2 branch a date: security fixes until December 31, 2026. For an online store December is usually the busiest month of the year. Your contractor suggests upgrading "over the weekend" or jumping straight to the newest release, and during peak sales both options feel equally uncomfortable.

This article is about stores running on 1C-Bitrix, a popular e-commerce CMS in Russia that usually talks to 1C, the accounting and ERP system, and also about Laravel shops. I wouldn't start with the upgrade. I'd start with a decision. In four weeks you can size the real risk, pick a target version and a quiet window for the switch. If the window falls in January, you cover the gap with compensating controls and put a date on the calendar.

Four-week plan diagram: inventory, staging run, pick the window, switch or contain
Four steps, one week each. The plan isn't tied to calendar dates, so you can start it any day.

What "no security support" actually means

According to the php.net table, PHP 8.2 was released on December 8, 2022, active support ended on December 31, 2024, and security fixes ship until December 31, 2026. After that the branch is End of life. php.net describes it this way: the release is no longer supported, and its users should upgrade as soon as possible because they may be exposed to unpatched security vulnerabilities.

Your site won't break on January 1: the store keeps loading and orders keep coming in. But if someone finds a new vulnerability in PHP itself, there will be no official 8.2 release that fixes it. The risk doesn't arrive on a single day. It builds up week after week.

PHP 8.2 to 8.6 support timeline showing active support and security-only periods, with a marker at December 31, 2026
PHP 8.2 to 8.6 support periods from php.net, checked on December 3, 2026.

Checking takes a minute. Start in the server shell:

# PHP version in your shell (cron may use a different php binary, check the path in crontab)
php -v
which php

# where PHP came from (Debian/Ubuntu and RHEL-like systems)
dpkg -l | grep php
rpm -qa | grep php

# which config files the CLI reads
php --ini

php -v won't show the version the site itself runs on (PHP-FPM or the Apache module); the web server and the CLI often differ. For the web side, look at phpinfo() on a protected page or at the output of the bitrix_server_test.php script mentioned below.

Week 1. Inventory: what are you actually running?

Week one is a stocktake. Without it any timeline is a guess. Put all of this in one place:

  • The PHP version for the web server, the CLI and cron on every server, listed separately: they often differ.
  • The Bitrix version (the main module) and edition.
  • Marketplace modules with their last update date and a vendor contact.
  • Your own code in /local: event handlers, components, agents.
  • Payment and shipping integrations, plus the 1C data exchange.
  • For Laravel: the framework version and key packages from composer.lock.

Two facts help you see the scope. The technical requirements for 1C-Bitrix Site Manager (in Russian) list PHP 8.2 as the minimum (as of December 3, 2026), and the bitrix_server_test.php script checks whether a server meets them. On the Laravel side, the support policy table shows Laravel 11 running on PHP 8.2–8.4 with security fixes until March 12, 2026, and Laravel 12 supporting PHP 8.2–8.5 with security fixes until February 24, 2027. In other words, PHP may not be the only thing you need to upgrade.

The output of the week is a table. Here is a template with sample rows:

ComponentInstalled versionLast updatedSupports 8.3 / 8.4?Owner
PHP (web)8.2.xn/asysadmin
PHP (CLI, cron)n/asysadmin
Bitrix main modulecheck the docsdeveloper
Payment moduleask the vendorvendor
Shipping moduleask the vendorvendor
Code in /localn/astaging will telldeveloper

Week 2. A staging run and a deprecation log

I covered a detailed staging checklist in the article on what breaks in Bitrix after moving to PHP 8.4, so here is just the core of it. Staging has to mirror production: the same Bitrix version, the same modules, a fresh copy of the database. Switch it to the new PHP version and send every error to a dedicated file.

; staging, illustrative values: use your own paths
error_reporting = E_ALL
display_errors = Off
log_errors = On
error_log = /var/log/php/staging-errors.log

The directives are described in the PHP error handling docs. Make sure the log is actually being written: open a few pages and look at the file. PHP can't log deprecations to a file of their own, so filter them out instead:

# after a day of testing: count unique deprecation warnings
grep "PHP Deprecated" /var/log/php/staging-errors.log | sed 's/^\[[^]]*\] //' | sort | uniq -c | sort -rn | head -50
  • Smoke-test the key URLs: home page, catalog, product page, cart, checkout, customer account.
  • Run a test payment through every payment module.
  • Run Bitrix agents and the 1C exchange from the shell, since cron uses its own PHP.

The output of the week: the number of fatal errors, the number of unique deprecation warnings, the developer's estimate of hours to fix them, and the list of modules still waiting on a vendor reply.

8.3 or 8.4: why skipping a version doesn't always save time

VersionActive support untilSecurity fixes until
8.2Dec 31, 2024Dec 31, 2026
8.3Dec 31, 2025Dec 31, 2027
8.4Dec 31, 2026Dec 31, 2028
8.5Dec 31, 2027Dec 31, 2029
8.6 (released Nov 19, 2026)Dec 31, 2028Dec 31, 2030

The data comes from the php.net supported versions table. Moving to 8.4 buys you one more year than 8.3. It also brings more changes that trip up old code. The PHP 8.4 deprecations list includes implicitly nullable parameters such as function foo(T $a = null), a pattern that shows up a lot in older modules. mysqli_ping() and lcg_value() are deprecated too, and the E_STRICT error level has been removed entirely. PHP 8.3 is gentler on legacy code: for example, calling get_class() and get_parent_class() without arguments is now deprecated.

Here is the rule I'd go by: if staging is clean on 8.4, go to 8.4. If there's a lot to fix and the window is short, 8.3 clears the deadline and gives you a year to move on calmly.

Decision diagram: if modules are not confirmed by vendors, switch in January with compensating controls; if staging is clean on 8.4, target 8.4; if there are many fixes and a short window, target 8.3
The decision after the staging run.

The diagram shows a fork of three questions. Start with the vendors: have they confirmed their modules are compatible? While the payment module vendor is silent, it's too early to switch production, however clean the rest of the code is.

Week 3. Decide: switch now or after the holidays

Switch before December 31 ifMove it to January if
staging is clean and the fixes are done and testedthe fixes aren't finished
rollback has been tested on staginga payment or shipping module vendor hasn't replied
you have a quiet, low-traffic daynobody is on call over the holidays
a developer is available for a few days after the switchpromotions are planned for the coming days

The rollback plan has to be ready before the switch. The fastest option is to keep the old PHP-FPM installed next to the new one and switch via the pool or upstream, without reinstalling packages. Here is a sketch for Nginx with PHP-FPM; the upstream directive is described in the nginx docs:

# illustrative: two PHP-FPM versions installed side by side, each on its own socket
upstream php_backend {
    server unix:/run/php/php8.3-fpm.sock;
    # rollback: uncomment the line below and comment out the one above
    # server unix:/run/php/php8.2-fpm.sock;
}

# validate the config and reload without dropping connections
nginx -t && nginx -s reload

This example is illustrative: if PHP runs as an Apache module or your server is set up differently, the switch will look different. The idea is the same, though: getting back to 8.2 takes one command you've already tested. Rehearse the rollback on staging, it takes about five minutes, and write the command down where the person on call will find it.

Week 4. If you miss January 1

If your window lands in January, cover the gap of a few weeks. These measures shrink the attack surface for the transition period, but they don't replace the upgrade:

  • Restrict the admin panel and service paths by IP or put them behind a VPN.
  • Turn on a WAF or add Nginx and CDN rules for suspicious requests.
  • Disable unused PHP extensions and extra entry points, including forgotten scripts in the site root.
  • Monitor error_log and order anomalies: a spike in errors or odd orders shows up before complaints do.
  • Subscribe to PHP security announcements and keep an eye on them until the move is done.

FAQ

Will my site stop working on January 1, 2027?

No. PHP 8.2 keeps running as before. What stops is official security fixes, so new vulnerabilities in PHP itself won't get patched.

Can we jump straight to PHP 8.6?

8.6 came out on November 19, 2026. For a live store, what matters more is what your Bitrix version and modules officially support. The newest branch usually has fewer compatibility confirmations from module vendors. Dates for every branch are in the php.net table.

Our host says they'll upgrade PHP for us. Is that enough?

A version switch by the host doesn't test your code, modules or the 1C exchange. You still need the staging run and a rollback plan, and it's better to agree on the switch date with the host in advance.

We're still on PHP 8.1 or 7.4. What then?

Those branches are already unsupported: support for 8.1 ended on December 31, 2025, and for 7.4 on November 28, 2022, as listed on the unsupported branches page. The plan is the same, but the jump is longer, and staging will almost certainly surface more fixes. For current Bitrix versions 8.2 is the minimum anyway.

How long will the move take?

It depends on the number of modules and how much custom code you have. Only the week 2 staging run gives an honest estimate: the error count and the hours needed to fix them.

The bottom line

You don't have to upgrade in December. You do have to decide: which version, which window, and what you'll do if the window is in January. The first step takes a few minutes: run php -v on every server, separately for web, CLI and cron, and start filling in the week 1 table.

If your team handles the upgrade but you'd like an outside view of the risks, take a look at the technical audit. Planned upgrades can also be run under a technical partner arrangement. More write-ups are in the PHP, MySQL and performance category.

Sources

  1. Supported Versions · PHP Group, 2026-12-03
  2. Unsupported Branches · PHP Group, 2026-12-03
  3. Migrating from PHP 8.3.x to PHP 8.4.x: Deprecated Features · PHP Manual, 2026-12-03
  4. Migrating from PHP 8.3.x to PHP 8.4.x: Backward Incompatible Changes · PHP Manual, 2026-12-03
  5. Migrating from PHP 8.2.x to PHP 8.3.x: Deprecated Features · PHP Manual, 2026-12-03
  6. Runtime Configuration: error handling · PHP Manual, 2026-12-03
  7. 1C-Bitrix Site Manager: technical requirements (in Russian) · 1C-Bitrix, 2026-12-03
  8. Laravel Release Notes: Support Policy · Laravel, 2026-12-03
  9. Module ngx_http_upstream_module · nginx.org, 2026-12-03
PHP 8.2 end of security support: a plan for Bitrix stores