#48234 [Opn->Bgs]: difference in strtotime results

From: Date: Tue, 12 May 2009 02:00:30 +0000
Subject: #48234 [Opn->Bgs]: difference in strtotime results
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-137180@lists.php.net to get a copy of this message
ID: 48234 Updated by: jani@php.net Reported By: ladjack at gmail dot com -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Windows XP SP3 PHP Version: 5.2.9 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2009-05-11 15:36:56] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48234&edit=1

« previous php.bugs (#137180) next »