Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is setlocale restricted to its script instance?

According to PHP, "locale information is maintained per process." Is my understanding correct that this is the same as saying per script instance with an Apache server?

In other words, if I have several concurrent sessions using different locales, can changes in one user's locale settings interfere with another's?

Also is there a conventional stateful way to set locale information?

like image 580
Greg Avatar asked Aug 22 '10 02:08

Greg


1 Answers

You are correct. Setting a different locale will not affect another user's settings. It's per script (dynamic) and isn't save anywhere.

like image 109
Matthew Avatar answered Nov 01 '22 17:11

Matthew