Bug #2155: amusing interaction between date() and filemtime(), when filemtime() is false
| From: | seth at psy dot au dot dk | Date: | Wed, 25 Aug 1999 21:24:36 +0000 |
| Subject: | Bug #2155: amusing interaction between date() and filemtime(), when filemtime() is false | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10201@lists.php.net to get a copy of this message | ||
From: seth@psy.au.dk
Operating system: Linux 2.2.5
PHP version: 3.0.12
PHP Bug Type: Feature/Change Request
Bug description: amusing interaction between date() and filemtime(), when filemtime() is false
The following code fragment should be self-explanatory
$dbtime=date("d-m-Y", filemtime("/var/lib/mysql/sample/DBase.ISD"));
print "(Databases last updated: " . $dbtime . ")\n"
Recently I moved the script to another machine, where the file named
in filemtime did not exist.
The result:
(Databases last updated: 01-01-1970)
No big deal. But maybe date() should respond to whatever
filemtime() returns ( "false" according to the man page) with
an error message.
Cheers,
Seth