>Number: 4441
>Category: general
>Synopsis: Timezone change race condition?
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Tue May 18 19:30:02 PDT 1999
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.3.3
>Environment:
kult:/usr/local/httpd/htdocs # httpd -v
Server version: Apache/1.3.3 (Unix) S.u.S.E./6.0
Server built: Dec 12 1998 02:36:48
kult:/usr/local/httpd/htdocs # uname -a
Linux kult 2.0.36 #2 Tue Dec 8 14:58:04 MET 1998 i586 unknown
kult:/usr/local/httpd/htdocs # ls -l /lib/libc*
-rwxr-xr-x 1 root root 4016683 Apr 27 13:51 /lib/libc-2.1.1.so
lrwxrwxrwx 1 root root 13 May 18 2000 /lib/libc.so.4 ->
libc.so.4.7.6
-rwxr-xr-x 1 root root 634880 Apr 29 1996 /lib/libc.so.4.7.6
lrwxrwxrwx 1 root root 13 May 19 2000 /lib/libc.so.6 ->
libc-2.1.1.so
-rwxr-xr-x 1 root root 63878 Apr 27 13:54 /lib/libcrypt-2.1.1.so
lrwxrwxrwx 1 root root 17 May 19 2000 /lib/libcrypt.so.1 ->
libcrypt-2.1.1.so
>Description:
I was playing around with date.php3 of the example installation and wrote
following php3-file:
<HTML>
<BODY>
<?echo date("D M d, Y H:i:s", time())?><BR>
<?echo gmdate("D M d, Y H:i:s", time())?><BR>
</BODY>
</HTML>
My time zone is Europe/Berlin, currently Central Europa Daylight Savings Time
(CEST)
When I continously reload the URL
http://kult.stura.uni-leipzig.de/date/now.php3
I get diverting results. Sometimes both lines are the same and sometimes they
differ by 2 hours, as it should be. Using the "date" command I could not make
out such behaviour so I suspect apache or php3 to be the buggy code.
>How-To-Repeat:
Try continously reload that URL
http://kult.stura.uni-leipzig.de/date/now.php3
let's say for at least 10 times. Usually there will be a change after about
3 reloads.
>Fix:
I do not have any suggestions than simply fixing that bug.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request ]
[from a developer. ]
[Reply only with text; DO NOT SEND ATTACHMENTS! ]