Re: [PHP-DEV] timezones and thread safety

2001-04-18 Thread Derick Rethans
Hello, AFIAK, this was needed because of a bug. I suggest you check it out in the bug DB. Derick On Tue, 17 Apr 2001, James L. Pine wrote: > ok, this is a little more bizarre than I thought it was. > > apparently, tzset is called in mktime or when putenv('TZ=foo') are > called. so this works,

Re: [PHP-DEV] timezones and thread safety

2001-04-17 Thread Adam Trachtenberg
On Tue, 17 Apr 2001, Stephen van Egmond wrote: > I'm a little bit baffled about why you would want to change the time > zone while a system is up and running. Isn't this the kind of thing > you set and forget? I guess that depends upon if you're interested in figuring out what time it is somep

Re: [PHP-DEV] timezones and thread safety

2001-04-17 Thread Stephen van Egmond
James L. Pine ([EMAIL PROTECTED]) wrote: > I'm running php as an apache 1.x module, so I just hacked in a userspace > tzset(TZ) function, but this would be bad for systems that need to play > nicely with threads. I'm a little bit baffled about why you would want to change the time zone while a sy

Re: [PHP-DEV] timezones and thread safety

2001-04-17 Thread James L. Pine
ok, this is a little more bizarre than I thought it was. apparently, tzset is called in mktime or when putenv('TZ=foo') are called. so this works, and putenv'ing TZ isn't thread safe already, but should the mktime tzset call be taken out? and maybe some thread safe method of setting a timezone

[PHP-DEV] timezones and thread safety

2001-04-17 Thread James L. Pine
there are quite a few bug entries that deal with timezones and the TZ environment veriable... they're marked as closed and reentered in each version release. from what I can gather from the code, it's still not fixed. localtime_r does not set the global tzname from TZ when called. I believe