php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34806 strtotime ceases to work on future years
Submitted: 2005-10-10 12:11 UTC Modified: 2005-10-10 12:22 UTC
From: alex at magickal dot co dot uk Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.1.0RC1 OS: Windows XP
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: alex at magickal dot co dot uk
New email:
PHP Version: OS:

 

 [2005-10-10 12:11 UTC] alex at magickal dot co dot uk
Description:
------------
strtotime converts dates into nice handlable integers. This should work on ALL dates. I can see no reason whatsoever why it should cease half way through a century! Its a bit too much like the millenium bug!

And as such IS a bug.

Alex


Reproduce code:
---------------
$defaultdate = strtotime("01 January 2050");
echo $defaultdate;



Expected result:
----------------
expected result would be an integer NOT -1.

Actual result:
--------------
-1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-10 12:22 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See bug #34805

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 02 08:01:31 2024 UTC