cvs: phpdoc /en/reference/strings/functions setlocale.xml

From: Date: Fri, 03 Jun 2005 00:46:55 +0000
Subject: cvs: phpdoc /en/reference/strings/functions setlocale.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969368402@lists.php.net to get a copy of this message
hholzgra Thu Jun 2 20:46:55 2005 EDT Modified files: /phpdoc/en/reference/strings/functions setlocale.xml Log: added warning about setlocale() not being thread safe http://cvs.php.net/diff.php/phpdoc/en/reference/strings/functions/setlocale.xml?r1=1.22&r2=1.23&ty=u Index: phpdoc/en/reference/strings/functions/setlocale.xml diff -u phpdoc/en/reference/strings/functions/setlocale.xml:1.22 phpdoc/en/reference/strings/functions/setlocale.xml:1.23 --- phpdoc/en/reference/strings/functions/setlocale.xml:1.22 Thu Sep 16 10:14:17 2004 +++ phpdoc/en/reference/strings/functions/setlocale.xml Thu Jun 2 20:46:55 2005 @@ -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

« previous php.doc (#969368402) next »