[php-src] PR #23191: ext/intl: Fix stale intl error state in IntlNumberRangeFormatter
| From: | LamentXU123 | Date: | Sun, 09 Aug 2026 17:47:49 +0000 |
| Subject: | [php-src] PR #23191: ext/intl: Fix stale intl error state in IntlNumberRangeFormatter | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-37709@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23191
Author: LamentXU123
IntlNumberRangeFormatter::createFromSkeleton() and IntlNumberRangeFormatter::format() did not reset
intl error state
I know this is yet another "error state" fixes. Unfortunately we could use the function
macro added before because these are methods, and we can only reset the error state manually so far.
I personally hate the error state design. I think we should throw exceptions instead. But
considering BC breaks... this is just an idea in the void.
IntlNumberRangeFormatter is added in 8.6 so this is the correct branch.