From: gustavog at dextra dot com dot br Operating system: debian-sarge PHP version: 5.0.4 PHP Bug Type: Calendar related Bug description: Wrong timestamp return
Description: ------------ When I user the function strtotime on february, I get a wrong timestamp. Reproduce code: --------------- $timestamp = strtotime("1 february 2005"); $timestamp = strtotime("2 Monday", $timestamp); //No problem display "14-02-2005 -- Monday" echo date("d-m-Y -- l ", $timestamp); echo "<br />"; $timestamp = strtotime("1 february 2005"); $timestamp = strtotime("3 Monday", $timestamp); //Display 20-02-2005 -- Sunday instead of 21-02-2005 -- Monday echo date("d-m-Y -- l ", $timestamp); Expected result: ---------------- The second echo command should display the third Monday of february, but it displays Sunday. -- Edit bug report at http://bugs.php.net/?id=33919&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33919&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33919&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33919&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33919&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33919&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33919&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33919&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33919&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33919&r=support Expected behavior: http://bugs.php.net/fix.php?id=33919&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33919&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33919&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33919&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33919&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33919&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33919&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33919&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33919&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33919&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33919&r=mysqlcfg