php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20592 mktime(0,0,0,08,02,2003) get the error result "1038758400"
Submitted: 2002-11-22 22:14 UTC Modified: 2002-11-23 08:41 UTC
From: dour01 at yahoo dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 4.2.3 OS: FreeBSD 4.7-STABLE
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dour01 at yahoo dot com
New email:
PHP Version: OS:

 

 [2002-11-22 22:14 UTC] dour01 at yahoo dot com
mktime(0,0,0,08,02,2003) is 1038758400
mktime(0,0,0,09,02,2003) is 1038758400
mktime(0,0,0,10,02,2003) is 1065024000

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-22 23:43 UTC] dour01 at yahoo dot com
mktime(0,0,0,08,02,2003) is 1038758400
mktime(0,0,0,09,02,2003) is 1038758400
mktime(0,0,0,10,02,2003) is 1065024000
 [2002-11-23 08:39 UTC] michael dot mauch at gmx dot de
See <http://www.php.net/manual/en/language.types.integer.php>:

literal numbers starting with 0 are interpreted as octal numbers, so you should just omit the 0 and write 8 and 9 instead of 08 and 09.
 [2002-11-23 08:41 UTC] derick@php.net
right; not a bug in PHP -> bogus
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 08:01:29 2024 UTC