Bug #16630: getlastmod() returns file access time, not modification time
| From: | johan at ekenberg dot se | Date: | Tue, 16 Apr 2002 09:39:37 +0000 |
| Subject: | Bug #16630: getlastmod() returns file access time, not modification time | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-5093@lists.php.net to get a copy of this message | ||
From: johan@ekenberg.se
Operating system: Linux, glibc 2.2.3
PHP version: 4.1.2
PHP Bug Type: *Directory/Filesystem functions
Bug description: getlastmod() returns file access time, not modification time
This is similar to http://bugs.php.net/bug.php?id=14837 which was
discarded
with a "works in CVS". I'm not so sure it's solved that easily.
Example page here:
http://www.ekenberg.se/php_getlastmod/getlastmod.php
The example shows the output from getlastmod() compared to "ls -l" and "ls
-lu". There's also a link to phpinfo().
The bug only appears when using PHP as an Apache module. When running from
the commandline the file modification time is shown correctly.
--
Edit bug report at http://bugs.php.net/?id=16630&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16630&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16630&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16630&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16630&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16630&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16630&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16630&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16630&r=submittedtwice