Re: Intl extension class MessageFormatter instantiationreturns NULL
| From: | Michael Wallner | Date: | Thu, 10 Dec 2009 11:46:45 +0000 |
| Subject: | Re: Intl extension class MessageFormatter instantiationreturns NULL | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-6892@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
> Hi!
>
>> This may be a incorrect use, but regardless null should not be
>> returned because no error code or error message can be returned. I am
>> struggling to find documentation on plural usage. Can someone point me
>> in the right direction?
> Your example's correct form probably would be something like:
>
> r = new MessageFormatter("en", "There are {0,choice,0#are no files|1#is
> one file|1<are many files} ok");
Nevertheless, the constructor should throw an exception, shouldn't it?
Regards,
Mike