PHP 4.0 Bug #5510 Updated: date() function and TZ environment (again)
| From: | Bug Database | Date: | Tue, 05 Sep 2000 01:01:10 +0000 |
| Subject: | PHP 4.0 Bug #5510 Updated: date() function and TZ environment (again) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-32036@lists.php.net to get a copy of this message | ||
ID: 5510
Updated by: sniper
Reported By: peter.kuppelwieser@limu.com
Status: Closed
Bug Type: Misbehaving function
Assigned To:
Comments:
I can not reproduce this with latest CVS.
Please try php4.0.2 (or preferrably latest CVS) and reopen this bug
report if problem still exists.
--Jani
Previous Comments:
[2000-07-11 11:52:32] peter.kuppelwieser@limu.com
<?php
# similar as in bug #3977
#--------------------
putenv("TZ=Europe/Rome");
echo date("Y/m/d H:i:s")." ".getenv("TZ")."<br>";
putenv("TZ=Asia/Seoul");
echo date("Y/m/d H:i:s")." ".getenv("TZ")."<br>";
#--------------------
/*
I have now tried the test script and it still does not behave correctely
The output is now unpredictable.
sometimes the timezone settings of Rome is used
and sometimes the timezone of Seoul is used for
both echo statements
(one run of test produces Seoul time)
2000/07/11 00:22:22 Europe/Rome
2000/07/11 00:22:22 Asia/Seoul
(another run of test produces Rome time)
2000/07/10 17:29:11 Europe/Rome
2000/07/10 17:29:11 Asia/Seoul
*/
?>
strange isnt it?
configure statment:
'./configure' '--disable-debug' '--enable-track-vars'
'--enable-trans-sid'
'--with-apache=../apache_1.3.12' '--with-gd=/usr' '--with-mysql'
bye peter!
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=5510