[php-src] PR #23539: ext/intl: fix build with older ICU

From: Date: Wed, 02 Sep 2026 11:26:41 +0000
Subject: [php-src] PR #23539: ext/intl: fix build with older ICU
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-38262@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/23539 Author: oerdnj Covariant return types for clone() were only introduced in ICU 64; before that NumberFormat::clone() returns Format*, so cast the result explicitly in NumberFormatter_object_clone(). <unicode/numberrangeformatter.h> is a C++-only header, and older ICU does not wrap it in U_SHOW_CPLUSPLUS_API, so including it from php_intl.c breaks the C compile. Move it into the __cplusplus branch, next to the using declaration that needs it.

« previous php.git-pulls (#38262) next »