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
 [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

Pull Requests

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: Sun Dec 29 01:01:31 2024 UTC