Skip to content

ext/intl: Include <limits> for std::numeric_limits - #23072

Merged
LamentXU123 merged 1 commit into
php:masterfrom
LamentXU123:intl-benchmark
Aug 5, 2026
Merged

ext/intl: Include <limits> for std::numeric_limits#23072
LamentXU123 merged 1 commit into
php:masterfrom
LamentXU123:intl-benchmark

Conversation

@LamentXU123

Copy link
Copy Markdown
Member

This fix #21101 (comment)

The bug is quite hidden. This line of code in the commit

 gcal->setGregorianChange(-std::numeric_limits<double>::infinity(), status);

Some extreme build environments happen to get std::numeric_limits through transitive includes. So we need to put a Include manually

@devnexen

devnexen commented Aug 5, 2026

Copy link
Copy Markdown
Member

a little Co-authored-by would be nice.

@devnexen devnexen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm otherwise, needs to fix broken builds.

@LamentXU123

Copy link
Copy Markdown
Member Author

I am used to add the tag when squash&merging.

@LamentXU123

Copy link
Copy Markdown
Member Author

Does this worth a NEWS entry? @devnexen

@devnexen

devnexen commented Aug 5, 2026

Copy link
Copy Markdown
Member

I do not think so

Co-authored-by: David Carlier <devnexen@gmail.com>
@LamentXU123
LamentXU123 merged commit 7a0b0fc into php:master Aug 5, 2026
14 of 18 checks passed
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.

2 participants