PHP 4.0 Bug #4454 Updated: mktime() returns -1 if year is less than 1970
| From: | Bug Database | Date: | Mon, 22 May 2000 09:15:47 +0000 |
| Subject: | PHP 4.0 Bug #4454 Updated: mktime() returns -1 if year is less than 1970 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-19167@lists.php.net to get a copy of this message | ||
ID: 4454
Updated by: joey
Reported By: ed@linkstream.net
Status: Feedback
Bug Type: Scripting Engine problem
Assigned To:
Comments:
Look at the manual: (http://www.php.net/manual/function.mktime.php)
"Returns the Unix timestamp corresponding to the arguments given.
This timestamp is a long integer containing the number of seconds
between the Unix Epoch (January 1 1970) and the time specified."
But this should still not crash the engine. Any call to
date("...", -1);
on my machine simply prints the info for 1 second before Jan. 1st,
1970.
Do you still see a crash?
Full Bug description available at: http://bugs.php.net/version4/?id=4454