php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #948 mktime returns incorrect datestamps when passed months like 09 instead of 9
Submitted: 1998-11-23 23:55 UTC Modified: 1998-11-24 00:01 UTC
From: cmlambertus at ucdavis dot edu Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.5 OS: Solaris 2.6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cmlambertus at ucdavis dot edu
New email:
PHP Version: OS:

 

 [1998-11-23 23:55 UTC] cmlambertus at ucdavis dot edu
while writing a small mysql query module i discovered
that calling mktime(0,0,0,09,0,1998) instead of 
mktime(0,0,0,9,0,1998) reported a very incorrect
timestamp of 880876800. calling it with 9 instead of
09 returned the correct timestamp as verified by
C ctime().

-chris

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-11-24 00:01 UTC] rasmus
Because 09 is a bogus octal number.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu May 01 11:01:27 2025 UTC