On Sun, 3 Jul 2005, Nuno Lopes wrote:
Hi Derick et all,
I think that having the date_timezone_set() and date_timezone_get()
functions
along with the default_timezone ini option is redundant. You can use
ini_set()/ini_get() to emulate the functions you added. I don't see a
point to
have 3 ways to set the TZ setting.. (env, ini, function).
It is needed, as the TZ overrides the default setting, and you need to
be able to override this setting in your script. I don't want people to
rely on an environment variable.
Derick
So, you can give precedence to the ini option over the TZ var. That way you
don't need the functions.
IMHO this is the better choice, as it allows you to set a site wide ini
option, without touching in the environment vars or having to call a
function in each script.
Nuno
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php