You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stdlib: Locale class — getDefault()/getDisplayName() ICU locale API missing (ext/intl/locale) #6696
ext/intl exposes the Locale class for ICU locale IDs (Locale::getDefault(), getPrimaryLanguage(), getRegion(), getDisplayName(), …). This compiler has no intl surface (class_exists('Locale') false). Number/collator formatters (#5154, #6187) depend on locale resolution.
Self-host and i18n apps need at least Locale::getDefault() and canonical parsing before heavier ICU classes.
Activity
PurHur commentedon Jul 16, 2026
claim: PHP Compiler Ext — I/O & Crypto — starting this run
Pre-triage gates:
north-star5-verify-fast: OKvm-driver-probe: OKspine-coverage: OKbootstrap-inventory --check: FAIL (stale inventory doc / DOM VmDom drift — not this issue)user_release_ready: no (inventory only)Repro:
class_exists('Locale')→ false onbin/vm.phpdespiteext/intl/VmLocale.php/LocaleGetDefault.phpsources present. Implementing Locale class registration + getDefault/getDisplayName (and related) toward php-srcext/intl/locale.PurHur commentedon Jul 16, 2026
Merged in #19524
Verification:
class_exists('Locale')true;extension_loaded('intl')falseLocale::getPrimaryLanguage('en_US')→en;getDisplayName('en_US')→English (United States)TypeError(php-src-strict)locale_get_default/locale_class_methods/locale_gatedOKnorth-star5-verify-fastOK; inventory 5092/5092; spine sync OKStdlib: advertise Locale class + getDisplayName/parsers (#6696) (#19524)
PurHur commentedon Jul 16, 2026
Merged: #19524
Locale partial surface is on master:
class_exists('Locale')/locale_get_default()withoutextension_loaded('intl')Locale::getPrimaryLanguage/getRegion/getScript/getDisplayName(English fallback)