Skip to content

Conversation

@anshujain0
Copy link

This PR adds a documentation note explaining how intval() behaves when
converting strings containing scientific notation, including cases where
integer overflow results in PHP_INT_MAX.

Fixes #5019

@Girgias
Copy link
Member

Girgias commented Jan 13, 2026

Conflicts with #5098

@anshujain0 anshujain0 closed this Jan 14, 2026
@anshujain0
Copy link
Author

Thanks for pointing this out, and sorry for the duplicate PR.

I missed the existing PR (#5098) when I opened this one. After reviewing it, I agree that it already covers the same change, so I’ve closed this PR to avoid duplication. Appreciate the review and guidance. I’ll make sure to double-check for existing PRs more carefully before opening new ones in the future.

@Girgias
Copy link
Member

Girgias commented Jan 14, 2026

Not your fault, GitHub does a bad job at automatically linking PRs with issues unless manually done, which is easy to forget :)

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.

intval returns unxpected result for string with "." and "e" which is not documented.

2 participants