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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sun Jun 02 05:01:30 2024 UTC