Re: Re: will PHP and GNU gettext work properly with Apache?

Moriyoshi Koizumi <[email protected]>
Newsgroups gmane.comp.php.internationalization
Message-ID <[email protected]>
On 2005/03/01, at 2:00, Dave Patton wrote:
> I've added a note to the PHP website page for gettext:
> http://www.php.net/manual/en/ref.gettext.php

Great. Note that msvcrt.lib, which bundled gettext binary is linked
against, is MT-safe too.

libintl included in glibc is perfectly reentrant, using glibc's
mutex locking facility. The same may not apply to other platforms.

Moriyoshi

> ===============================================================
> Make sure you check your webserver configuration before deciding
> to use gettext, because if you are running in a multi-threaded
> environment you should not use gettext, as it is not thread-safe.
>
> A future version of gettext(possibly 0.15) may be thread-safe.
> Any gettext dependencies, such as glibc would also need to be
> thread-safe.
>
> Apache 1.3 on Unix generally is non-threaded, but on Windows it
> is multithreaded.
> Apache 2.0 has support for MPMs(Multi-Processing Modules), some of
> which support multiple threads:
> http://httpd.apache.org/docs-2.0/mpm.html
> ===============================================================

-- 
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.