Skip to content

Optimizer: Fix optimizer throwing key 8.5 - #24654

Draft
jorgsowa wants to merge 2 commits into
php:PHP-8.5from
jorgsowa:fix-optimizer-throwing-key-8.5
Draft

jorgsowa wants to merge 2 commits into
php:PHP-8.5from
jorgsowa:fix-optimizer-throwing-key-8.5

Conversation

@jorgsowa

Copy link
Copy Markdown
Contributor

Follow up of #24653 for 8.5 branch. Not yet ready for review

Float keys emit a deprecation and resource keys a warning, which an error
handler can turn into an exception. Share one key mask in
zend_may_throw_ex() so ASSIGN_DIM, INIT_ARRAY, ADD_ARRAY_ELEMENT,
FETCH_DIM_W/FETCH_LIST_W, ARRAY_KEY_EXISTS, FETCH_DIM_IS and
ISSET_ISEMPTY_DIM_OBJ agree.
Null keys emit a deprecation since PHP 8.5, which an error handler can
turn into an exception. Add MAY_BE_NULL to MAY_BE_THROWING_KEY.
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