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:
Hartmut Holzgraefe 2005-06-03 00:46:55 +00:00
parent df3b3986d0
commit 7a1882f63d

View file

@ -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