#48234 [NEW]: difference in strtotime results
| From: | ladjack at gmail dot com | Date: | Mon, 11 May 2009 15:36:56 +0000 |
| Subject: | #48234 [NEW]: difference in strtotime results | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-137167@lists.php.net to get a copy of this message | ||
From: ladjack at gmail dot com
Operating system: Windows XP SP3
PHP version: 5.2.9
PHP Bug Type: Date/time related
Bug description: difference in strtotime results
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 bug report at http://bugs.php.net/?id=48234&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48234&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48234&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48234&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48234&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48234&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48234&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48234&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48234&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48234&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48234&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48234&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48234&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48234&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48234&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48234&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48234&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48234&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48234&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48234&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48234&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48234&r=mysqlcfg