ID: 37908
Updated by: [EMAIL PROTECTED]
Reported By: php at raj dot homelinux dot com
-Status: Open
+Status: Feedback
Bug Type: Apache2 related
Operating System: Linux 2.6
PHP Version: 4.4.2
New Comment:
What kind of MPM are you using?
Previous Comments:
------------------------------------------------------------------------
[2006-06-25 12:56:24] php at raj dot homelinux dot com
Description:
------------
putenv() claims that the env variables are reset to their original
values when the script exits. HOwever, this doesn't seem to be
happening - as a result, if the env var TZ is set from a php script, it
affects apache2 logs, changing the timestamp for all subsequent gets
served by the process that ran this php script which set TZ.
Reproduce code:
---------------
set $timezone different from server timezone and run:
putenv("TZ=".$timeZone);
--
then do a few more gets and check the apache logs, you will see
something like:
xx.xx.xx.xx - - [19/Jun/2006:23:05:18 -0400] "GET ..."
xx.xx.xx.xx - - [19/Jun/2006:23:05:18 -0400] "GET ..."
xx.xx.xx.xx - - [20/Jun/2006:13:05:11 +1000] "GET ..."
(see how the timestamp in the apache log flipped from -0400 to +1000..
thats the problem)
Expected result:
----------------
Timestamps should remain consistent
Actual result:
--------------
Timestamps are not consistent (see example above)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37908&edit=1