RE: [PHP-DEV] issues with gettext on multithreaded servers
| From: | David Sklar | Date: | Fri, 21 Mar 2003 18:14:17 +0000 |
| Subject: | RE: [PHP-DEV] issues with gettext on multithreaded servers | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-137@lists.php.net to get a copy of this message | ||
On Friday, March 21, 2003 1:11 PM, Wez Furlong wrote:
> Perhaps it would be a good idea to develop a PEAR package that sits on
> top of the win32nls and/or UNIX nls functions to provide a portable
> API for PHP scripts?
This is a good idea. The extension can be told whether thread-specific
settings or environment variables should take priority and then do the right
think based on the OS.
David
> On Fri, 21 Mar 2003, Nathan Fredrickson wrote:
>
>> Hi all,
>>
>> I have found some problems (and possible solutions) concerning use
>> of the gettext extension on multithreaded servers.
> ...
>> The alternative then is to call SetThreadLocale() through a new php
>> extension. I think this should be seperate from the gettext
>> extension since locales are used more widely than just gettext. My
>> current idea is to create an extension named w32nls. This would be
>> a win32 only extension that would provide access to a collection of
>> the functions in the win32 NLS API [1] including
>> Get/SetThreadLocale().
> ...
>> The downside however will be increased incompatibility between win32
>> and unix based PHP applications if such an extension is ever widely
>> used.
>>
>> I welcome any feedback on these ideas before I proceed.
>> Thanks, Nathan