Skip to content

fix(php): keep PHP 8.6's session defaults in php86.zip - #542

Merged
mrrobot47 merged 1 commit into
EasyEngine:developfrom
mrrobot47:fix/php86-session-defaults
Nov 21, 2026
Merged

mrrobot47 merged 1 commit into
EasyEngine:developfrom
mrrobot47:fix/php86-session-defaults

Conversation

@mrrobot47

Copy link
Copy Markdown
Member

What

templates/config/php-fpm/php86.zip is what ee site update --php=8.6 writes into a site's php config volume. Its php/php.ini is the 8.5 copy, which sets session.use_strict_mode = 0 and session.cookie_httponly = (off). PHP 8.6 turns both on by default (built-in defaults and both shipped php.ini templates), so a site moved to 8.6 only got the new session.cookie_samesite=Lax default.

This sets both to 1, the same change as EasyEngine/dockerfiles#393 makes in the 8.6 image's php.ini, so a new 8.6 site and a site moved to 8.6 get the same session settings. session.cookie_samesite stays unset (PHP's Lax). The 8.5 and older zips are unchanged.

The zip

Only the php/php.ini entry was replaced (zip -X on a copy of the old archive):

  • same 37 entries, same order, modes and compression methods; zipinfo differs only in that entry's size (70554 → 70556), CRC and mtime;
  • diff -r of the extracted old and new trees: exactly the two lines
-session.use_strict_mode = 0
+session.use_strict_mode = 1
-session.cookie_httponly =
+session.cookie_httponly = 1
  • the new php/php.ini is byte-identical to php/8.6/php.ini in dockerfiles#393; unzip -t OK.

PHP 8.6 turns on session.use_strict_mode and session.cookie_httponly by default. php86.zip's php.ini is the 8.5 copy, which sets them back to 0 and empty, so a site moved to 8.6 with `ee site update --php=8.6` only got the new SameSite=Lax default. Set both to 1, matching the 8.6 image's php.ini (EasyEngine/dockerfiles#393). Only those two lines of php/php.ini change; every other entry, the entry order and the modes are as before.
@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters: 1

  • templates/config/php-fpm/php86.zip is excluded by !**/*.zip

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2b34fd73-2e0e-4e04-9641-b573be39a7ef

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@mrrobot47
mrrobot47 merged commit 96d3259 into EasyEngine:develop Nov 21, 2026
23 checks passed
mrrobot47 added a commit to EasyEngine/easyengine that referenced this pull request Nov 21, 2026
v3.10.1 keeps PHP 8.6's session defaults (session.use_strict_mode and session.cookie_httponly on) in php86.zip, which `ee site update --php=8.6` writes (EasyEngine/site-command#542).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant