[php-src] master: ext/intl: Include <limits> for std::numeric_limits (#23072)
| From: | Weilin Du via GitHub | Date: | Wed, 05 Aug 2026 16:33:20 +0000 |
| Subject: | [php-src] master: ext/intl: Include <limits> for std::numeric_limits (#23072) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-140502@lists.php.net to get a copy of this message | ||
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 <devnexen@gmail.com>
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>