Skip to content

Error on resource ID space overflow #7428

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

Closed
wants to merge 1 commit into from
Closed

Conversation

nikic
Copy link
Member

@nikic nikic commented Aug 30, 2021

When more than INT_MAX resource are created, throw a fatal error, rather than reusing already allocated IDs, which will result in assertion failure or crashes down the line.

This doesn't really fix anything, but it makes the failure cause a whole lot more obvious. Inspired by https://bugs.php.net/bug.php?id=81399.

@krakjoe
Copy link
Member

krakjoe commented Aug 31, 2021

Just to note, don't forget to note the change in behaviour in upgrading please ...

@nikic
Copy link
Member Author

nikic commented Aug 31, 2021

@krakjoe This is a bug fix for PHP 7.4, I don't think anyone is going to see an UPGRADING note there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants