Bug #14837: getlastmod() returning file access time, not modification time

From: Date: Fri, 04 Jan 2002 03:11:20 +0000
Subject: Bug #14837: getlastmod() returning file access time, not modification time
Groups: php.dev 
Request: Send a blank email to php-dev+get-75831@lists.php.net to get a copy of this message
From: wls@wwco.com Operating system: Linux Slackware, kernel 2.4.16 PHP version: 4.1.0 PHP Bug Type: Directory function related Bug description: getlastmod() returning file access time, not modification time I've just upgraded to PHP 4.1.0 and I have code on my site (Linux/Apache) that displays when the page was last modified: <? echo(date("d-M-Y H:i:s", getlastmod() )); ?> This used to work like a champ. However, I noticed after upgrading that the date/time stamp it displays is that of the last _access_, not modification. Thus, I'm *expect* the date as shown by: $ ls -l index.php Instead, I'm *seeing* the date as shown by: $ ls -lu index.php I didn't notice it in the bug-fix list for PHP 4.1.1. I didn't see it in the PHP Reported Bug List. -Walt Stoneburner, wls@wwco.com -- Edit bug report at: http://bugs.php.net/?id=14837&edit=1

« previous php.dev (#75831) next »