note 14347 deleted from function.setlocale by nlopess

From: Date: Wed, 24 Jan 2007 11:02:29 +0000
Subject: note 14347 deleted from function.setlocale by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-122129@lists.php.net to get a copy of this message
Note Submitter: ---- Warning ! As specified in the man page, "The locale state is common to all threads within a process". This may be a limitation for PHP, because setlocale() stores this state within global variables shared by all threads instead of allocating a thread-level safe variable. If PHP runs in SAPI mode with enabled support for mulyithreading, this will break some PHP paradygmes... On some platforms only will the locale be set in thread-safe mode. Test your PHP installation in SAPI mode (integrated with a multithreaded web-server) by running concurrent scripts on the same web server, each of them setting a different locale and sleeping for a while before retreiving the current locale. This limitation does not applied to PHP running with a CGI interface (i.e. autonomous process).

« previous php.notes (#122129) next »