Skip to content

Fix escape analysis for objects implementing ArrayAccess - #24089

Open
ndossche wants to merge 1 commit into
php:PHP-8.4from
ndossche:fix-escape-analysis-arrayaccess
Open

ndossche wants to merge 1 commit into
php:PHP-8.4from
ndossche:fix-escape-analysis-arrayaccess

Conversation

@ndossche

@ndossche ndossche commented Oct 3, 2026

Copy link
Copy Markdown
Member

Objects that implement ArrayAccess can run arbitrayr code on isset(), dimensions accesses etc. SCCP can then run on stale property values that were manipulated by such ArrayAccess handlers.
We also take into accuont that we don't know the interfaces yet of unlinked classes.

Objects that implement ArrayAccess can run arbitrayr code on isset(),
dimensions accesses etc. SCCP can then run on stale property values that
were manipulated by such ArrayAccess handlers.
We also take into accuont that we don't know the interfaces yet of
unlinked classes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant