setlocale safety

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bestbikeever

    setlocale safety

    from manual:

    Warning: 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 setlocale() itself. This happens due to other scripts running
    in different threads of the same process at the same time changing the
    processwide locale using setlocale().

    Am I to assume that using setlocale is safe on *nix/apache/mod_php
    systems?

    Thanks
    Jeff
Working...