|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55862 bad return format for strtotime
Submitted: 2011-10-06 15:28 UTC Modified: 2017-01-12 21:08 UTC
Avg. Score:3.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: julien_muetton at carpe-hora dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.3.8 OS: Linux/debian
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.
Block user comment
Status: Assign to:
Bug Type:
From: julien_muetton at carpe-hora dot com
New email:
PHP Version: OS:


 [2011-10-06 15:28 UTC] julien_muetton at carpe-hora dot com
some timestamps returns a negative value but should return false according to the 
valid formats.

Test script:

// valid timestamp for 2011-10-26
var_dump(strtotime(1319580000)); // returns int(-62143152563) 
                                 // but should return false

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-12 21:08 UTC]
-Status: Open +Status: Not a bug
 [2017-01-12 21:08 UTC]
Quoting the manual at "Parse about any English textual datetime description into a Unix timestamp". As a timestamp does not qualify as an "English textual datetime description" I'm closing this issue.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 23:01:30 2024 UTC