From: tavancini at hotmail dot com Operating system: Windows 2000 Server PHP version: 4.3.6 PHP Bug Type: Date/time related Bug description: strtotime bug
Description: ------------ strtotime not calculating actual date subtraction Reproduce code: --------------- <? echo date( "m/Y", strtotime("-11 month") ) . "<br><br>"; echo date( "m/Y", strtotime("-10 month") ) . "<br><br>"; ?> Expected result: ---------------- 07/2003 08/2003 Actual result: -------------- 07/2003 07/2003 -- Edit bug report at http://bugs.php.net/?id=28594&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28594&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28594&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28594&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28594&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28594&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28594&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28594&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28594&r=support Expected behavior: http://bugs.php.net/fix.php?id=28594&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28594&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28594&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28594&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28594&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28594&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28594&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28594&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28594&r=float