mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
added warning about setlocale() not being thread safe
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@187536 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
df3b3986d0
commit
7a1882f63d
1 changed files with 13 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.22 $ -->
|
||||
<!-- $Revision: 1.23 $ -->
|
||||
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.setlocale">
|
||||
<refnamediv>
|
||||
|
@ -104,6 +104,18 @@
|
|||
what the system setlocale function returns.
|
||||
</para>
|
||||
</note>
|
||||
<warning>
|
||||
<para>
|
||||
The locale information is maintained per process, not per
|
||||
thread. If you are running PHP on a multithreaded server
|
||||
api like IIS or Apache on Windows you may experience
|
||||
sudden changes of locale settings while a script is
|
||||
running although the script itself never called <function>setlocale()</function>
|
||||
itself. This happens due to other scripts running in different
|
||||
threads of the same process at the same time changing the
|
||||
processwide locale using <function>setlocale</function>.
|
||||
</para>
|
||||
</warning>
|
||||
<tip>
|
||||
<para>
|
||||
Windows users will find useful information about
|
||||
|
|
Loading…
Reference in a new issue