Skip to content

[6.x] Fixes an issue with PHP tag and assignments#13939

Open
JohnathonKoster wants to merge 1 commit intostatamic:6.xfrom
JohnathonKoster:bugfix/php-tag-assignments
Open

[6.x] Fixes an issue with PHP tag and assignments#13939
JohnathonKoster wants to merge 1 commit intostatamic:6.xfrom
JohnathonKoster:bugfix/php-tag-assignments

Conversation

@JohnathonKoster
Copy link
Contributor

@JohnathonKoster JohnathonKoster commented Feb 14, 2026

This PR fixes an issue caused by an interaction with {{? ?}} tags and runtime assignments.

The Problem

Depending on the current setup and stack, when you use {{? /* .... */ ?}}, the runtime would attempt to propagate changes to variable assignments from the inner scope. The runtime was missing a guard preventing assignments from being updated when they shouldn't.

When assignments are updated incorrectly, you can get into a situation where outer scope variables are overwritten.

The Solution

The fix was to add an extra guard preventing the reassignment of unchanged variables, which could change their internal references as scope frames are popped.

@JohnathonKoster JohnathonKoster changed the title [6.x[ Fixes an issue with PHP tag and assugnments [6.x] Fixes an issue with PHP tag and assugnments Feb 14, 2026
@JohnathonKoster JohnathonKoster changed the title [6.x] Fixes an issue with PHP tag and assugnments [6.x] Fixes an issue with PHP tag and assignments Feb 14, 2026
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