Skip to content

Fix SCCP evaluation of isset()/empty() on dimension of non-escaping object - #24090

Open
ndossche wants to merge 1 commit into
php:PHP-8.4from
ndossche:fix-sccp-isset-dim-partial-object
Open

ndossche wants to merge 1 commit into
php:PHP-8.4from
ndossche:fix-sccp-isset-dim-partial-object

Conversation

@ndossche

@ndossche ndossche commented Oct 3, 2026

Copy link
Copy Markdown
Member

ct_eval_isset_dim() treated partial objects like scalars and folded the result to false/true. But using an object as an array either calls ArrayAccess::offsetExists() or throws an Error.

…bject

`ct_eval_isset_dim()` treated partial objects like scalars and folded the
result to false/true. But using an object as an array either calls
`ArrayAccess::offsetExists()` or throws an Error.
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