NYCPHP Meetup

NYPHP.org

[nycphp-talk] Localizing Time Zones

David Sklar sklar at sklar.com
Tue Aug 12 15:49:27 EDT 2003


> This seems to be the solution we're after, but we're concerned about
> whether this is thread safe, particularly in the context of a heavy
> load server with lots of users redefining the TZ environment variable
> simultaneously.

My (Linux 2.4.20) "man putenv" says, in part:

      The  putenv()  function is not required to be reentrant, and the one
in
      libc4, libc5 and glibc2.0 is not, but the glibc2.1 version is.

(PHP's putenv() function calls the underlying putenv() system call.)

What OS and web server are you using?

David




More information about the talk mailing list