note 14347 added to function.setlocale.php

From: Date: Fri, 27 Jul 2001 07:34:31 +0000
Subject: note 14347 added to function.setlocale.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-15905@lists.php.net to get a copy of this message
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). http://www.php.net/manual/en/function.setlocale.php

« previous php.notes (#15905) next »