[php-src] master: ext/intl: Include <limits> for std::numeric_limits (#23072)

Weilin Du via GitHub <[email protected]>
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: Weilin Du (LamentXU123)
Committer: GitHub (web-flow)
Pusher: LamentXU123
Date: 2026-08-06T00:33:17+08:00

Commit: https://github.com/php/php-src/commit/7a0b0fcc2ce04c59d2e404e45a8a03dfd4cb6d42
Raw diff: https://github.com/php/php-src/commit/7a0b0fcc2ce04c59d2e404e45a8a03dfd4cb6d42.diff

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

This fixes #21101 (comment)

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

Co-authored-by: David Carlier <[email protected]>

Changed paths:
  M  ext/intl/dateformat/dateformat_helpers.cpp


Diff:

diff --git a/ext/intl/dateformat/dateformat_helpers.cpp b/ext/intl/dateformat/dateformat_helpers.cpp
index d10acb7273fe..5d93536807a9 100644
--- a/ext/intl/dateformat/dateformat_helpers.cpp
+++ b/ext/intl/dateformat/dateformat_helpers.cpp
@@ -14,6 +14,8 @@
 
 #include "../intl_cppshims.h"
 
+#include <limits>
+
 #include <unicode/calendar.h>
 #include <unicode/gregocal.h>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.