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
 [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 22:01:31 2024 UTC