php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9278 mktime returns "valid" values (not -1) for dates like 2/31/2001, etc.
Submitted: 2001-02-15 08:32 UTC Modified: 2001-02-21 03:31 UTC
From: pnh102 at psu dot edu Assigned:
Status: Closed Package: *General Issues
PHP Version: 3.0.16 OS: Mac OS X Server 1.2
Private report: No CVE-ID: None
 [2001-02-15 08:32 UTC] pnh102 at psu dot edu
<?
// Midnight on 2/31/2000
print mktime (0,0,0,2,31,2000);
?>
<br>
<?
// Noon on 2/30/2001
print mktime (12,0,0,2,30,2001);
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-21 03:31 UTC] joey@php.net
This is intentional.
See http://www.php.net/manual/en/function.mktime.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 10:01:31 2024 UTC