Re: Local time zone

From: Date: Wed, 14 Dec 2011 23:29:42 +0000
Subject: Re: Local time zone
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-56930@lists.php.net to get a copy of this message
On 15/12/11 00:10, Oleg Oshmyan wrote: > PHP internally already has php_localtime_r and php_gmtime_r in > main/php_reentrancy.h, implemented in main/reentrancy.c, and they are > already used in various places in the code, including the guessing > algorithm that is being removed in PHP 5.4. So at the very least > thread-safety (and in fact portability too) should not become worse than > it is now. Oh, nice. I thought thet would be doing its own argument passing, based on timelib, but turns out they do retrive the value from the system {local,gm}time, even on those without a _r version.

« previous php.internals (#56930) next »