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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php