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, 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 for a page should be put in?
>
>
> --jlp
>
>
> --
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>

Derick Rethans

-
PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED]
 SRM: Site Resource Manager - www.vl-srm.net
-
JDI Media Solutions - www.jdimedia.nl - [EMAIL PROTECTED]
 Boulevard Heuvelink 102 - 6828 KT Arnhem - The Netherlands
-


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 someplace else...

-adam

-- 
/ adam maccabee trachtenberg | visit college life online \
\ [EMAIL PROTECTED]   | http://www.student.com/


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 system is up and running.   Isn't this the kind of thing
you set and forget?


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 for a page should be put in?


--jlp


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]