Re: Re: strcoll() behaviour on PHP6
| From: | Derick Rethans | Date: | Thu, 30 Apr 2009 18:10:07 +0000 |
| Subject: | Re: Re: strcoll() behaviour on PHP6 | ||
| References: | 1 2 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-64835@lists.php.net to get a copy of this message | ||
On Thu, 30 Apr 2009, Andrei Zmievski wrote:
> zoe wrote:
>
> > Hi Andrei - I'm seeing a minor difference in behaviour between PHP5 and PHP6
> > fort strcoll(). This code:
> >
> > $a = 'a';
> > $b = 'A';
> >
> > setlocale (LC_COLLATE, 'en_US'); // PHP6 locale_set_default ('en_US');
> > $result = strcoll($a, $b);
> > var_dump($result);
[snip]
> > On the assumption that this is an intentional change in default behaviour
> > between PHP5 and PHP6 should it be documented somewhere? Apologies if it is,
> > but I can't find it.
>
> It probably should be, but I would just make a note about it and do it later.
> Lots of other stuff will need to be documented for 6, so we should accumulate
> notes for now.
Actually, in this case, we probably should just restore the old behavior
by setting the CAPS_FIRST option to ucol_strcoll. There is no reason to
"break" this one I think.
regards,
Derick
--
http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org
twitter: @derickr