ID: 24213
User updated by: mf22cs at student dot hik dot se
Reported By: mf22cs at student dot hik dot se
-Status: No Feedback
+Status: Open
Bug Type: Date/time related
Operating System: WinXP Pro and Linux/Slack 2.4.18
PHP Version: 4.3.2
New Comment:
I still experience the problem, but since there is no solution provided
I did not know I had to responde to the answare at the 18th of June.
ZTS? don�t know...
/Marcus
Previous Comments:
------------------------------------------------------------------------
[2003-06-26 18:22:06] [EMAIL PROTECTED]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2003-06-18 14:36:25] [EMAIL PROTECTED]
Works just fine with Linux here using latest CVS.
Are you using ZTS (threaded php) on linux?
------------------------------------------------------------------------
[2003-06-16 18:32:28] mf22cs at student dot hik dot se
Description:
------------
getlastmod() gives the correct result on my localhost (which is at
WinXP running IIS 5.1 with PHP4.3.2). But on the Linux webserver
(running Apache 1.3.27 and PHP4.3.1) it gives a totally wrond result
(that seems to be the last accesstime).
Then I tried the filemtime(string) instead, but then my localhost got
all crazy. It showed the birthdate of UNIX instead.
Reproduce code:
---------------
GLM: <?php
echo date("d-m-Y H:i:s",getlastmod());
?>
<br/>FMT: <?php
echo date("d-m-Y
H:i:s",filemtime(trim($_SERVER["SCRIPT_FILENAME"])));
?>
Expected result:
----------------
GLM: 17-06-2003 01:20:55
FMT: 17-06-2003 01:20:55
at both systems (if that is the correct date/time of modification).
Actual result:
--------------
At the server this gives the following result:
GLM: 17-06-2003 01:11:35
FMT:17-06-2003 01:18:23
And at local host:
GLM: 17-06-2003 01:18:21
FMT:01-01-1970 01:00:00
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24213&edit=1