Skip to content

ext/intl: Add IntlNumberFormatter::toSkeleton() - #25965

Open
LamentXU123 wants to merge 1 commit into
php:masterfrom
LamentXU123:intl-numberformatter-to-skeleton
Open

LamentXU123 wants to merge 1 commit into
php:masterfrom
LamentXU123:intl-numberformatter-to-skeleton

Conversation

@LamentXU123

@LamentXU123 LamentXU123 commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

btw It is possible for this function to return false

$f = IntlNumberFormatter::createFromSkeleton(str_repeat('@', 1000), 'en_US');

var_dump($f instanceof IntlNumberFormatter);  // bool(true)
var_dump($f->toSkeleton());                   // bool(false)
echo intl_error_name($f->getErrorCode());     // U_NUMBER_ARG_OUTOFBOUNDS_ERROR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants