Re: Re: will PHP and GNU gettext work properly with Apache?
| From: | Moriyoshi Koizumi | Date: | Wed, 02 Mar 2005 16:52:31 +0000 |
| Subject: | Re: Re: will PHP and GNU gettext work properly with Apache? | ||
| References: | 1 2 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-842@lists.php.net to get a copy of this message | ||
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.phpGreat. 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 ===============================================================