Skip to content

Stdlib: Locale::getDisplayLanguage()/getDisplayRegion()/getKeywordValue() missing after #20738 (ext/intl/locale) #20755

Description

@PurHur

Category

stdlib · php-src-strict · ext/intl Locale · pillar 4

Problem

After #6696 / #20036 / #20738, Locale has getDisplayName, canonicalize, parseLocale, composeLocale, getKeywords, lookup, acceptFromHttp, filterMatches, but the per-component display getters and keyword mutators from php-src are still missing.

Repro Zend (intl) VM PROFILE=8.4 (2026-07-19, 1510ad5a2)
method_exists('Locale','getDisplayName') true true (English (United States))
getDisplayLanguage / getDisplayRegion / getDisplayScript / getDisplayVariant true false
getAllVariants true false
getKeywordValue / setKeywordValue true false

php-src reference

PHP implementation target

Repro

./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && PHP_COMPILER_PROFILE=8.4 php bin/vm.php test/repro/issue_locale_display_methods.php'

Done when

  • Locale::getDisplayLanguage('en_US','en') (and Region/Script/Variant) match Zend display strings
  • getAllVariants / getKeywordValue / setKeywordValue present and php-src-shaped
  • Procedural locale_get_display_* / locale_get_keyword_* aliases registered where php-src has them
  • Compliance .phpt guard (VM+JIT)
  • php-src-strict; no php-compiler-strict shortcut

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:vmVirtual machineenhancementNew feature or requestimplementation-readySpec complete: repro, php-src ref, done-when — safe for workers to claimphase-4:stdlibPhase 4 – stdlib for web appsstdlib

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions