[php-src] PR #25422: ext/intl: Add Spoofchecker::getRestrictionLevel()

From: Date: Thu, 12 Nov 2026 14:25:41 +0000
Subject: [php-src] PR #25422: ext/intl: Add Spoofchecker::getRestrictionLevel()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40582@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25422 Author: LamentXU123 Expose ICU's uspoof_getRestrictionLevel() to retrieve the currently configured restriction level as a Spoofchecker restriction level constant. ```php <?php $checker = new Spoofchecker(); var_dump( $checker->getRestrictionLevel() === Spoofchecker::HIGHLY_RESTRICTIVE ); // bool(true) $checker->setRestrictionLevel(Spoofchecker::ASCII); var_dump( $checker->getRestrictionLevel() === Spoofchecker::ASCII ); // bool(true) ```

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