[php-src] PR #25995: ext/intl: Implement several getters to SpoofChecker
| From: | LamentXU123 | Date: | Tue, 01 Dec 2026 16:02:03 +0000 |
| Subject: | [php-src] PR #25995: ext/intl: Implement several getters to SpoofChecker | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-41319@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25995
Author: LamentXU123
This follows up on #25422 by exposing two more ICU getters, uspoof_getChecks() and
uspoof_getAllowedLocales().
```
$checker = new Spoofchecker();
$checker->setAllowedLocales('en');
var_dump($checker->getAllowedLocales()); // string(2) "en"
var_dump((bool) ($checker->getChecks() & Spoofchecker::CHAR_LIMIT)); // bool(true)
```