[php-src] PR #22500: ext/intl: Reset IntlChar error state on method entry
| From: | kn1g78 | Date: | Sun, 28 Jun 2026 14:28:40 +0000 |
| Subject: | [php-src] PR #22500: ext/intl: Reset IntlChar error state on method entry | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36713@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22500
Author: kn1g78
IntlChar methods did not reset the global intl error state on entry.
Because of that, a successful call could still leave intl_get_error_code() and
intl_get_error_message() reporting an error from a previous failed
IntlChar
call.
This adds the reset at method entry and a PHPT covering a failed
IntlChar::digit() call followed by a successful IntlChar::forDigit()
call.