fix(worker): reset ini and session if changed during worker request by xavierleune · Pull Request #2139 · php/frankenphp

@xavierleune changed the title fix(worker): reset ini and session if changed during worker fix(worker): reset ini and session if changed during worker request

Jan 23, 2026

dunglas

@dunglas @xavierleune

This was referenced

Feb 14, 2026

This was referenced

Feb 16, 2026

dunglas added a commit that referenced this pull request

Feb 23, 2026
Revert the INI snapshot/restore mechanism from #2139 which caused
issues with frameworks that lazily set ini values like session.save_path
(#2185). Replace the session handler snapshot/restore with a simpler
direct session state reset from #2193, which preserves mod_user_names
across requests without requiring session module reload.

Co-Authored-By: Xavier Leune <xavier.leune@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

dunglas added a commit that referenced this pull request

Feb 23, 2026
Revert the INI snapshot/restore mechanism from #2139 which caused
issues with frameworks that lazily set ini values like session.save_path
(#2185). Replace the session handler snapshot/restore with a simpler
direct session state reset from #2193, which preserves mod_user_names
across requests without requiring session module reload.

Co-Authored-By: Xavier Leune <xavier.leune@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

dunglas added a commit that referenced this pull request

Feb 23, 2026
Revert the INI snapshot/restore mechanism from #2139 which caused
issues with frameworks that lazily set ini values like session.save_path
(#2185). Replace the session handler snapshot/restore with a simpler
direct session state reset from #2193, which preserves mod_user_names
across requests without requiring session module reload.

Co-Authored-By: Xavier Leune <xavier.leune@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

dunglas added a commit that referenced this pull request

Feb 23, 2026
Revert the INI snapshot/restore mechanism from #2139 which caused
issues with frameworks that lazily set ini values like session.save_path
(#2185). Replace the session handler snapshot/restore with a simpler
direct session state reset from #2193, which preserves mod_user_names
across requests without requiring session module reload.

Co-Authored-By: Xavier Leune <xavier.leune@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

johanjanssens pushed a commit to johanjanssens/frankenphp that referenced this pull request

Feb 26, 2026
Revert the INI snapshot/restore mechanism from php#2139 which caused
issues with frameworks that lazily set ini values like session.save_path
(php#2185). Replace the session handler snapshot/restore with a simpler
direct session state reset from php#2193, which preserves mod_user_names
across requests without requiring session module reload.

Co-Authored-By: Xavier Leune <xavier.leune@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>