Re: Adding LC_* constants to ext/standard...
| From: | Hartmut Holzgraefe | Date: | Fri, 15 Dec 2000 14:16:08 +0000 |
| Subject: | Re: Adding LC_* constants to ext/standard... | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-41455@lists.php.net to get a copy of this message | ||
Andi Gutmans wrote:
>
> Why would you need to change setlocale()? The constants are constants. It
> will automatically work.
current prototype:
string setlocale (string category, string locale)
^^^^^^
new prototype:
string setlocale (int category, string locale)
^^^
or
string setlocale (mixed category, string locale)
^^^^^
>
> >On Thu, 14 Dec 2000, Zak Greant wrote:
> >Should setlocale() be modified to use only the constants and not
> >support the strings anymore? Or support both ways?
definetly both due to compatibility reasons :(
--
Hartmut Holzgraefe hartmut@six.de http://www.six.de
+49-711-99091-77