|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-03-18 20:56 UTC] will dot skates at ntlworld dot com
[2012-04-21 10:33 UTC] cataphract@php.net
-Status: Open
+Status: Wont fix
[2012-04-21 10:33 UTC] cataphract@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 06:00:01 2025 UTC |
Description: ------------ The MessageFormatter constructor returns null when using an invalid format string. Reproduce code: --------------- <?php $example = new MessageFormatter('en_US', '{0,oops}'); var_dump($example); ?> Expected result: ---------------- I expected to receive a MessageFormatter object. The output of the script above should be: object(MessageFormatter)#1 (0) { } An invalid token in the format string should be ignored, possibly with an a error triggered, and a valid object returned. Alternately, an InvalidArgumentException exception could be thrown. Actual result: -------------- NULL