Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't clobber null values if array_key_exists(PHP_INT_MAX, $array) #26

Closed
wants to merge 1 commit into from

Conversation

cscott
Copy link
Contributor

@cscott cscott commented Jul 28, 2022

Handle the (extremely unusual) case where the $array[PHP_INT_MAX] = null; ; don't clobber the key in that case.

@sebastianbergmann
Copy link
Owner

Can you please change the commit message to be more useful? Thanks.

@cscott
Copy link
Contributor Author

cscott commented Jul 29, 2022

Sorry, I used github's 'edit from the webpage' feature and didn't notice that it chose a quite unhelpful summary.

Handle the (extremely unusual) case where the PHP_INT_MAX or
PHP_INT_MAX-1 index of the array is in use, but with a null value:
don't clobber the key in that case.  Similarly, don't clobber null
values when selecting a random place to write the array marker and
key.
@cscott cscott changed the title Update Context.php Don't clobber null values if array_key_exists(PHP_INT_MAX, $array) Jul 29, 2022
@sebastianbergmann
Copy link
Owner

Merged manually, thanks.

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.

None yet

2 participants