Last modified: 2012-08-14 11:24:08 UTC
Since PHP 5.1.0, it is recommended to use date_default_timezone_set/date_default_timezone_get
functions instead of setting `TZ' environment variable to change the time zone. And the
former may enable users to change the time zone under safe-mode systems which prevent
changing environment variables.
Created attachment 2577 [details]
patch to GlobalFunctions.php and Parser.php
This patch replaces putenv('TZ=foo') and getenv() with date_default_timezone_*
functions, and provides compatible functions setting/getting TZ environment
variable for PHP < 5.1.0.
Fixed in r35469.
Strict standards error in Parser.php with function date()
Displayed error message:
Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Karachi' for '5.0/no DST' instead in C:\xampplite\htdocs\w\includes\Parser.php on line 2388
Lines changes from 2388 to 2396
Environment: Windows XP SP2, XAMPPlite v. 1.6.2
My guess: this is introduced in r35469
Reverted in r35504. Regardless an E_STRICT level error does not constitute a major seveirty and High priority bug.
*** This bug has been marked as a duplicate of bug 2658 ***