|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-04-11 13:20 UTC] ab@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: ab
[2016-04-11 13:20 UTC] ab@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 10:00:01 2025 UTC |
Description: ------------ When no parameters are supplied to MessageFormatter::formatMessage or $messageFormatter->format all placeholders are replaced with {0}. If at least one argument is supplied it works as expected. Test script: --------------- $pattern = 'Let us do {test} now!'; echo MessageFormatter::formatMessage('en_US', $pattern, array()); $formatter = new MessageFormatter('en_US', $pattern); echo $formatter->format(array()); Expected result: ---------------- Let us do {test} now! Actual result: -------------- Let us do {0} now!