Repository navigation
bugfix: Drupal, Matomo and Mautic fail with a session error after the PHP security update - #273
Merged
Merged
Conversation
PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 disable session upload progress by default and throw an Error when an application changes session settings at runtime while it is enabled. The image templates still enabled it, so Symfony-based applications such as Drupal, Matomo and Mautic failed on the patched releases. Default PHP_SESSION_UPLOAD_PROGRESS_ENABLED to 0, matching PHP. Applications that need the feature can still enable it with the environment variable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
After the PHP security update (PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36), Drupal, Matomo, Mautic and other applications built on Symfony stop working. Every page that starts a session fails with "Session ini settings cannot be changed at runtime when session.upload_progress.enabled is On".
Cause
To fix CVE-2026-115560, PHP now turns session upload progress off by default and refuses changes to session settings while a request is running if the feature is on. These applications adjust their session settings while handling each request. The images still turned session upload progress on, which overrides PHP's new default and triggers the error.
Solution
Session upload progress is now off by default, as in PHP itself. Applications that change their session settings work again. Sites that rely on session upload progress can turn it back on with
PHP_SESSION_UPLOAD_PROGRESS_ENABLED=1, but then they must not change session settings at runtime. Drupal's upload progress bar uses the separate uploadprogress extension, which is still installed and is not affected.Changes
PHP_SESSION_UPLOAD_PROGRESS_ENABLEDnow defaults to0instead ofonfor PHP 8.2–8.5.Validation
wodby/php:8.5-r17image withini_set('session.serialize_handler', ...).