php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48234 difference in strtotime results
Submitted: 2009-05-11 15:36 UTC Modified: 2009-05-12 11:28 UTC
From: ladjack at gmail dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.2.9 OS: Windows XP SP3
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: ladjack at gmail dot com
New email:
PHP Version: OS:

 

 [2009-05-11 15:36 UTC] ladjack at gmail dot com
Description:
------------
The difference in strtotime() output in different PHP versions on Windows XP SP3 and CentOS.

Reproduce code:
---------------
$start_date = '2009-04-16'; // thursday
$fdate = strtotime($start_date . " +1 thursday");
echo date ( 'Y-m-d', $fdate );

Expected result:
----------------
2009-04-23


Actual result:
--------------
In PHP 5.2.6 will output:

2009-04-23

In PHP 5.2.8 and 5.2.9 will output:

2009-04-16

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-12 02:00 UTC] jani@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.


 [2009-05-12 11:28 UTC] ladjack at gmail dot com
I am sorry, but if you mind Bug #48091 it hasn't resolution neither. Also it has 'bogus' status too.

If you mean bug #48091, it also hasn't been resolved yet. it has 'bogus' status.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 21:01:33 2024 UTC