ID: 48234 Updated by: [email protected] 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
