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 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

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