Re: Re: cvs: php-src / NEWS /ext/date php_date.c php_date.h/ext/date/tests bug26198.phpt bug29585.phpt
default-timezone-2.phpttimezone-configuration.phpt
| From: | Nuno Lopes | Date: | Sun, 03 Jul 2005 12:38:38 +0000 |
| Subject: | Re: Re: cvs: php-src / NEWS /ext/date php_date.c php_date.h/ext/date/tests bug26198.phpt bug29585.phpt default-timezone-2.phpttimezone-configuration.phpt |
||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-17089@lists.php.net to get a copy of this message | ||
On Sun, 3 Jul 2005, Nuno Lopes wrote: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. NunoHi 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