ID: 2155
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To:
Comments:
date takes an int, false gets converted to 0, and that is 1.1.1970.
Previous Comments:
---------------------------------------------------------------------------
[1999-08-25 17:24:35] [EMAIL PROTECTED]
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
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=2155&edit=2
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]