Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
JohnathonKoster wants to merge 1 commit intostatamic:6.x from
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.x from
JohnathonKoster:bugfix/php-tag-assignments

Conversation

@JohnathonKoster
Copy link
Contributor

@JohnathonKoster JohnathonKoster commented Feb 14, 2026
edited
Loading

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /